Created
October 30, 2014 17:49
-
-
Save kelseyhightower/1bc837a701f5aedad8c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Go Commit Watcher | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
ExecStartPre=/usr/bin/mkdir -p /opt/commitwatcher | |
ExecStartPre=/usr/bin/wget -q -N -P /opt/commitwatcher https://storage.googleapis.com/go-builder-data/docker-commitwatcher.tar.gz | |
ExecStartPre=/usr/bin/docker load --input /opt/commitwatcher/docker-commitwatcher.tar.gz | |
ExecStartPre=-/usr/bin/docker kill commitwatcher | |
ExecStartPre=-/usr/bin/docker rm commitwatcher | |
ExecStart=/usr/bin/docker run --rm --name commitwatcher gobuilders/commitwatcher | |
ExecStop=/usr/bin/docker stop commitwatcher | |
RestartSec=10s | |
Restart=always | |
Type=simple | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment