diff options
author | Shashank Kumar Shankar <shashank.kumar.shankar@intel.com> | 2017-09-01 14:34:32 -0700 |
---|---|---|
committer | Shashank Kumar Shankar <shashank.kumar.shankar@intel.com> | 2017-09-01 14:38:50 -0700 |
commit | 8790d0ae277f350553bd4df8129bd0771bd48a3b (patch) | |
tree | ee601dc90321ade5d5ed62b0e4da77c3e8187949 /docker/instance_config.sh | |
parent | 51af25d420b6e6cab9ad6ecad26fd58ab7f145b9 (diff) |
Fix Docker Image building for NFVO LCM
This patch fixes various issues in NFVO LCM docker image
building.
Change-Id: Icdc475d554f8f6327c78c6560c3c9aa49974271d
Issue-Id: VFC-231
Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
Diffstat (limited to 'docker/instance_config.sh')
-rwxr-xr-x | docker/instance_config.sh | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/docker/instance_config.sh b/docker/instance_config.sh index 6e44b47b..06e0d027 100755 --- a/docker/instance_config.sh +++ b/docker/instance_config.sh @@ -4,30 +4,30 @@ MSB_IP=`echo $MSB_ADDR | cut -d: -f 1` MSB_PORT=`echo $MSB_ADDR | cut -d: -f 2` if [ $MSB_IP ]; then - sed -i "s|MSB_SERVICE_IP.*|MSB_SERVICE_IP = '$MSB_IP'|" lcm/pub/config/config.py + sed -i "s|MSB_SERVICE_IP.*|MSB_SERVICE_IP = '$MSB_IP'|" vfc/nfvo/lcm/lcm/pub/config/config.py fi if [ $MSB_PORT ]; then - sed -i "s|MSB_SERVICE_PORT.*|MSB_SERVICE_PORT = '$MSB_PORT'|" lcm/pub/config/config.py + sed -i "s|MSB_SERVICE_PORT.*|MSB_SERVICE_PORT = '$MSB_PORT'|" vfc/nfvo/lcm/lcm/pub/config/config.py fi if [ $SERVICE_IP ]; then - sed -i "s|\"ip\": \".*\"|\"ip\": \"$SERVICE_IP\"|" lcm/pub/config/config.py - sed -i "s|127\.0\.0\.1|$SERVICE_IP|" lcm/run.sh - sed -i "s|127\.0\.0\.1|$SERVICE_IP|" lcm/stop.sh + sed -i "s|\"ip\": \".*\"|\"ip\": \"$SERVICE_IP\"|" vfc/nfvo/lcm/lcm/pub/config/config.py + sed -i "s|127\.0\.0\.1|$SERVICE_IP|" vfc/nfvo/lcm/run.sh + sed -i "s|127\.0\.0\.1|$SERVICE_IP|" vfc/nfvo/lcm/stop.sh fi if [ $REDIS_HOST ]; then - sed -i "s|REDIS_HOST.*|REDIS_HOST = '$REDIS_HOST'|" lcm/pub/config/config.py + sed -i "s|REDIS_HOST.*|REDIS_HOST = '$REDIS_HOST'|" vfc/nfvo/lcm/lcm/pub/config/config.py fi if [ $SDC_BASE_URL ]; then - sed -i "s|SDC_BASE_URL.*|SDC_BASE_URL = '$SDC_BASE_URL'|" lcm/pub/config/config.py + sed -i "s|SDC_BASE_URL.*|SDC_BASE_URL = '$SDC_BASE_URL'|" vfc/nfvo/lcm/lcm/pub/config/config.py fi -sed -i "s|DB_NAME.*|DB_NAME = 'vfcnfvolcm'|" lcm/pub/config/config.py -sed -i "s|DB_USER.*|DB_USER = 'vfcnfvolcm'|" lcm/pub/config/config.py -sed -i "s|DB_PASSWD.*|DB_PASSWD = 'vfcnfvolcm'|" lcm/pub/config/config.py +sed -i "s|DB_NAME.*|DB_NAME = 'vfcnfvolcm'|" vfc/nfvo/lcm/lcm/pub/config/config.py +sed -i "s|DB_USER.*|DB_USER = 'vfcnfvolcm'|" vfc/nfvo/lcm/lcm/pub/config/config.py +sed -i "s|DB_PASSWD.*|DB_PASSWD = 'vfcnfvolcm'|" vfc/nfvo/lcm/lcm/pub/config/config.py # Configure MYSQL if [ -z "$MYSQL_ADDR" ]; then @@ -39,7 +39,7 @@ else MYSQL_PORT=`echo $MYSQL_ADDR | cut -d: -f 2` fi echo "MYSQL_ADDR=$MYSQL_ADDR" -sed -i "s|DB_IP.*|DB_IP = '$MYSQL_IP'|" lcm/pub/config/config.py -sed -i "s|DB_PORT.*|DB_PORT = $MYSQL_PORT|" lcm/pub/config/config.py +sed -i "s|DB_IP.*|DB_IP = '$MYSQL_IP'|" vfc/nfvo/lcm/lcm/pub/config/config.py +sed -i "s|DB_PORT.*|DB_PORT = $MYSQL_PORT|" vfc/nfvo/lcm/lcm/pub/config/config.py -cat lcm/pub/config/config.py +cat vfc/nfvo/lcm/lcm/pub/config/config.py |