Service that listens to docker events and runs dokku commands.
- golang 1.12+
For a prebuilt binary, see the github releases page.
A Dockerfile is provided for building the binary.
# build the binary
make build
# copy binary to your server
scp build/linux/dokku-event-listener <user@your-server>:/tmp/
sudo chown root:root /tmp/dokku-event-listener
sudo mv /tmp/dokku-event-listener /usr/local/bin/dokku-event-listener
If your system uses systemd, follow these steps:
Copy the dokku-event-listener.service to your system
scp init/systemd/dokku-event-listener.service <user@your-server>:/tmp/
On the system, change ownership to root and move to the systemd directory
sudo chown root:root /tmp/dokku-event-listener.service
sudo mv /tmp/dokku-event-listener.service /etc/systemd/system/dokku-event-listener.service
If your system uses upstart, follow these steps:
Copy the dokku-event-listener.conf to your system
scp init/upstart/dokku-event-listener.conf <user@your-server>:/tmp/
On the system, change ownership to root and move to the upstart directory
sudo chown root:root /tmp/dokku-event-listener.conf
sudo mv /tmp/dokku-event-listener.conf /etc/init/dokku-event-listener.conf
# start the service and enable it at boot
sudo systemctl start dokku-event-listener.service
sudo systemctl enable dokku-event-listener.service