sandcastle-ng

Scripts for the deployment of Sandcastle (GNU Taler)
Log | Files | Refs | README

commit ea060e19d0f994d23cda230551ff3da4bd9b9306
parent 1531b7ac8a398af78af638b8a2f11f6b5f4b2f07
Author: Florian Dold <florian@dold.me>
Date:   Thu, 27 Nov 2025 11:35:05 +0100

make exposing localhost work with newer podman

Diffstat:
Msandcastle-run | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/sandcastle-run b/sandcastle-run @@ -67,6 +67,16 @@ mkdir -p exported # That's why we mount the right start-up script and override # to a well-known location. +# We use slirp4netns because pasta does not allow us to bind ipv4 and ipv6 +# localhost + +if [[ $EXTERNAL_IP4 != $EXTERNAL_IP6 ]]; then + NETWORK="--network slirp4netns" +else + NETWORK= +fi + + exec podman run \ -d \ -p=$SANDCASTLE_PORT_MERCHANT:$PORT_INTERNAL_MERCHANT \ @@ -83,11 +93,11 @@ exec podman run \ --privileged \ --name taler-sandcastle \ --systemd=always \ + $NETWORK \ -v talerdata:/talerdata:Z \ -v talerdata_persistent:/talerdata_persistent:Z \ $OVERRIDES \ ${PUBLISH_EXTERNAL_PORT4:-} \ - ${PUBLISH_EXTERNAL_PORT6:-} \ -v $PWD/credentials:/credentials:Z \ -v $PWD/data:/data:Z \ -v $PWD/scripts:/scripts:Z \