doc: Adapt configuration for runner
This commit is contained in:
parent
63f5586d52
commit
6249e41be7
1 changed files with 13 additions and 21 deletions
34
README.md
34
README.md
|
@ -1,44 +1,36 @@
|
|||
# Drone Server
|
||||
# Drone Runner
|
||||
|
||||
## Setup on Dokku
|
||||
|
||||
Create APP
|
||||
|
||||
dokku apps:create cicd
|
||||
dokku apps:create cicd-agent
|
||||
|
||||
Setup Network & Domains
|
||||
|
||||
dokku network:create cicd_net
|
||||
dokku network:set cicd initial-network cicd_net
|
||||
dokku config:set --no-restart cicd DOKKU_LETSENCRYPT_EMAIL=username@example.com
|
||||
|
||||
Setup Database
|
||||
|
||||
dokku postgres:create cicd
|
||||
dokku postgres:link cicd cicd
|
||||
dokku network:set cicd-agent attach-post-create cicd_net
|
||||
dokku config:set --no-restart cicd-agent DOKKU_LETSENCRYPT_EMAIL=username@example.com
|
||||
|
||||
Setup Volumes
|
||||
|
||||
dokku storage:mount cicd /home/data/cicd.drone:/data
|
||||
dokku storage:mount cicd-agent /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
Setup Configuration
|
||||
|
||||
dokku config:set cicd DRONE_DATABASE_DRIVER=postgres
|
||||
dokku config:set cicd DRONE_GIT_ALWAYS_AUTH=false
|
||||
dokku config:set cicd DRONE_GITEA_SERVER=https://gitea.example.com
|
||||
dokku config:set cicd DRONE_SERVER_HOST=cicd.example.com
|
||||
dokku config:set cicd DRONE_SERVER_PROTO=https
|
||||
dokku config:set cicd DRONE_TLS_AUTOCERT=false
|
||||
dokku config:set cicd-agent DRONE_RPC_PROTO=http
|
||||
dokku config:set cicd-agent DRONE_RPC_HOST=drone
|
||||
dokku config:set cicd-agent DRONE_RUNNER_CAPACITY=2
|
||||
dokku config:set cicd-agent DRONE_RUNNER_NETWORKS=cicd_net
|
||||
dokku config:set cicd-agent DRONE_DEBUG=false
|
||||
dokku config:set cicd-agent DRONE_TRACE=false
|
||||
|
||||
Setup Secrets
|
||||
|
||||
dokku config:set cicd DRONE_COOKIE_SECRET=$(openssl rand -hex 16)
|
||||
dokku config:set cicd DRONE_RPC_SECRET=$(openssl rand -hex 16)
|
||||
dokku config:set cicd DRONE_GITEA_CLIENT_ID=FIXME
|
||||
dokku config:set cicd DRONE_GITEA_CLIENT_SECRET=FIXME
|
||||
dokku config:set cicd-agent DRONE_RPC_SECRET=$(...)
|
||||
|
||||
Deploy
|
||||
|
||||
git remote add dokku dokku@dinlas.apps.glenux.net:cicd
|
||||
git remote add dokku dokku@dinlas.apps.glenux.net:cicd-agent
|
||||
git push
|
||||
|
||||
|
|
Loading…
Reference in a new issue