1
0
mirror of https://github.com/offen/docker-volume-backup.git synced 2025-11-29 05:46:50 +02:00

Support _FILE based configuration values (#264)

* Replace envconfig with env

* Adjust config options and processing

* Added _FILE variant for all password vars.

* Try pathenvconfig

* Revert everything so far

* Use our fork of envconfig with custom lookup

* Use our fork of envconfig with custom lookup

* Test compose timeout option

* Remove secret resolving and specific _FILE config

* Fix timing issue in swarm tests

* Revert "Test compose timeout option"

This reverts commit ab50b21748, reversing
changes made to 0282514b2b.

Revert "Test compose timeout option"

This reverts commit 0282514b2b.

* Use offen/envconfig v1.5.0

* Add info about _FILE in README

* Value > File. Panic on file error. Panic on duplicate presence.

* Test panic on duplicate vars and panic on file error.
This commit is contained in:
MaxJa4
2023-08-30 20:14:24 +02:00
committed by GitHub
parent 24a6ec9480
commit 43c4961116
7 changed files with 42 additions and 35 deletions

View File

@@ -31,6 +31,16 @@ pass "Found relevant files in untared backup."
sleep 5
expect_running_containers "5"
docker exec -e AWS_ACCESS_KEY_ID=test $(docker ps -q -f name=backup) backup \
&& fail "Backup should have failed due to duplicate env variables."
pass "Backup failed due to duplicate env variables."
docker exec -e AWS_ACCESS_KEY_ID_FILE=/tmp/nonexistant $(docker ps -q -f name=backup) backup \
&& fail "Backup should have failed due to non existing file env variable."
pass "Backup failed due to non existing file env variable."
docker stack rm test_stack
docker secret rm minio_root_password

View File

@@ -29,6 +29,7 @@ sleep 5
expect_running_containers "5"
docker stack rm test_stack
sleep 1
docker swarm leave --force
sleep 10