hello-world-service/build_conf

42 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-05-23 16:59:48 +02:00
MVN_VERSION=$(mvn -q \
-Dexec.executable=echo \
-Dexec.args='${project.version}' \
--non-recursive \
exec:exec)
MVN_NAME=$(mvn -q \
-Dexec.executable=echo \
-Dexec.args='${project.artifactId}' \
--non-recursive \
exec:exec)
MVN_FINALNAME=$(mvn -q \
-Dexec.executable=echo \
-Dexec.args='${project.build.finalName}' \
--non-recursive \
exec:exec)
JAVA_VERSION=$(mvn -q \
-Dexec.executable=echo \
-Dexec.args='${maven.compiler.target}' \
--non-recursive \
exec:exec)
TOMCAT_VERSION=tomcat10.1.19
SMARTGEARS_VERSION=$(mvn -q \
-Dexec.executable=echo \
-Dexec.args='${docker.smartgear.version}' \
--non-recursive \
exec:exec)
CONTAINER_INI="./docker/container.ini"
IMAGE_VERSION=${MVN_VERSION}-java${JAVA_VERSION}-smartgears${SMARTGEARS_VERSION}
DOCKER_BUILD_NAME=$MVN_NAME:$IMAGE_VERSION
SMARTGEAR_IMAGE=hub.dev.d4science.org/gcube/smartgears-distribution:${SMARTGEARS_VERSION}-java${JAVA_VERSION}-${TOMCAT_VERSION}
DOCKER_IMAGE_NAME=d4science/$DOCKER_BUILD_NAME
HARBOR_IMAGE_NAME=hub.dev.d4science.org/gcube/$DOCKER_BUILD_NAME