Skip to content
Snippets Groups Projects
Commit 55773501 authored by Alexander König's avatar Alexander König
Browse files

some more changes to the Dockerfile to deal with varying deploy scenarios

parent 62a0cee8
No related branches found
No related tags found
No related merge requests found
......@@ -35,14 +35,16 @@ RUN groupadd tomcat8
RUN useradd -s /bin/false -g tomcat8 -d /opt/tomcat8/ tomcat8
# doesn't this make more sense?
RUN chown tomcat8:tomcat8 /opt/tomcat8
RUN chown -R tomcat8:tomcat8 /opt/tomcat8
# RUN chgrp -R tomcat8 /opt/tomcat8/
# RUN chmod -R g+r /opt/tomcat8/conf/
# RUN chmod g+x /opt/tomcat8/conf/
# RUN chown -R tomcat8 /opt/tomcat8/webapps/ /opt/tomcat8/work/ /opt/tomcat8/temp/ /opt/tomcat8/logs/
# copy the init script
# copy the init script and the modified catalina.sh
COPY commul-customization/tomcat8 /etc/init.d/
RUN chmod a+x /etc/init.d/tomcat8
COPY commul-customization/catalina.sh /opt/tomcat8/bin/
RUN chown tomcat8:tomcat8 /opt/lindat-dspace/installation/log/*
# build nginx
RUN apt-get install -y gcc zlib1g zlib1g-dev libpcre3 libpcre3-dev curl cpanminus
......@@ -130,9 +132,15 @@ RUN make aai.min.js
COPY commul-customization/certs/lindat-dev.key /etc/ssl/private/
COPY commul-customization/certs/lindat-dev_eurac_edu.pem /etc/ssl/certs/
# copy certificate for lindat
# if deployed on lindat instead of lindat-dev comment the two lines above and uncomment the following 6 lines
## copy certificate for lindat
# COPY commul-customization/certs/lindat_eurac_edu.key /etc/ssl/private/
# COPY commul-customization/certs/lindat_eurac_edu.crt /etc/ssl/certs/
# COPY docker-lindat-dev2lindat.sh /tmp/
# RUN chmod +x /tmp/docker-lindat-dev2lindat.sh
# RUN /tmp/docker-lindat-dev2lindat.sh
# RUN grep -rl lindat-dev /opt/lindat-common/public/ | xargs -i perl -pi -e 's/lindat-dev/lindat/g' {}
# convenience setting of workdir
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment