mirror of
https://github.com/ViViDboarder/docker-duplicity-cron.git
synced 2024-11-21 23:26:31 +00:00
WIP: tests on docker-hub
This commit is contained in:
parent
38a32c7ea9
commit
1cd80c471d
16
docker-compose-local.test.yml
Normal file
16
docker-compose-local.test.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
sut:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
REPO: "${REPO:-library}"
|
||||||
|
entrypoint: "bash"
|
||||||
|
command: ["/test.sh"]
|
||||||
|
volumes:
|
||||||
|
- "./tests/test.sh:/test.sh"
|
||||||
|
environment:
|
||||||
|
- IN_CONTAINER=true
|
||||||
|
- SKIP_ON_START=true
|
33
docker-compose-s3.test.yml
Normal file
33
docker-compose-s3.test.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
---
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
sut:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
REPO: "${REPO:-library}"
|
||||||
|
entrypoint: "bash"
|
||||||
|
command: ["/test.sh"]
|
||||||
|
volumes:
|
||||||
|
- "./tests/test.sh:/test.sh"
|
||||||
|
environment:
|
||||||
|
IN_CONTAINER: 'true'
|
||||||
|
SKIP_ON_START: 'true'
|
||||||
|
OPT_ARGUMENTS: '--s3-unencrypted-connection'
|
||||||
|
BACKUP_DEST: s3://minio:9000/duplicity
|
||||||
|
AWS_DEFAULT_REGION: us-east-1
|
||||||
|
AWS_ACCESS_KEY_ID: SUPER_SECRET_ACCESS_KEY
|
||||||
|
AWS_SECRET_ACCESS_KEY: SUPER_SECRET_SECRET_KEY
|
||||||
|
SLEEP: 2
|
||||||
|
depends_on:
|
||||||
|
- minio
|
||||||
|
|
||||||
|
minio:
|
||||||
|
image: minio/minio
|
||||||
|
command: server /data
|
||||||
|
expose:
|
||||||
|
- "9000"
|
||||||
|
environment:
|
||||||
|
MINIO_ACCESS_KEY: SUPER_SECRET_ACCESS_KEY
|
||||||
|
MINIO_SECRET_KEY: SUPER_SECRET_SECRET_KEY
|
Loading…
Reference in New Issue
Block a user