Commit 3eb332b2 authored by Mudassar Khan's avatar Mudassar Khan
Browse files

add AE_ID in environment variables so that it could be changed in image if required

parent 5037f200
Loading
Loading
Loading
Loading
+7 −0
Changes for go-apps/meep-ipe/config.env: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -76,6 +76,13 @@ MEEP_CSE_ID=
# CSE name. Default if empty: "laboai-cse-in"
MEEP_CSE_NAME=laboai-cse-in

# Base AE-ID (originator) used to register on the CSE. Should start with "C"
# (or "S") per oneM2M originator rules. MEEP_LOCATION_NAME and
# MEEP_SANDBOX_NAME are appended automatically, e.g.
#   CMecIPE -> CMecIPE-mep1-sbxoon0fww
# Default if empty: "CMecIPE"
MEEP_AE_ID=CMecIPE

# HTTP Basic auth credentials for the CSE. Leave both empty if the CSE has
# no authorization enabled (no Authorization header is sent).
MEEP_CSE_USER=
+15 −1
Changes for go-apps/meep-ipe/entrypoint.sh: 15 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -91,7 +91,21 @@ fi
CSE_USER="${MEEP_CSE_USER}"
CSE_PASSWORD="${MEEP_CSE_PASSWORD}"

AE_ID='CMecIPE'
# AE-ID — base defaults to CMecIPE unless explicitly overridden. The MEC
# platform and sandbox name are appended (<base>-<mecplatform>-<sandbox>) so
# multiple IPE instances can share the same CSE without conflicts; empty
# parts are skipped.
if [ -z "${MEEP_AE_ID}" ]; then
    AE_ID="CMecIPE"
else
    AE_ID="${MEEP_AE_ID}"
fi
if [ -n "${MECPLATFORM}" ]; then
    AE_ID="${AE_ID}-${MECPLATFORM}"
fi
if [ -n "${SANDBOXNAME}" ]; then
    AE_ID="${AE_ID}-${SANDBOXNAME}"
fi

echo "Environment variables set:"
echo "SERVER_IP: ${SERVER_IP}"