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