1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

update drone

This commit is contained in:
kev 2016-05-31 23:16:56 +08:00
parent a058c91515
commit 0bd71c4d96
2 changed files with 35 additions and 16 deletions

View File

@ -21,22 +21,28 @@ Client Secret: ... (generated by github)
```yaml ```yaml
drone: drone:
image: drone/drone:0.4 image: drone/drone
ports: ports:
- "8000:8000" - "8000:8000"
volumes: volumes:
- ./drone:/var/lib/drone - ./drone:/var/lib/drone
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
env_file: ./dronerc environment:
- REMOTE_DRIVER=github
- REMOTE_CONFIG=https://github.com?client_id=...&client_secret=...
# - REMOTE_DRIVER=gogs
# - REMOTE_CONFIG=https://git.easypi.info/?open=false
- DEBUG=false
restart: always
wall:
image: drone/drone-wall
ports:
- "8080:80"
restart: always restart: always
``` ```
## dronerc > Drone will register gogs webhooks automatically, you don't need to do it manually.
```bash
REMOTE_DRIVER=github
REMOTE_CONFIG=https://github.com?client_id=...&client_secret=...
```
## nginx/sites-enabled/drone ## nginx/sites-enabled/drone
@ -59,22 +65,29 @@ server {
chunked_transfer_encoding off; chunked_transfer_encoding off;
} }
} }
server {
listen 80;
server_name wall.easypi.info;
location / {
proxy_pass http://127.0.0.1:8080;
}
}
``` ```
## up and running ## up and running
``` ```bash
# server # server
$ cd ~/fig/drone/ $ cd ~/fig/drone/
$ docker-compose up -d $ docker-compose up -d
$ docker-compose logs $ docker-compose logs
# client # client (login with remote driver credential)
$ firefox http://drone.easypi.info/settings/profile $ firefox http://drone.easypi.info/
$ curl http://downloads.drone.io/drone-cli/drone_darwin_amd64.tar.gz | tar zx -C /usr/local/bin/
$ export DRONE_SERVER=http://drone.easypi.info/ # dashboard
$ export DRONE_TOKEN=... $ firefox http://wall.easypi.info/
$ drone help
``` ```
[1]: http://readme.drone.io/usage/overview/ [1]: http://readme.drone.io/usage/overview/

View File

@ -8,5 +8,11 @@ drone:
environment: environment:
- REMOTE_DRIVER=gogs - REMOTE_DRIVER=gogs
- REMOTE_CONFIG=https://git.easypi.info/?open=false - REMOTE_CONFIG=https://git.easypi.info/?open=false
- DEBUG=true - DEBUG=false
restart: always
wall:
image: drone/drone-wall
ports:
- "8080:80"
restart: always restart: always