Skip to content

Instantly share code, notes, and snippets.

@jppommet
Last active January 18, 2016 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jppommet/0c5f6043ae3581a9f8f3 to your computer and use it in GitHub Desktop.
Save jppommet/0c5f6043ae3581a9f8f3 to your computer and use it in GitHub Desktop.
Drone.io Local Setup

Grab docker image from DockerHub and install into your docker machine environment docker pull drone/drone:0.4 mkdir -p /usr/local/etc/drone/dronerc

Edit your file dronerc

REMOTE_DRIVER=github
REMOTE_CONFIG=https://github.com?client_id=${client_id}&client_secret=${client_secret}

Optionally you can append the option : &orgs

Run container named drone

docker run \
	--volume /usr/local/var/lib/drone:/var/lib/drone \
	--volume /usr/local/var/run/docker.sock:/var/run/docker.sock \
	--env-file /usr/local/etc/drone/dronerc \
	--restart=always \
	--publish=80:8000 \
	--detach=true \
	--name=drone \
	drone/drone:0.4

In case file dronerc is modified run the following commands :

docker stop drone
docker rm drone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment