Commit ecc41eb0 authored by Javi Corvi's avatar Javi Corvi
Browse files

name changes

parent f2db842b
Pipeline #24843 passed with stage
in 2 minutes and 30 seconds
FROM alpine:3.9
WORKDIR /usr/local/share/adesexporttojson
WORKDIR /usr/local/share/pretox_sr_domain_identification
ARG ADES_EXPORT_JSON_VERSION=1.0
ARG PRETOX_SR_DOMAIN_IDENTIFICATION_VERSION=1.0
COPY docker-build.sh /usr/local/bin/docker-build.sh
COPY src src
COPY pom.xml .
RUN chmod u=rwx,g=rwx,o=r /usr/local/share/adesexporttojson -R
RUN chmod u=rwx,g=rwx,o=r /usr/local/share/pretox_sr_domain_identification -R
RUN docker-build.sh ${ADES_EXPORT_JSON_VERSION}
RUN docker-build.sh ${DOMAIN_IDENTIFICATION_VERSION}
#!/bin/sh
BASEDIR=/usr/local
ADES_EXPORT_JSON_HOME="${BASEDIR}/share/adesexporttojson/"
PRETOX_SR_DOMAIN_IDENTIFICATION_HOME="${BASEDIR}/share/pretox_sr_domain_identification/"
ADES_EXPORT_JSON_VERSION=1.0
PRETOX_SR_DOMAIN_IDENTIFICATION_VERSION=1.0
# Exit on error
set -e
if [ $# -ge 1 ] ; then
ADES_EXPORT_JSON_VERSION="$1"
PRETOX_SR_DOMAIN_IDENTIFICATION_VERSION="$1"
fi
if [ -f /etc/alpine-release ] ; then
......@@ -30,13 +30,13 @@ fi
mvn clean install -DskipTests
#rename jar
mv target/ades-export-to-json-0.0.1-SNAPSHOT-jar-with-dependencies.jar ades-export-to-json-${ADES_EXPORT_JSON_VERSION}.jar
mv target/pretox-sr-domain-identification-0.0.1-SNAPSHOT-jar-with-dependencies.jar ades-export-to-json-${PRETOX_SR_DOMAIN_IDENTIFICATION_VERSION}.jar
cat > /usr/local/bin/ades-export-to-json <<EOF
cat > /usr/local/bin/pretox-sr-domain-identification <<EOF
#!/bin/sh
exec java \$JAVA_OPTS -jar "${ADES_EXPORT_JSON_HOME}/ades-export-to-json-${ADES_EXPORT_JSON_VERSION}.jar" -workdir "${ADES_EXPORT_JSON_HOME}" "\$@"
exec java \$JAVA_OPTS -jar "${PRETOX_SR_DOMAIN_IDENTIFICATION_HOME}/pretox-sr-domain-identification-${PRETOX_SR_DOMAIN_IDENTIFICATION_VERSION}.jar" -workdir "${PRETOX_SR_DOMAIN_IDENTIFICATION_HOME}" "\$@"
EOF
chmod +x /usr/local/bin/ades-export-to-json
chmod +x /usr/local/bin/pretox-sr-domain-identification
#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