diff --git a/entrypoint.sh b/entrypoint.sh index bec0903..51cf443 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,14 +1,18 @@ #!/bin/sh # entrypoint.sh -# Create a build.properties file to pass Docker env vars to the Ant build -cat < /swg-main/build.properties +# === START: Create Local Properties === +# Create a local.properties file to pass Docker env vars to the Ant build. +# This avoids overwriting the main build.properties file. +cat < /swg-main/local.properties # This file is auto-generated by entrypoint.sh db_username=${DB_USER} db_password=${DB_PASSWORD} dbip=${DB_HOST} db_service=${DB_SERVICE_NAME:-FREEPDB1} EOF +# === END: Create Local Properties === + # Get the container's own IP address at runtime CONTAINER_IP=$(hostname -i)