diff options
author | 2018-08-07 14:15:05 +0300 | |
---|---|---|
committer | 2018-08-07 14:15:05 +0300 | |
commit | b9708a7c3cfaf5767992a2b15180e7b85c459242 (patch) | |
tree | 076e19ea52232232e9060a9d7e074947a4a49508 /Dockerfile | |
parent | cc32bd38d72e5c1c92048657083952d3e45c1819 (diff) |
adding the dcae dt code
Adding DCAE-dt code
Change-Id: Id6b779db9d24e10825fb97ad5fd46f41e65e6738
Issue-ID: SDC-1614
Signed-off-by: Eran (ev672n), Vosk <ev672n@att.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9c2fe6a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM dockercentral.it.att.com:5100/com.att.sdc/base_sdc-jetty:1.2.0-SNAPSHOT-latest + +COPY docker/chef-solo /var/opt/dcae-dt/chef-solo/ + +COPY docker/startup.sh /var/opt/dcae-dt/ + +ADD target/dcae-dt.war ${JETTY_BASE}/webapps/ + +USER root + +RUN mkdir -p /opt/logs/dcae-dt + +COPY docker/set_user.sh /tmp/set_user.sh + +RUN sh -x /tmp/set_user.sh && rm -f /tmp/set_user.sh + +RUN chown -R jetty:jetty ${JETTY_BASE}/webapps /var/opt/dcae-dt /opt/logs /var/lib/jetty + +RUN chmod 770 /var/opt/dcae-dt/startup.sh + +EXPOSE 8186 9446 + +USER jetty + +ENTRYPOINT [ "/var/opt/dcae-dt/startup.sh" ] + |