Commit 27066537 authored by javi's avatar javi
Browse files

change service name in dockerization

parent ef5e1e5c
Pipeline #22521 passed with stage
in 4 minutes and 6 seconds
......@@ -11,5 +11,5 @@ RUN chmod u=rwx,g=rwx,o=r /usr/local/share/rest_api -R
RUN docker-build.sh ${REST_API_VERSION}
CMD /usr/local/bin/ades-rest-api
CMD /usr/local/bin/pretox-rest-api
\ No newline at end of file
......@@ -30,13 +30,13 @@ fi
mvn clean install -DskipTests
#rename jar
mv target/ades-rest-api-0.0.1-SNAPSHOT.jar ades-rest-api-${REST_API_VERSION}.jar
mv target/pretox-rest-api-0.0.1-SNAPSHOT.jar pretox-rest-api-${REST_API_VERSION}.jar
cat > /usr/local/bin/ades-rest-api <<EOF
cat > /usr/local/bin/pretox-rest-api <<EOF
#!/bin/sh
exec java \$JAVA_OPTS -jar "${REST_API_HOME}/ades-rest-api-${REST_API_VERSION}.jar" -workdir "${REST_API_HOME}" "\$@"
exec java \$JAVA_OPTS -jar "${REST_API_HOME}/pretox-rest-api-${REST_API_VERSION}.jar" -workdir "${REST_API_HOME}" "\$@"
EOF
chmod +x /usr/local/bin/ades-rest-api
chmod +x /usr/local/bin/pretox-rest-api
#delete target
rm -R target src pom.xml
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment