diff options
-rwxr-xr-x | docker/docker-entrypoint.sh | 5 | ||||
-rwxr-xr-x | docker/instance_config.sh | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index f02c9cce..f1cf4f23 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -5,6 +5,11 @@ if [ -z "$SERVICE_IP" ]; then fi echo "SERVICE_IP=$SERVICE_IP" +if [ -z "$REG_TO_MSB" ]; then + export REG_TO_MSB=True +fi +echo "REG_TO_MSB=$REG_TO_MSB" + if [ -z "$MYSQL_ROOT_PASSWORD" ]; then export MYSQL_ROOT_PASSWORD="root" fi diff --git a/docker/instance_config.sh b/docker/instance_config.sh index c76770e3..2e0dfd57 100755 --- a/docker/instance_config.sh +++ b/docker/instance_config.sh @@ -11,6 +11,10 @@ if [ $MSB_PORT ]; then sed -i "s|MSB_SERVICE_PORT.*|MSB_SERVICE_PORT = '$MSB_PORT'|" vfc/nfvo/catalog/catalog/pub/config/config.py fi +if [ $REG_TO_MSB ]; then + sed -i "s|REG_TO_MSB_WHEN_START.*|REG_TO_MSB_WHEN_START = '$REG_TO_MSB'|" vfc/nfvo/catalog/catalog/pub/config/config.py +fi + if [ $SERVICE_IP ]; then sed -i "s|\"ip\": \".*\"|\"ip\": \"$SERVICE_IP\"|" vfc/nfvo/catalog/catalog/pub/config/config.py fi |