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