This commit is contained in:
ViViDboarder 2017-07-30 12:08:45 -07:00
parent 6c28a96a22
commit 838878c4ff
2 changed files with 19 additions and 0 deletions

10
itest/docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
version: '2'
services:
duplicity:
build: ../Dockerfile.ubuntu
volumes:
- duplicity-test-data:/data
- duplicity-test-backups:/backups
environment:
FOO: bar

9
itest/itest.sh Executable file
View File

@ -0,0 +1,9 @@
#! /bin/bash
docker-compose up -d
docker-compose exec duplicity sh -c "mkdir -p /data && echo Test > /data/test.txt"
docker-compose down
docker-compose up
docker volumes rm duplicity-test-data
docker-compose up -d
docker-compose exec duplicity /restore.sh