summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-04-10 15:59:10 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-04-10 16:00:40 +0800
commitd0e355c86dd63f27a9a2d48b161ae2e8b081bb65 (patch)
treed52035d3114d16dafc224576f25f8862b79e6ff5 /docker
parent9f2cc06710ff6f44bcbfe5b1307ee33ec2a8ffd1 (diff)
chown onap:onap to /var/log
Change-Id: I06f5f72257bc6e1f9afa1b444fdb7f4c5453778d Issue-ID: VFC-1306 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/Dockerfile2
-rwxr-xr-xdocker/instance_init.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 0b98e5e9..8f00db43 100755
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -36,7 +36,7 @@ WORKDIR /service
RUN wget -q -O vfc-nfvo-lcm.zip 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.vfc.nfvo.lcm&a=vfc-nfvo-lcm&v=LATEST&e=zip' && \
unzip vfc-nfvo-lcm.zip && \
rm -rf vfc-nfvo-lcm.zip && \
- chown onap:onap /service -R
+ chown onap:onap -R /service /var/log
WORKDIR /service/vfc/nfvo/lcm
RUN pip install --upgrade setuptools pip && \
diff --git a/docker/instance_init.sh b/docker/instance_init.sh
index 1df3f779..db7944c1 100755
--- a/docker/instance_init.sh
+++ b/docker/instance_init.sh
@@ -31,6 +31,6 @@ GET_NSLCM_DB="show databases like 'vfcnfvolcm';"
NSLCM_DB=`mysql -u$MYSQL_ROOT_USER -p$MYSQL_ROOT_PASSWORD -P$MYSQL_PORT -h$MYSQL_IP -e "GET_NSLCM_DB"`
if [[ "$NSLCM_DB" == "" ]]; then
create_database
-
+ migrate_database
fi
-migrate_database
+