Differences

This shows you the differences between two versions of the page.

Link to this comparison view

server:docker:docker-images [16/05/2019 11:30]
Anthony Arents
server:docker:docker-images [04/06/2019 16:15] (current)
Anthony Arents [maven plugin config]
Line 1: Line 1:
 ====== Docker ====== ====== Docker ======
-===== research =====+===== Preliminary research =====
 ==== Docker network ==== ==== Docker network ====
  
Line 30: Line 30:
 this build needs to expose 8009 (AJP) this build needs to expose 8009 (AJP)
 webapps which are deployed will probably need to change their jdbcURL, localhost -> mysql webapps which are deployed will probably need to change their jdbcURL, localhost -> mysql
-endresult needs to start with +endresult needs to start with -v $(pwd)/target/documents:/var/documents --network=dockernetwork --name=tomcatinstance1 -p 8009:8009
-    -v $(pwd)/target/documents:/var/documents +
-    --network=dockernetwork +
-    --name=tomcatinstance1 +
-    -p 8009:8009+
  
 +===== Visualisation =====
 +{{:server:docker:untitled-1.png?nolink|}}
 ===== sources : ===== ===== sources : =====
  
-Our current ubuntu configuration steps+Our current ubuntu configuration steps :\\ 
 http://wiki.mentoringsystems.be/server/ubuntu/ubuntu-installation-new#install_configure_mysql http://wiki.mentoringsystems.be/server/ubuntu/ubuntu-installation-new#install_configure_mysql
  
-multiple instances+multiple instances :\\ 
 https://medium.com/@lasithaben/install-docker-and-multiple-tomcats-7bc8a6bf39e6 https://medium.com/@lasithaben/install-docker-and-multiple-tomcats-7bc8a6bf39e6
  
-volumes :+volumes :\\ 
 https://docs.docker.com/storage/volumes/ https://docs.docker.com/storage/volumes/
  
-full setup with composer :+full setup with composer :\\ 
 https://beautifulbytes.wordpress.com/2016/01/04/set-up-apache-httpd-and-tomcat-with-docker-compose/ https://beautifulbytes.wordpress.com/2016/01/04/set-up-apache-httpd-and-tomcat-with-docker-compose/
  
-mysql in docker:+mysql in docker:\\ 
 https://dev.mysql.com/doc/mysql-installation-excerpt/5.5/en/docker-mysql-more-topics.html#docker-persisting-data-configuration https://dev.mysql.com/doc/mysql-installation-excerpt/5.5/en/docker-mysql-more-topics.html#docker-persisting-data-configuration
  
-network :+network :\\ 
 https://docs.docker.com/network/ https://docs.docker.com/network/
  
-opening ports :+opening ports :\\ 
 https://medium.freecodecamp.org/expose-vs-publish-docker-port-commands-explained-simply-434593dbc9a3 https://medium.freecodecamp.org/expose-vs-publish-docker-port-commands-explained-simply-434593dbc9a3
  
  
 +====== Docker images ======
 ===== Apache 2.4 ===== ===== Apache 2.4 =====
 ==== Dockerfile ==== ==== Dockerfile ====
Line 835: Line 834:
                 </executions>                 </executions>
                 <configuration>                 <configuration>
 +                    <skip>${dockerskip}</skip>
                     <repository>jcp/suite</repository>                     <repository>jcp/suite</repository>
                     <tag>${analyse.buildconfig}</tag>                     <tag>${analyse.buildconfig}</tag>
Line 859: Line 859:
  
 #wkhtmltopdf #wkhtmltopdf
-RUN apt-get install -y \+RUN DEBIAN_FRONTEND=noninteractive; \ 
 +    apt-get install -y \
         curl \         curl \
         xfonts-base \         xfonts-base \
         xfonts-75dpi \         xfonts-75dpi \
 +        libjpeg62-turbo \
 +        libx11-6 \
 +        libxext6 \
 +        libxrender1 \
     && apt-get clean \     && apt-get clean \
     && curl "https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb" -L -o "wkhtmltopdf.deb" \     && curl "https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb" -L -o "wkhtmltopdf.deb" \