Commit 77b6e1b0 authored by jcorvi's avatar jcorvi
Browse files

Update docker-build.sh

parent 9f8c12c9
Pipeline #24844 failed with stage
in 1 minute and 23 seconds
......@@ -30,13 +30,13 @@ fi
mvn clean install -DskipTests
#rename jar
mv target/ades-relation-extraction-0.0.1-SNAPSHOT-jar-with-dependencies.jar ades-relation-extraction-${ADES_RELATION_VERSION}.jar
mv target/pretox-relation-extraction-0.0.1-SNAPSHOT-jar-with-dependencies.jar pretox-relation-extraction-${ADES_RELATION_VERSION}.jar
cat > /usr/local/bin/ades-relation-extraction <<EOF
cat > /usr/local/bin/pretox-relation-extraction <<EOF
#!/bin/sh
exec java \$JAVA_OPTS -jar "${ADES_RELATION_HOME}/ades-relation-extraction-${ADES_RELATION_VERSION}.jar" -workdir "${ADES_RELATION_HOME}" "\$@"
exec java \$JAVA_OPTS -jar "${ADES_RELATION_HOME}/pretox-relation-extraction-${ADES_RELATION_VERSION}.jar" -workdir "${ADES_RELATION_HOME}" "\$@"
EOF
chmod +x /usr/local/bin/ades-relation-extraction
chmod +x /usr/local/bin/pretox-relation-extraction
#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