diff options
author | Kotagiri, Ramprasad (rp5662) <rp5662@att.com> | 2019-03-28 16:44:25 -0400 |
---|---|---|
committer | Kotagiri, Ramprasad (rp5662) <rp5662@att.com> | 2019-03-28 17:49:25 -0400 |
commit | f6c222cd642ea9e3fab7a502ad74ca955cb4b2b4 (patch) | |
tree | 8fd6622520fc071981f3df159546532997f24e3f /ccsdk-app-os/Dockerfile | |
parent | f4231f30d53e192e15906245a8dd0e6ef42198e1 (diff) |
Docker container implementation
This change contains following items:
1) Update b2b-library.js to remove non-compliant code
2) Format source code for ccsdk-app-os module
3) Add Dockerfile and artifacts to create docker container
4) Update POM files for docker maven plugin and version changes
Issue-ID: CCSDK-1011
Change-Id: Iae93b32e1d8c2e7b911b044bc07bba6b720742a5
Signed-off-by: ramprasad kotagiri <rp5662@att.com>
Diffstat (limited to 'ccsdk-app-os/Dockerfile')
-rw-r--r-- | ccsdk-app-os/Dockerfile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/ccsdk-app-os/Dockerfile b/ccsdk-app-os/Dockerfile new file mode 100644 index 0000000..3a800c8 --- /dev/null +++ b/ccsdk-app-os/Dockerfile @@ -0,0 +1,38 @@ +# Use an official Tomcat image +FROM tomcat:8 + +ENV APPDIR /usr/local/tomcat + +WORKDIR ${APPDIR} + +# Create deployments directory +RUN mkdir /home/deployments + +# update apt-get +RUN apt-get update + +# Install zip +RUN apt-get -y --allow-unauthenticated install zip + +# Install vim +RUN apt-get -y --allow-unauthenticated install vim + +# Install dos2unix +RUN apt-get install dos2unix -f --allow-unauthenticated + +# Install postgresql +RUN apt-get -y install postgresql --allow-unauthenticated + +# Download required scripts +COPY docker-dashboard-installation.sh /tmp/docker-dashboard-installation.sh +COPY create_table.sql /tmp/create_table.sql +ARG WAR_FILE +ADD target/${WAR_FILE} /home/deployments/ccsdk-app.war + +# Run docker-dashboard-installation.sh +RUN dos2unix /tmp/create_table.sql +RUN dos2unix /tmp/docker-dashboard-installation.sh +RUN chmod +x /tmp/create_table.sql +RUN chmod +x /tmp/docker-dashboard-installation.sh + +CMD ["/tmp/docker-dashboard-installation.sh"]
\ No newline at end of file |