.
All checks were successful
/ build-docker-image (push) Successful in 46s

This commit is contained in:
2025-09-21 17:02:35 +01:00
parent 4a2e5ba4dc
commit c965abb702
4 changed files with 11 additions and 4 deletions

2
.gitignore vendored
View File

@@ -1,2 +1,4 @@
**.local.** **.local.**
local/**
.env .env

View File

@@ -188,6 +188,11 @@ BUILD=""
# uncomment do force build # uncomment do force build
#BUILD="--build" #BUILD="--build"
if [ ! -f ./docker-compose.dev.local.yaml ]; then
touch ./docker-compose.dev.local.yaml
EOF
fi
docker compose \ docker compose \
--project-name borg-backup-dev \ --project-name borg-backup-dev \
-f docker-compose.dev.yaml \ -f docker-compose.dev.yaml \

View File

@@ -11,8 +11,8 @@ services:
- BORG_REPO="${BORG_REPO}" - BORG_REPO="${BORG_REPO}"
- BORG_RSH="${BORG_REPO}" - BORG_RSH="${BORG_REPO}"
- BORG_PASSPHRASE="${BORG_PASSPHRASE}" - BORG_PASSPHRASE="${BORG_PASSPHRASE}"
- MODE=SHELL # Valid modes are: BORG, SCRIPT, SHELL, default is BORG - MODE=SCRIPT # Valid modes are: BORG, SCRIPT, SHELL, default is BORG
command: "ls -lah" #command: "ls -lah"
configs: configs:
# - source: backup_script # - source: backup_script
# target: /app/backup-scripts/run # target: /app/backup-scripts/run

View File

@@ -16,8 +16,8 @@ case "$MODE" in
cat /app/README.md cat /app/README.md
exit 1 exit 1
fi fi
echo "Executing: backup script with arguments: "\${@:1\"." echo "Executing: backup script with arguments: ${@:1} "
cd /app/backup-scripts && bash backup \"${@:1}" cd /app/backup-scripts && bash backup "${@:1}"
;; ;;
SHELL) SHELL)