Skip to content

Service that listens to docker events and runs dokku commands

License

Notifications You must be signed in to change notification settings

plotly/dokku-event-listener

 
 

Repository files navigation

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

About

Service that listens to docker events and runs dokku commands

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Makefile 52.2%
  • Go 46.8%
  • Shell 1.0%