docker-builds/pantheon-backup
Ben Wilson b45c624128 Full path to terminus in entrypoint script 2020-09-09 10:42:02 -04:00
..
Dockerfile Added pantheon-backup image 2020-09-08 15:51:37 -04:00
README.md Added README.md 2020-09-08 16:04:54 -04:00
pantheon-backup.sh Full path to terminus in entrypoint script 2020-09-09 10:42:02 -04:00

README.md

pantheon-backup

A Docker container to create website backups at Pantheon and back them up to GCP buckets.

Build

docker build . -t electriccoinco/pantheon-backup

Usage

Requirements

Environmental variables

The entrypoint script requires 2 environmental variables.

Mounts

  • Mount a volume that maps a GCP service account file to the path provided by GCP_SERVICEACCOUNT_FILE

Example

docker run --rm \
  -e PANTHEON_MACHINE_TOKEN=MYSECRETTOKEN \
  -e GCP_SERVICEACCOUNT_FILE=/tmp/service.json \
  -v ./zcash-web-4c4432846cf1.json:/tmp/service.json \
  electriccoinco/pantheon-backup:latest

Troubleshooting

Skip the entrypoint script and start a bash shell inside the container.

docker run --rm -ti --entrypoint bash electriccoinco/pantheon-backup:latest