Created
September 30, 2016 20:09
-
-
Save lucazz/88b0028c82a14f0a252358954731c187 to your computer and use it in GitHub Desktop.
This file contains 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
- name: provisioning.service | |
content: | | |
[Unit] | |
AssertFileNotEmpty=/home/core/.docker/config.json | |
After=docker.service | |
[Service] | |
EnvironmentFile=/tmp/s3.env | |
Type=oneshot | |
ExecStartPre=-/bin/sh -c "mkdir /var/lib/teamcity;" | |
ExecStartPre=/usr/bin/docker pull anki/s3cmd:0.1 | |
ExecStart=/usr/bin/docker run -e aws_key=${AWS_KEY} \ | |
-e aws_secret=${AWS_SECRET} \ | |
-e cmd=sync-s3-to-local \ | |
-e DEST_S3=${BUCKET} \ | |
-v /var/lib/teamcity/:/opt/dest/ anki/s3cmd:0.1 | |
ExecStop=/usr/bin/docker stop backup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment