Public Repository

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

A docker image containing drone.io for continuous integration.

##Usage

docker run -d --name="drone-ci" \
    -p 8080:80 \
    -v /var/lib/drone/ \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /home/user/docker/drone.io/drone.sqlite:/var/lib/drone/drone.sqlite \
    -e DRONE_GITHUB_CLIENT=<GITHUB_CLIENT>
    -e DRONE_GITHUB_SECRET=<GITHUB_SECRET>
    andyg/drone.io 

This will

  • Forward the drone.io port 80 to local port 8080
  • Mount your local docker sock into the container, allowing this container to spin up other containers from within this container
  • Specify the CLIENT and SECRET tokens for your GitHub Application using environment variables

Dockerfile

This image was built with the following Dockerfile:

# Pull from base Ubuntu image
FROM ubuntu
MAINTAINER Andy Gardner <andyg@mukuru.com>

# Do system updates and install dependencies
RUN apt-get update &&\
    apt-get -y install git wget &&\
    apt-get clean

# Download Drone.io
RUN wget http://downloads.drone.io/master/drone.deb && dpkg -i drone.deb

# Expose the Drone.io port
EXPOSE 80

# The command we'll be running when the container starts
CMD /usr/local/bin/droned --config=/etc/drone/drone.toml
Docker Pull Command
Owner
andyg