Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 1.86 KB

README.md

File metadata and controls

71 lines (47 loc) · 1.86 KB

dokku-event-listener CircleCI

Service that listens to docker events and runs dokku commands.

Requirements

  • golang 1.12+

Usage

Build the binary

For a prebuilt binary, see the github releases page.

A Dockerfile is provided for building the binary.

# build the binary
make build

Install binary

# 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

Install systemd service

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

Install upstart conf

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

Configure service

# start the service and enable it at boot
sudo systemctl start dokku-event-listener.service
sudo systemctl enable dokku-event-listener.service