Commit 950f69e7 authored by jcorvi's avatar jcorvi

error building docker

parent 6438e8ab
Pipeline #2676 passed with stage
in 6 minutes and 4 seconds
......@@ -30,13 +30,13 @@ fi
mvn clean install -DskipTests
#rename jar
mv target/nlp-generic-dictionary-annotation-0.0.1-SNAPSHOT-jar-with-dependencies.jar nlp-generic-dictionary-annotation-${DICT_TAGGER_VERSION}.jar
mv target/nlp-gate-generic-component-0.0.1-SNAPSHOT-jar-with-dependencies.jar nlp-gate-generic-component-${DICT_TAGGER_VERSION}.jar
cat > /usr/local/bin/nlp-generic-dictionary-annotation <<EOF
cat > /usr/local/bin/nlp-gate-generic-component <<EOF
#!/bin/sh
exec java \$JAVA_OPTS -jar "${DICT_TAGGER_HOME}/nlp-generic-dictionary-annotation-${DICT_TAGGER_VERSION}.jar" -workdir "${DICT_TAGGER_HOME}" "\$@"
exec java \$JAVA_OPTS -jar "${DICT_TAGGER_HOME}/nlp-gate-generic-component-${DICT_TAGGER_VERSION}.jar" -workdir "${DICT_TAGGER_HOME}" "\$@"
EOF
chmod +x /usr/local/bin/nlp-generic-dictionary-annotation
chmod +x /usr/local/bin/nlp-gate-generic-component
#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