aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-04-25 17:13:29 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-04-25 17:14:05 +0800
commit94a2d8b77565ff50462498b8646c66b69bb4a23f (patch)
treeface5f7409adaaeeb54e11d3f063213c3c735c21
parentb19a8a1662e48dd314ec22c69d2954c18c3e02e0 (diff)
update file directory
Change-Id: I450596eb4c88e9cedb2ae705431973d1ca7e3a43 Issue-ID: MODELING-159 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rw-r--r--assembly.xml2
-rw-r--r--docker/Dockerfile2
-rwxr-xr-xdocker/docker-entrypoint.sh6
-rwxr-xr-xdocker/docker-env-conf.sh4
-rwxr-xr-xdocker/instance_config.sh14
-rwxr-xr-xdocker/instance_init.sh4
-rwxr-xr-xdocker/instance_run.sh2
-rw-r--r--pom.xml8
8 files changed, 21 insertions, 21 deletions
diff --git a/assembly.xml b/assembly.xml
index 7b1bd29..b2ef1aa 100644
--- a/assembly.xml
+++ b/assembly.xml
@@ -76,5 +76,5 @@
</includes>
</fileSet>
</fileSets>
- <baseDirectory>modeling/toscaparsers/genericparser</baseDirectory>
+ <baseDirectory>modeling/genericparser</baseDirectory>
</assembly>
diff --git a/docker/Dockerfile b/docker/Dockerfile
index e532e82..98bea25 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -13,4 +13,4 @@ EXPOSE 8806
USER onap
WORKDIR /service
-ENTRYPOINT modeling/toscaparsers/genericparser/docker/docker-entrypoint.sh
+ENTRYPOINT modeling/genericparser/docker/docker-entrypoint.sh
diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh
index 08cf11c..a093691 100755
--- a/docker/docker-entrypoint.sh
+++ b/docker/docker-entrypoint.sh
@@ -34,12 +34,12 @@ for i in {1..5}; do
done
# Configure service based on docker environment variables
-modeling/toscaparsers/genericparser/docker/instance_config.sh
+modeling/genericparser/docker/instance_config.sh
# microservice-specific one-time initialization
-modeling/toscaparsers/genericparser/docker/instance_init.sh
+modeling/genericparser/docker/instance_init.sh
date > init.log
# Start the microservice
-modeling/toscaparsers/genericparser/docker/instance_run.sh
+modeling/genericparser/docker/instance_run.sh
diff --git a/docker/docker-env-conf.sh b/docker/docker-env-conf.sh
index 985aada..2629c8c 100755
--- a/docker/docker-env-conf.sh
+++ b/docker/docker-env-conf.sh
@@ -9,12 +9,12 @@ install_sf(){
# get binary zip from nexus - vfc-nfvo-genericparser
- wget -q -O modeling-genericparser.zip 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.modeling.toscaparsers.genericparser&a=modeling-toscaparsers-genericparserr&v=LATEST&e=zip' && \
+ wget -q -O modeling-genericparser.zip 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.modeling.genericparser&a=modeling-genericparserr&v=LATEST&e=zip' && \
unzip modeling-genericparser.zip && \
rm -rf modeling-genericparser.zip && \
pip install --upgrade setuptools pip && \
- pip install --no-cache-dir --pre -r /service/modeling/toscaparsers/genericparser/requirements.txt
+ pip install --no-cache-dir --pre -r /service/modeling/genericparser/requirements.txt
}
add_user(){
diff --git a/docker/instance_config.sh b/docker/instance_config.sh
index 64bc3da..80a278f 100755
--- a/docker/instance_config.sh
+++ b/docker/instance_config.sh
@@ -5,15 +5,15 @@ MSB_PORT=`echo $MSB_ADDR | cut -d: -f 2`
# modeling/genericparser
if [ $MSB_IP ]; then
- sed -i "s|MSB_SERVICE_IP.*|MSB_SERVICE_IP = '$MSB_IP'|" modeling/toscaparsers/genericparser/genericparser/pub/config/config.py
+ sed -i "s|MSB_SERVICE_IP.*|MSB_SERVICE_IP = '$MSB_IP'|" modeling/genericparser/genericparser/pub/config/config.py
fi
if [ $MSB_PORT ]; then
- sed -i "s|MSB_SERVICE_PORT.*|MSB_SERVICE_PORT = '$MSB_PORT'|" modeling/toscaparsers/genericparser/genericparser/pub/config/config.py
+ sed -i "s|MSB_SERVICE_PORT.*|MSB_SERVICE_PORT = '$MSB_PORT'|" modeling/genericparser/genericparser/pub/config/config.py
fi
if [ $SERVICE_IP ]; then
- sed -i "s|\"ip\": \".*\"|\"ip\": \"$SERVICE_IP\"|" modeling/toscaparsers/genericparser/genericparser/pub/config/config.py
+ sed -i "s|\"ip\": \".*\"|\"ip\": \"$SERVICE_IP\"|" modeling/genericparser/genericparser/pub/config/config.py
fi
MYSQL_IP=`echo $MYSQL_ADDR | cut -d: -f 1`
@@ -27,8 +27,8 @@ else
fi
-sed -i "s|DB_IP.*|DB_IP = '$MYSQL_IP'|" modeling/toscaparsers/genericparser/genericparser/pub/config/config.py
-sed -i "s|DB_PORT.*|DB_PORT = $MYSQL_PORT|" modeling/toscaparsers/genericparser/genericparser/pub/config/config.py
-sed -i "s|REDIS_HOST.*|REDIS_HOST = '$REDIS_IP'|"modeling/toscaparsers/genericparser/genericparser/pub/config/config.py
+sed -i "s|DB_IP.*|DB_IP = '$MYSQL_IP'|" modeling/genericparser/genericparser/pub/config/config.py
+sed -i "s|DB_PORT.*|DB_PORT = $MYSQL_PORT|" modeling/genericparser/genericparser/pub/config/config.py
+sed -i "s|REDIS_HOST.*|REDIS_HOST = '$REDIS_IP'|"modeling/genericparser/genericparser/pub/config/config.py
-cat modeling/toscaparsers/genericparser/genericparser/pub/config/config.py
+cat modeling/genericparser/genericparser/pub/config/config.py
diff --git a/docker/instance_init.sh b/docker/instance_init.sh
index ac71b43..0c25203 100755
--- a/docker/instance_init.sh
+++ b/docker/instance_init.sh
@@ -13,13 +13,13 @@ fi
function create_database {
- cd /service/modeling/toscaparsers/genericparser/resources/bin
+ cd /service/modeling/genericparser/resources/bin
bash initDB.sh $MYSQL_ROOT_USER $MYSQL_ROOT_PASSWORD $MYSQL_PORT $MYSQL_IP
}
function migrate_database {
- cd /service/modeling/toscaparsers/genericparser
+ cd /service/modeling/genericparser
python manage.py migrate
}
diff --git a/docker/instance_run.sh b/docker/instance_run.sh
index 9388135..8fce672 100755
--- a/docker/instance_run.sh
+++ b/docker/instance_run.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-cd /service/modeling/toscaparsers/genericparser
+cd /service/modeling/genericparser
./run.sh
diff --git a/pom.xml b/pom.xml
index a8757ac..9f8efbf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,12 +21,12 @@
<version>1.2.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
- <groupId>org.onap.modeling.toscaparsers.genericparser</groupId>
- <artifactId>modeling-toscaparsers-genericparser</artifactId>
+ <groupId>org.onap.modeling.genericparser</groupId>
+ <artifactId>modeling-genericparser</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
- <name>modeling-toscaparsers-genericparser</name>
- <description>modeling toscaparsers genericparser</description>
+ <name>modeling-genericparser</name>
+ <description>modeling genericparser</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<sonar.sources>.</sonar.sources>