aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket-be/deployment/docker
diff options
context:
space:
mode:
authorChris Donley <christopher.donley@huawei.com>2018-04-30 13:51:09 -0700
committerChris Donley <christopher.donley@huawei.com>2018-04-30 13:51:09 -0700
commit08e2fef7a5b108828f7ab02c8f4661708f10a422 (patch)
tree71e9bb87288faa6591dd1744a96ef5385c632fc0 /vnfmarket-be/deployment/docker
parentfeb2fddd4cffd634e48629cc3c7648a3e23ddc1b (diff)
fix vnfsdk containers for oom
Change POSTGRES_IP to POSTGRES_SERVICE_HOST in vnfsdk refrepo container. Issue-ID: VNFSDK-260 Change-Id: I90de6dcc34f651c6d86bbe5cae50e504d555a9e1 Signed-off-by: Chris Donley <christopher.donley@huawei.com>
Diffstat (limited to 'vnfmarket-be/deployment/docker')
-rwxr-xr-xvnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/docker-entrypoint.sh4
-rwxr-xr-xvnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-init.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/docker-entrypoint.sh b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/docker-entrypoint.sh
index df6cfce9..c7941209 100755
--- a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/docker-entrypoint.sh
+++ b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/docker-entrypoint.sh
@@ -23,8 +23,8 @@
if [ -z "$SERVICE_IP" ]; then
export SERVICE_IP=`hostname -i`
fi
-if [ -z "$POSTGRES_IP" ]; then
- export POSTGRES_IP=127.0.0.1
+if [ -z "$POSTGRES_SERVICE_HOST" ]; then
+ export POSTGRES_SERVICE_HOST=127.0.0.1
fi
echo
diff --git a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-init.sh b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-init.sh
index 697eaded..a93e3f54 100755
--- a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-init.sh
+++ b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-init.sh
@@ -17,5 +17,5 @@
#Set postgres instance IP
-sed -i 's|127.0.0.1|'"$POSTGRES_IP"'|' webapps/ROOT/WEB-INF/classes/mybatis/configuration/configuration.xml
+sed -i 's|127.0.0.1|'"$POSTGRES_SERVICE_HOST"'|' webapps/ROOT/WEB-INF/classes/mybatis/configuration/configuration.xml