Created
June 2, 2019 21:51
-
-
Save sergsoares/6d8152a55dbe9a9b87bc95cb0596259e to your computer and use it in GitHub Desktop.
Drone to Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| docker run \ | |
| --volume=/var/run/docker.sock:/var/run/docker.sock \ | |
| --volume=data:/data \ | |
| --env=DRONE_GIT_ALWAYS_AUTH=false \ | |
| --env=DRONE_GITLAB_SERVER=localhost \ | |
| --env=DRONE_GITLAB_CLIENT_ID=CLIENT_ID \ | |
| --env=DRONE_GITLAB_CLIENT_SECRET=CLIENT_SECRET \ | |
| --env=DRONE_RUNNER_CAPACITY=2 \ | |
| --env=DRONE_SERVER_HOST=localhost:8000 \ | |
| --env=DRONE_SERVER_PROTO=http \ | |
| --env=DRONE_TLS_AUTOCERT=false \ | |
| --publish=8000:80 \ | |
| --publish=443:443 \ | |
| --restart=always \ | |
| --detach=true \ | |
| --name=drone \ | |
| drone/drone:1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment