Fixes to entrypoint for rpi

This commit is contained in:
Calabro, Brandon
2025-10-10 14:45:04 -05:00
parent 2b520ccf1c
commit 5d62ba9b48

View File

@@ -1,14 +1,18 @@
#!/bin/sh
# entrypoint.sh
# Create a build.properties file to pass Docker env vars to the Ant build
cat <<EOF > /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 <<EOF > /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)