mirror of
https://github.com/lobaro/restic-backup-docker.git
synced 2026-04-11 15:28:50 +00:00
added changes from master
This commit is contained in:
@@ -33,4 +33,4 @@ RUN touch /var/log/cron.log
|
||||
WORKDIR "/"
|
||||
|
||||
ENTRYPOINT ["/entry.sh"]
|
||||
|
||||
CMD ["tail","-fn0","/var/log/cron.log"]
|
||||
21
config.yml
Normal file
21
config.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
schemaVersion: '2.0.0'
|
||||
commandTests:
|
||||
- name: "restic package installation"
|
||||
setup: [["/entry.sh"]]
|
||||
command: "which"
|
||||
args: ["restic"]
|
||||
expectedOutput: ["/bin/restic"]
|
||||
fileExistenceTests:
|
||||
- name: 'log directory exists'
|
||||
path: '/var/log'
|
||||
shouldExist: true
|
||||
- name: 'cron log file exists'
|
||||
path: '/var/log/cron.log'
|
||||
shouldExist: true
|
||||
- name: 'backup script exists'
|
||||
path: '/bin/backup'
|
||||
shouldExist: true
|
||||
metadataTest:
|
||||
volumes: ["/data"]
|
||||
entrypoint: ["/entry.sh"]
|
||||
cmd: ["tail","-fn0", "/var/log/cron.log"]
|
||||
9
docker-compose.test.yml
Normal file
9
docker-compose.test.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
test:
|
||||
image: gcr.io/gcp-runtimes/container-structure-test
|
||||
command: ["test", "--image", "restic-backup", "--config", "config.yml"]
|
||||
volumes:
|
||||
- ./config.yml:/config.yml
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
Reference in New Issue
Block a user