To use the custom service (as I did with elasticsearch) you have to install drone from source using my fork (https://github.com/xpepper/drone) which BTW merges the work done by @yosssi (yosssi/custom-services).
Install Go 1.2
Than add these two lines in your .profile
export GOPATH=$HOME/go export PATH=$GOPATH/bin:$PATH
Install Drone from source
To install Drone from source, follow their guide: http://drone.readthedocs.org/en/latest/install.html#from-source.
Remember though, the cloned repo should be https://github.com/xpepper/drone and it should be put under
go/src/github.com/drone so that the
make command can succeeed.
make install will install drone in
make dpkg will build the .deb package.
Running drone as a non-root user
useradd --system -d /var/lib/drone -s /bin/false -G docker drone
- restart docker with
service docker restart
- add these lines in
setuid drone setgid drone
To run Drone easily, we symlinked the two binaries (drone and droned)
ln -s $GOPATH/src/github.com/drone/drone/bin/drone $GOPATH/bin/ ln -s $GOPATH/src/github.com/drone/drone/bin/droned $GOPATH/bin/
To start Drone, we use the
start-droned.sh script listed below.
Drone SMTP configuration with GMAIL
To configure Drone to send email using a Gmail account, fill the
Settings section with there values
- SMTP Server:
- SMTP Port:
- SMTP From Address:
- SMTP Username and Password:
Then follow this link to allow Drone to send mail: https://accounts.google.com/b/0/DisplayUnlockCaptcha
Logs are under