mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
update drone
This commit is contained in:
parent
a058c91515
commit
0bd71c4d96
@ -21,22 +21,28 @@ Client Secret: ... (generated by github)
|
||||
|
||||
```yaml
|
||||
drone:
|
||||
image: drone/drone:0.4
|
||||
image: drone/drone
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- ./drone:/var/lib/drone
|
||||
- /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
|
||||
```
|
||||
|
||||
## dronerc
|
||||
|
||||
```bash
|
||||
REMOTE_DRIVER=github
|
||||
REMOTE_CONFIG=https://github.com?client_id=...&client_secret=...
|
||||
```
|
||||
> Drone will register gogs webhooks automatically, you don't need to do it manually.
|
||||
|
||||
## nginx/sites-enabled/drone
|
||||
|
||||
@ -59,22 +65,29 @@ server {
|
||||
chunked_transfer_encoding off;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name wall.easypi.info;
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8080;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## up and running
|
||||
|
||||
```
|
||||
```bash
|
||||
# server
|
||||
$ cd ~/fig/drone/
|
||||
$ docker-compose up -d
|
||||
$ docker-compose logs
|
||||
|
||||
# client
|
||||
$ firefox http://drone.easypi.info/settings/profile
|
||||
$ 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/
|
||||
$ export DRONE_TOKEN=...
|
||||
$ drone help
|
||||
# client (login with remote driver credential)
|
||||
$ firefox http://drone.easypi.info/
|
||||
|
||||
# dashboard
|
||||
$ firefox http://wall.easypi.info/
|
||||
```
|
||||
|
||||
[1]: http://readme.drone.io/usage/overview/
|
||||
|
@ -8,5 +8,11 @@ drone:
|
||||
environment:
|
||||
- REMOTE_DRIVER=gogs
|
||||
- REMOTE_CONFIG=https://git.easypi.info/?open=false
|
||||
- DEBUG=true
|
||||
- DEBUG=false
|
||||
restart: always
|
||||
|
||||
wall:
|
||||
image: drone/drone-wall
|
||||
ports:
|
||||
- "8080:80"
|
||||
restart: always
|
||||
|
Loading…
Reference in New Issue
Block a user