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