smartgears-distribution/Dockerfile

22 lines
1003 B
Docker
Raw Normal View History

2024-03-12 11:50:13 +01:00
ARG JAVA_VERSION=11
2024-05-07 18:20:47 +02:00
FROM tomcat:10.1.19-jdk${JAVA_VERSION}-temurin-jammy
ARG SMARTGEARS_VERSION=""
ENV FILENAME=smartgears-distribution-${SMARTGEARS_VERSION}
COPY ./target/${FILENAME}.tar.gz /smartgears-distro.tar.gz
2022-03-04 14:53:17 +01:00
WORKDIR /
2024-05-07 14:44:06 +02:00
# 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)
RUN mkdir -p /etc/config
2022-03-04 14:53:17 +01:00
RUN tar zxvf /smartgears-distro.tar.gz
RUN rm /smartgears-distro.tar.gz
2022-03-04 14:53:17 +01:00
RUN export CATALINA_HOME=/usr/local/tomcat
RUN ln -s /usr/local/tomcat tomcat
2024-05-07 18:20:47 +02:00
RUN mv smartgears-distribution-$SMARTGEARS_VERSION smartgears-distribution
2022-03-04 14:53:17 +01:00
ENV GHN_HOME=./smartgears-distribution
RUN ./smartgears-distribution/install -s tomcat
2024-03-12 11:50:13 +01:00
COPY tomcat_files/startContainer.sh /startContainer.sh
RUN chmod +x /startContainer.sh
ENTRYPOINT ["/startContainer.sh"]
2024-02-07 15:45:50 +01:00
CMD ["catalina.sh","run"]