Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save sergsoares/6d8152a55dbe9a9b87bc95cb0596259e to your computer and use it in GitHub Desktop.

Select an option

Save sergsoares/6d8152a55dbe9a9b87bc95cb0596259e to your computer and use it in GitHub Desktop.
Drone to Script
#!/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