Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
INB
eTRANSAFE
pretox-sr-domain-identification
Commits
ecc41eb0
Commit
ecc41eb0
authored
Oct 04, 2021
by
Javi Corvi
Browse files
name changes
parent
f2db842b
Pipeline
#24843
passed with stage
in 2 minutes and 30 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
ecc41eb0
FROM
alpine:3.9
WORKDIR
/usr/local/share/
adesexporttojs
on
WORKDIR
/usr/local/share/
pretox_sr_domain_identificati
on
ARG
ADES_EXPORT_JS
ON_VERSION=1.0
ARG
PRETOX_SR_DOMAIN_IDENTIFICATI
ON_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/
adesexporttojs
on
-R
RUN
chmod
u
=
rwx,g
=
rwx,o
=
r /usr/local/share/
pretox_sr_domain_identificati
on
-R
RUN
docker-build.sh
${
ADES_EXPORT_JS
ON_VERSION
}
RUN
docker-build.sh
${
DOMAIN_IDENTIFICATI
ON_VERSION
}
docker-build.sh
View file @
ecc41eb0
#!/bin/sh
BASEDIR
=
/usr/local
ADES_EXPORT_JSON_HOME
=
"
${
BASEDIR
}
/share/adesexporttojs
on/"
PRETOX_SR_DOMAIN_IDENTIFICATION_HOME
=
"
${
BASEDIR
}
/share/pretox_sr_domain_identificati
on/"
ADES_EXPORT_JS
ON_VERSION
=
1.0
PRETOX_SR_DOMAIN_IDENTIFICATI
ON_VERSION
=
1.0
# Exit on error
set
-e
if
[
$#
-ge
1
]
;
then
ADES_EXPORT_JS
ON_VERSION
=
"
$1
"
PRETOX_SR_DOMAIN_IDENTIFICATI
ON_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-js
on-0.0.1-SNAPSHOT-jar-with-dependencies.jar ades-export-to-json-
${
ADES_EXPORT_JS
ON_VERSION
}
.jar
mv
target/
pretox-sr-domain-identificati
on-0.0.1-SNAPSHOT-jar-with-dependencies.jar ades-export-to-json-
${
PRETOX_SR_DOMAIN_IDENTIFICATI
ON_VERSION
}
.jar
cat
>
/usr/local/bin/
ades-export-to-js
on
<<
EOF
cat
>
/usr/local/bin/
pretox-sr-domain-identificati
on
<<
EOF
#!/bin/sh
exec java
\$
JAVA_OPTS -jar "
${
ADES_EXPORT_JSON_HOME
}
/ades-export-to-json-
${
ADES_EXPORT_JSON_VERSION
}
.jar" -workdir "
${
ADES_EXPORT_JS
ON_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_IDENTIFICATI
ON_HOME
}
" "
\$
@"
EOF
chmod
+x /usr/local/bin/
ades-export-to-js
on
chmod
+x /usr/local/bin/
pretox-sr-domain-identificati
on
#delete target
rm
-R
target src pom.xml
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment