summaryrefslogtreecommitdiffstats
path: root/nokiav2/deployment/src/main
diff options
context:
space:
mode:
authorDenes Nemeth <denes.nemeth@nokia.com>2018-03-23 08:43:06 +0100
committerDenes Nemeth <denes.nemeth@nokia.com>2018-03-23 08:50:40 +0100
commit1e7ee1f6bd1d4753d99eaee5d78b1e28956f0709 (patch)
tree3c85858305dcd0ad15c5a48416f6eb06c25093b1 /nokiav2/deployment/src/main
parentc768c4af82b40cf1825604a4df36b68f189c194a (diff)
Fix snapshot dependency and security
Change-Id: Ief922144c5c9cd46a147fb697279d947f667889e Signed-off-by: Denes Nemeth <denes.nemeth@nokia.com> Issue-ID: VFC-728
Diffstat (limited to 'nokiav2/deployment/src/main')
-rwxr-xr-xnokiav2/deployment/src/main/resources/Dockerfile11
1 files changed, 6 insertions, 5 deletions
diff --git a/nokiav2/deployment/src/main/resources/Dockerfile b/nokiav2/deployment/src/main/resources/Dockerfile
index 2ad7209c..eb13714a 100755
--- a/nokiav2/deployment/src/main/resources/Dockerfile
+++ b/nokiav2/deployment/src/main/resources/Dockerfile
@@ -6,12 +6,13 @@ COPY LICENSE ./ONAP_LICENSE
COPY application.properties .
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 wget
-# Debugging tools withing the container
-RUN yum -y install mc vim tcpdump net-tools nc strace telnet unzip xmlstarlet
+RUN yum -y update && \
+ yum -y install java-1.8.0-openjdk-headless wget && \
+ yum -y install mc vim tcpdump net-tools nc strace telnet unzip xmlstarlet && \
+ yum clean all
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"
+#Can be used for local builds
+#COPY driver.war .
ENV JAVA_HOME /usr/lib/jvm/jre
-RUN yum clean all
EXPOSE 8089
ENTRYPOINT /service/docker-entrypoint.sh