Kotagiri, Ramprasad (rp5662) | f6c222c | 2019-03-28 16:44:25 -0400 | [diff] [blame] | 1 | # Use an official Tomcat image |
| 2 | FROM tomcat:8 |
| 3 | |
| 4 | ENV APPDIR /usr/local/tomcat |
| 5 | |
| 6 | WORKDIR ${APPDIR} |
| 7 | |
| 8 | # Create deployments directory |
| 9 | RUN mkdir /home/deployments |
| 10 | |
| 11 | # update apt-get |
| 12 | RUN apt-get update |
| 13 | |
| 14 | # Install zip |
| 15 | RUN apt-get -y --allow-unauthenticated install zip |
| 16 | |
| 17 | # Install vim |
| 18 | RUN apt-get -y --allow-unauthenticated install vim |
| 19 | |
| 20 | # Install dos2unix |
| 21 | RUN apt-get install dos2unix -f --allow-unauthenticated |
| 22 | |
| 23 | # Install postgresql |
| 24 | RUN apt-get -y install postgresql --allow-unauthenticated |
| 25 | |
| 26 | # Download required scripts |
| 27 | COPY docker-dashboard-installation.sh /tmp/docker-dashboard-installation.sh |
| 28 | COPY create_table.sql /tmp/create_table.sql |
| 29 | ARG WAR_FILE |
Kotagiri, Ramprasad (rp5662) | eef2f88 | 2019-04-08 14:18:19 -0400 | [diff] [blame] | 30 | COPY target/${WAR_FILE} /home/deployments/ccsdk-app.war |
Kotagiri, Ramprasad (rp5662) | f6c222c | 2019-03-28 16:44:25 -0400 | [diff] [blame] | 31 | |
| 32 | # Run docker-dashboard-installation.sh |
| 33 | RUN dos2unix /tmp/create_table.sql |
| 34 | RUN dos2unix /tmp/docker-dashboard-installation.sh |
| 35 | RUN chmod +x /tmp/create_table.sql |
| 36 | RUN chmod +x /tmp/docker-dashboard-installation.sh |
| 37 | |
Kotagiri, Ramprasad (rp5662) | a7f8286 | 2019-04-08 23:19:29 -0400 | [diff] [blame] | 38 | CMD ["/tmp/docker-dashboard-installation.sh"] |