storagehub/Dockerfile

11 lines
612 B
Docker
Raw Normal View History

2022-02-02 11:27:52 +01:00
FROM luciolelii/smartgears:latest
ARG REPOUSER=admin
ARG REPOPWD=admin
2022-02-02 11:27:52 +01:00
COPY ./target/storagehub.war /usr/local/tomcat/webapps/
COPY ./docker/jackrabbit /app/jackrabbit
COPY ./docker/storagehub.xml /usr/local/tomcat/conf/Catalina/localhost/
RUN unzip /usr/local/tomcat/webapps/storagehub.war -d /usr/local/tomcat/webapps/storagehub
RUN sed -i 's/<root /<logger name="org.gcube.data.access.storagehub" level="DEBUG" \/>\n <root /g' /usr/local/tomcat/lib/logback.xml
RUN sed -i "s/{{adminId}}/$REPOUSER/g; s/{{adminPwd}}/$REPOPWD/g" /usr/local/tomcat/webapps/storagehub/WEB-INF/web.xml