diff options
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/docker-entrypoint.sh | 12 | ||||
-rwxr-xr-x | docker/instance_config.sh | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 0a277fae..2bc14169 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -17,6 +17,18 @@ if [ -z "$MYSQL_ADDR" ]; then fi echo "MYSQL_ADDR=$MYSQL_ADDR" +if [ -z "$SDC_USER" ]; then + echo "Missing required variable SDC_USER" + exit 1 +fi +echo "SDC_USER=$SDC_USER" + +if [ -z "$SDC_PASSWD" ]; then + echo "Missing required variable SDC_PASSWD" + exit 1 +fi +echo "SDC_PASSWD=$SDC_PASSWD" + # Wait for MSB initialization echo "Wait for MSB initialization" for i in {1..5}; do diff --git a/docker/instance_config.sh b/docker/instance_config.sh index 04ec38e6..824216c6 100755 --- a/docker/instance_config.sh +++ b/docker/instance_config.sh @@ -23,4 +23,7 @@ sed -i "s|DB_IP.*|DB_IP = '$MYSQL_IP'|" vfc/nfvo/catalog/catalog/pub/config/conf sed -i "s|DB_PORT.*|DB_PORT = $MYSQL_PORT|" vfc/nfvo/catalog/catalog/pub/config/config.py sed -i "s|REDIS_HOST.*|REDIS_HOST = '$MYSQL_IP'|" vfc/nfvo/catalog/catalog/pub/config/config.py +sed -i "s|SDC_USER.*|SDC_USER = '$SDC_USER'|" vfc/nfvo/catalog/catalog/pub/config/config.py +sed -i "s|SDC_PASSWD.*|SDC_PASSWD = $SDC_PASSWD|" vfc/nfvo/catalog/catalog/pub/config/config.py + cat vfc/nfvo/catalog/catalog/pub/config/config.py |