30 lines
1.4 KiB
Docker
30 lines
1.4 KiB
Docker
#FROM d4science/smartgears-distribution:4.0.0-SNAPSHOT-java11-tomcat9
|
|
FROM smartgears-distribution:4.0.0-java11-tomcat9-devel
|
|
|
|
ARG REPOUSER=admin
|
|
ARG REPOPWD=admin
|
|
# COPY ./target/identity-manager.war /tomcat/webapps/
|
|
ARG REPOPWD=admin
|
|
|
|
#COPY ./tomcat/webapps/sample.war /tomcat/webapps/
|
|
#COPY ./target/identity-manager.war /usr/local/tomcat/webapps/
|
|
|
|
# COPY ./docker/storagehub.xml /tomcat/conf/Catalina/localhost/
|
|
COPY ./docker/logback.xml /etc/
|
|
COPY ./docker/container.ini /etc/
|
|
|
|
# RUN cp -a /usr/local/tomcat/webapps.dist/docs /usr/local/tomcat/webapps
|
|
# RUN cp -a /usr/local/tomcat/webapps.dist/examples /usr/local/tomcat/webapps
|
|
# RUN cp -a /usr/local/tomcat/webapps.dist/host-manager /usr/local/tomcat/webapps
|
|
# RUN cp -a /usr/local/tomcat/webapps.dist/manager /usr/local/tomcat/webapps
|
|
# RUN cp -a /usr/local/tomcat/webapps.dist/ROOT /usr/local/tomcat/webapps
|
|
|
|
RUN cp -a /usr/local/tomcat/webapps.dist/* /usr/local/tomcat/webapps
|
|
|
|
# RUN unzip /tomcat/webapps/identity-manager.war -d /tomcat/webapps/identity-manager
|
|
# RUN unzip /usr/local/tomcat/webapps/identity-manager.war -d /usr/local/tomcat/webapps/identity-manager
|
|
# RUN rm /usr/local/tomcat/webapps/identity-manager.war
|
|
EXPOSE 8080
|
|
# COPY ./docker/storage-settings.properties /tomcat/webapps/identity-manager/WEB-INF/classes/
|
|
# RUN sed -i "s/{{adminId}}/$REPOUSER/g; s/{{adminPwd}}/$REPOPWD/g" /tomcat/webapps/storagehub/WEB-INF/web.xml
|