2024-05-23 16:59:48 +02:00
|
|
|
# docker build -t $DOCKER_BUILD_NAME \
|
|
|
|
# --build-arg="MVN_FINALNAME=$MVN_FINALNAME" \
|
|
|
|
# --build-arg="MVN_NAME=${MVN_NAME}" \
|
|
|
|
# --build-arg="CONTAINER_INI=${CONTAINER_INI}" \
|
|
|
|
# --build-arg="JAVA_VERSION=${JAVA_VERSION}" \
|
|
|
|
# --build-arg="SMARTGEARS_VERSION=${SMARTGEARS_VERSION}" \
|
2024-05-24 14:19:55 +02:00
|
|
|
# -f Dockerfile \
|
2024-05-23 16:59:48 +02:00
|
|
|
# $PLATFORMS .
|
|
|
|
|
|
|
|
ARG JAVA_VERSION
|
|
|
|
ARG SMARTGEARS_VERSION
|
2024-02-21 11:44:41 +01:00
|
|
|
|
2024-05-22 15:47:21 +02:00
|
|
|
#FROM d4science/smartgears-distribution:${SMARTGEARS_VERSION}-java${JAVA_VERSION}-tomcat10.1.19
|
|
|
|
FROM hub.dev.d4science.org/gcube/smartgears-distribution:${SMARTGEARS_VERSION}-java${JAVA_VERSION}-tomcat10.1.19
|
2024-05-24 14:19:55 +02:00
|
|
|
ARG CONTAINER_INI="./dockerize/configuration/container.ini"
|
2024-05-23 16:59:48 +02:00
|
|
|
ARG MVN_FINALNAME
|
|
|
|
ARG MVN_NAME
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install unzip
|
|
|
|
#FROM smartgears-distribution:${SMARTGEARS_VERSION}-java${JAVA_VERSION}-tomcat10.1.19
|
2024-02-21 11:44:41 +01:00
|
|
|
|
2024-05-24 14:19:55 +02:00
|
|
|
COPY ./dockerize/configuration/logback.xml /etc/
|
|
|
|
COPY ./dockerize/configuration/*.gcubekey /tomcat/lib
|
2024-05-23 16:59:48 +02:00
|
|
|
COPY ./target/${MVN_FINALNAME}.war /tmp
|
|
|
|
RUN unzip /tmp/${MVN_FINALNAME}.war -d /tomcat/webapps/${MVN_NAME}
|
2024-05-22 15:47:21 +02:00
|
|
|
COPY ${CONTAINER_INI} /etc/container.ini
|
|
|
|
|
|
|
|
EXPOSE 8080
|