[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-sandcastle-ng] 36/39: sandcastle-ng: fix override loading
From: |
gnunet |
Subject: |
[taler-sandcastle-ng] 36/39: sandcastle-ng: fix override loading |
Date: |
Thu, 11 Jan 2024 14:00:09 +0100 |
This is an automated email from the git hooks/post-receive script.
devan-carpenter pushed a commit to branch master
in repository sandcastle-ng.
commit 5378665d64224c25e8c2f16bee1a4eb743fa7458
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Jan 10 19:36:38 2024 +0100
sandcastle-ng: fix override loading
---
sandcastle-run | 7 ++++++-
scripts/demo/setup-sandcastle.sh | 6 +++---
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/sandcastle-run b/sandcastle-run
index 7b5ccd1..7d31257 100755
--- a/sandcastle-run
+++ b/sandcastle-run
@@ -42,6 +42,12 @@ else
OVERRIDES=""
fi
+# Beware: It is futile to pass environment variables to the container here,
+# as they will not be available in the systemd unit that provisions the
+# services in the container.
+# That's why we mount the right start-up script and override
+# to a well-known location.
+
podman run \
-d \
-p=$SANDCASTLE_PORT_MERCHANT:$PORT_INTERNAL_MERCHANT \
@@ -54,7 +60,6 @@ podman run \
-p=$SANDCASTLE_PORT_BANK_SPA:$PORT_INTERNAL_BANK_SPA \
--name taler-sandcastle \
--systemd=always \
- --env "SANDCASTLE_OVERRIDE_NAME=${SANDCASTLE_OVERRIDE_NAME:=none}" \
-v talerdata:/talerdata:Z \
$OVERRIDES \
-v $PWD/scripts:/scripts:Z \
diff --git a/scripts/demo/setup-sandcastle.sh b/scripts/demo/setup-sandcastle.sh
index 98df369..1b87f94 100755
--- a/scripts/demo/setup-sandcastle.sh
+++ b/scripts/demo/setup-sandcastle.sh
@@ -21,10 +21,10 @@ echo "Provisioning sandcastle"
# Might eventually be moved to an external file.
# Source any ovverrides from external file
-if [[ "${SANDCASTLE_OVERRIDE_NAME:-}" != "none" ]]; then
- cat /overrides
- source "/overrides" || true
+if [[ -e /overrides ]]; then
+ source /overrides
fi
+
CURRENCY=${CURRENCY:="KUDOS"}
EXCHANGE_IBAN=DE159593
EXCHANGE_PLAIN_PAYTO=payto://iban/$EXCHANGE_IBAN
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-sandcastle-ng] 09/39: sandcastle-ng: add setup for test.taler.net, (continued)
- [taler-sandcastle-ng] 09/39: sandcastle-ng: add setup for test.taler.net, gnunet, 2024/01/11
- [taler-sandcastle-ng] 32/39: sandcastle-ng: add script printing version strings, gnunet, 2024/01/11
- [taler-sandcastle-ng] 33/39: sandcastle-ng: update tags, gnunet, 2024/01/11
- [taler-sandcastle-ng] 30/39: bump GNUnet version, gnunet, 2024/01/11
- [taler-sandcastle-ng] 23/39: sandcastle: libeufin UI nav sites, gnunet, 2024/01/11
- [taler-sandcastle-ng] 24/39: bump libeufin, gnunet, 2024/01/11
- [taler-sandcastle-ng] 19/39: sandcastle: tags, gnunet, 2024/01/11
- [taler-sandcastle-ng] 22/39: sandcastle: update libeufin config, gnunet, 2024/01/11
- [taler-sandcastle-ng] 11/39: sandcastle-ng: suppress apt install dialogs, gnunet, 2024/01/11
- [taler-sandcastle-ng] 28/39: bump exchange version, gnunet, 2024/01/11
- [taler-sandcastle-ng] 36/39: sandcastle-ng: fix override loading,
gnunet <=
- [taler-sandcastle-ng] 18/39: sandcastle: tags, gnunet, 2024/01/11
- [taler-sandcastle-ng] 12/39: sandcastle-ng: suppress more apt install dialogs, gnunet, 2024/01/11
- [taler-sandcastle-ng] 27/39: sandcastle-ng: bump libeufin version, gnunet, 2024/01/11
- [taler-sandcastle-ng] 17/39: sandcastle: libeufin db config, gnunet, 2024/01/11
- [taler-sandcastle-ng] 26/39: sandcastle-ng: add config overrides for test.taler.net, gnunet, 2024/01/11
- [taler-sandcastle-ng] 35/39: sandcastle-ng: bump, gnunet, 2024/01/11
- [taler-sandcastle-ng] 38/39: sandcastle: bump exchange version, gnunet, 2024/01/11
- [taler-sandcastle-ng] 07/39: sandcastle-ng: correct external port for bank SPA, gnunet, 2024/01/11
- [taler-sandcastle-ng] 29/39: bump merchant version, gnunet, 2024/01/11
- [taler-sandcastle-ng] 13/39: sandcastle-ng: bump wallet version, gnunet, 2024/01/11