dockerfile con versione parametrica
This commit is contained in:
parent
9d52aef7cb
commit
dcecfe224c
12
Dockerfile
12
Dockerfile
|
@ -1,8 +1,10 @@
|
||||||
ARG JAVA_VERSION=11
|
ARG JAVA_VERSION=11
|
||||||
FROM tomcat:10.1.19-jdk$JAVA_VERSION-temurin-jammy
|
|
||||||
ARG filename=smartgears-distribution-4.0.0-SNAPSHOT
|
FROM tomcat:10.1.19-jdk${JAVA_VERSION}-temurin-jammy
|
||||||
ARG version=4.0.0-SNAPSHOT
|
ARG SMARTGEARS_VERSION=""
|
||||||
COPY ./target/$filename.tar.gz /smartgears-distro.tar.gz
|
ENV FILENAME=smartgears-distribution-${SMARTGEARS_VERSION}
|
||||||
|
|
||||||
|
COPY ./target/${FILENAME}.tar.gz /smartgears-distro.tar.gz
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
# all file and folder in etc/config are moved to the smartgears applications configuration directory
|
# all file and folder in etc/config are moved to the smartgears applications configuration directory
|
||||||
# for specific application configuration ( configuration file for app with contextPath "contextPath" must be placed in /etc/config/contextPath)
|
# for specific application configuration ( configuration file for app with contextPath "contextPath" must be placed in /etc/config/contextPath)
|
||||||
|
@ -11,7 +13,7 @@ FROM tomcat:10.1.19-jdk$JAVA_VERSION-temurin-jammy
|
||||||
RUN rm /smartgears-distro.tar.gz
|
RUN rm /smartgears-distro.tar.gz
|
||||||
RUN export CATALINA_HOME=/usr/local/tomcat
|
RUN export CATALINA_HOME=/usr/local/tomcat
|
||||||
RUN ln -s /usr/local/tomcat tomcat
|
RUN ln -s /usr/local/tomcat tomcat
|
||||||
RUN mv smartgears-distribution-$version smartgears-distribution
|
RUN mv smartgears-distribution-$SMARTGEARS_VERSION smartgears-distribution
|
||||||
ENV GHN_HOME=./smartgears-distribution
|
ENV GHN_HOME=./smartgears-distribution
|
||||||
RUN ./smartgears-distribution/install -s tomcat
|
RUN ./smartgears-distribution/install -s tomcat
|
||||||
COPY tomcat_files/startContainer.sh /startContainer.sh
|
COPY tomcat_files/startContainer.sh /startContainer.sh
|
||||||
|
|
Loading…
Reference in New Issue