hi, I’m trying to get drone work with github on raspberry pi, but got authenticate issues
$ docker-compose up
WARNING: Found orphan containers (markline, Gogs, letsencrypt-nginx-proxy-companion, Portainer, nginx-proxy) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Creating Drone
Attaching to Drone
Drone | time="2017-02-16T10:04:21Z" level=info msg="using database driver sqlite3"
Drone | time="2017-02-16T10:04:21Z" level=info msg="using database config /var/lib/drone/drone.sqlite"
Drone | time="2017-02-16T10:04:21Z" level=info msg="registered docker daemon unix:///var/run/docker.sock"
Drone | time="2017-02-16T10:04:21Z" level=info msg="registered docker daemon unix:///var/run/docker.sock"
Drone | time="2017-02-16T10:04:21Z" level=info msg="starting server :80"
Drone | [GIN] 2017/02/16 - 10:04:31 | 303 | 409.484µs | 172.21.0.1 | GET /
Drone | [GIN] 2017/02/16 - 10:04:32 | 200 | 914.126µs | 172.21.0.1 | GET /login
Drone | [GIN] 2017/02/16 - 10:04:32 | 200 | 7.699678ms | 172.21.0.1 | GET /static/styles_gen/style.css
Drone | [GIN] 2017/02/16 - 10:04:34 | 200 | 1.631322ms | 172.21.0.1 | GET /static/images/logo_dark.svg
Drone | [GIN] 2017/02/16 - 10:04:35 | 303 | 1.417048ms | 172.21.0.1 | GET /authorize
Drone | [GIN] 2017/02/16 - 10:04:38 | 303 | 881.243245ms | 172.21.0.1 | GET /authorize
Drone | time="2017-02-16T10:04:38Z" level=error msg="cannot authenticate user. Error exchanging token. Post https://github.com/login/oauth/access_token: x509: failed to load system roots and no roots provided"
Drone | [GIN] 2017/02/16 - 10:04:40 | 200 | 391.098µs | 172.21.0.1 | GET /login
Drone | [GIN] 2017/02/16 - 10:04:41 | 304 | 2.153151ms | 172.21.0.1 | GET /static/styles_gen/style.css
Drone | [GIN] 2017/02/16 - 10:04:42 | 304 | 709.696µs | 172.21.0.1 | GET /static/images/logo_dark.svg
my docker compose file:
version: '2'
services:
drone:
image: armdrone/drone
container_name: Drone
restart: always
expose:
- 80
volumes:
- ./data:/var/lib/drone
- /var/run/docker.sock:/var/run/docker.sock
environment:
- REMOTE_DRIVER=github
- REMOTE_CONFIG=https://github.com?client_id=<CLIENT_ID>&client_secret=<CLIENT_SECRET
- PLUGIN_FILTER=armdrone/*
- GIN_MODE=release
- VIRTUAL_HOST=drone.mydomain.com
- VIRTUAL_PORT=80
- VIRTUAL_NETWORK=proxy-network
- LETSENCRYPT_HOST=drone.mydomain.com
- LETSENCRYPT_EMAIL=my@email.com
networks:
default:
external:
name: proxy-network