A docker container to run the Ansible ten7.pantheon_deploy role.
Create a configuration file as described in the ten7.pantheon_deploy Ansible role.
Once created, you have three ways to provide it to the container:
- As a base64-encoded value of the
PANTHEON_BACKUP_CONFIG
environment variable - As a mounted file at the location specified by the
PANTHEON_BACKUP_CONFIG_FILE
environment variable - As a mounted file at
/config/pantheon-backup/pantheon-backup.yml
inside the container.
To run the Docker image as part of a script or in cron, use the following command:
docker run --rm -v /path/to/pantheon-backup.yml:/config/pantheon-backup/pantheon-backup.yml ten7/pantheon-backup
Note, that if your pantheon-backup.yml
file depends on other files (such as SSH keys) you will need to add multiple -v
switches to mount each one.
Create the following Docker Compose file.
version: '3'
services:
backup:
image: ten7/pantheon-backup
volumes:
- /path/to/pantheon-backup.yml:/config/pantheon-backup/pantheon-backup.yml
Again, if your pantheon-backup.yml
depends on other files (such as SSH keys) you will need to add additional items under volumes
to mount them.
Once the docker-compose.yml
file is created, you can run backups using:
docker-compose run backup
GPL v3
This Docker image was created by TEN7.