summaryrefslogtreecommitdiffstats
path: root/nokiav2/deployment/src/main/resources/Dockerfile
diff options
context:
space:
mode:
authorDenes Nemeth <denes.nemeth@nokia.com>2018-03-09 11:38:58 +0100
committerDenes Nemeth <denes.nemeth@nokia.com>2018-03-09 11:57:15 +0100
commitbf64f98a8d811ca59cb5d638b30971b1145411d2 (patch)
treefb8e66e29d7caa9cbfe1592625e5bb782c535242 /nokiav2/deployment/src/main/resources/Dockerfile
parente24a1b81a1e76d052be6d57995f18a1b7b7221ec (diff)
Remove maven during building docker images
Change-Id: Ic26230d8a5479704aa80f1b35e5cd36d556e7054 Signed-off-by: Denes Nemeth <denes.nemeth@nokia.com> Issue-ID: VFC-728
Diffstat (limited to 'nokiav2/deployment/src/main/resources/Dockerfile')
-rwxr-xr-xnokiav2/deployment/src/main/resources/Dockerfile9
1 files changed, 4 insertions, 5 deletions
diff --git a/nokiav2/deployment/src/main/resources/Dockerfile b/nokiav2/deployment/src/main/resources/Dockerfile
index e42f7b94..2ad7209c 100755
--- a/nokiav2/deployment/src/main/resources/Dockerfile
+++ b/nokiav2/deployment/src/main/resources/Dockerfile
@@ -1,17 +1,16 @@
FROM centos:7
WORKDIR /service
+ARG VERSION
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
+RUN yum -y install java-1.8.0-openjdk-headless wget
# 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
+RUN yum -y install mc vim tcpdump net-tools nc strace telnet unzip xmlstarlet
+RUN wget -q -O driver.war "https://nexus.onap.org/service/local/artifact/maven/redirect?r=staging&g=org.onap.vfc.nfvo.driver.vnfm.svnfm.nokiav2&a=driverwar&v=${VERSION}&e=war"
ENV JAVA_HOME /usr/lib/jvm/jre
RUN yum clean all
EXPOSE 8089