summaryrefslogtreecommitdiffstats
path: root/nokiav2/deployment/src/main/resources/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'nokiav2/deployment/src/main/resources/Dockerfile')
-rwxr-xr-xnokiav2/deployment/src/main/resources/Dockerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/nokiav2/deployment/src/main/resources/Dockerfile b/nokiav2/deployment/src/main/resources/Dockerfile
new file mode 100755
index 00000000..e42f7b94
--- /dev/null
+++ b/nokiav2/deployment/src/main/resources/Dockerfile
@@ -0,0 +1,18 @@
+FROM centos:7
+WORKDIR /service
+COPY docker-entrypoint.sh .
+COPY LICENSE ./ONAP_LICENSE
+COPY application.properties .
+COPY driver.war .
+
+RUN sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf
+RUN sed -i 's|#baseurl=http://mirror.centos.org/centos|baseurl=http://mirrors.ocf.berkeley.edu/centos|' /etc/yum.repos.d/*.repo
+RUN yum -y update
+RUN yum -y install java-1.8.0-openjdk-headless
+# Debugging tools withing the container
+RUN yum -y install mc vim tcpdump wget net-tools nc strace telnet unzip
+#RUN sed -i 's|#networkaddress.cache.ttl=-1|networkaddress.cache.ttl=10|' /usr/lib/jvm/jre/lib/security/java.security
+ENV JAVA_HOME /usr/lib/jvm/jre
+RUN yum clean all
+EXPOSE 8089
+ENTRYPOINT /service/docker-entrypoint.sh