summaryrefslogtreecommitdiffstats
path: root/nokiav2/deployment/Dockerfile.verify
diff options
context:
space:
mode:
authorYan Yang <yangyanyj@chinamobile.com>2018-07-26 01:11:57 +0000
committerGerrit Code Review <gerrit@onap.org>2018-07-26 01:11:57 +0000
commit0ba27e81b04128fe3c5c2a476eda8484f32ccfd7 (patch)
tree99ced00b5ad2a17f6b79333e723c13d6a9bef807 /nokiav2/deployment/Dockerfile.verify
parent3cc1fad281c125803f4fb7b4284e1437a8ce1663 (diff)
parent3e8bea1fa3861581b3caa81628da52da538b05f3 (diff)
Merge "Add SO APIs to Nokia VNFM adapter"
Diffstat (limited to 'nokiav2/deployment/Dockerfile.verify')
-rwxr-xr-xnokiav2/deployment/Dockerfile.verify20
1 files changed, 20 insertions, 0 deletions
diff --git a/nokiav2/deployment/Dockerfile.verify b/nokiav2/deployment/Dockerfile.verify
new file mode 100755
index 00000000..107327d2
--- /dev/null
+++ b/nokiav2/deployment/Dockerfile.verify
@@ -0,0 +1,20 @@
+FROM centos:7
+WORKDIR /service
+ARG REPO
+ARG MODE
+COPY src/main/resources/docker-entrypoint.sh .
+COPY src/main/resources/LICENSE ./ONAP_LICENSE
+COPY src/main/resources/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 && \
+ yum -y install java-1.8.0-openjdk-headless wget && \
+ yum -y install mc vim tcpdump net-tools nc strace telnet unzip && \
+ yum clean all
+COPY pom.xml pom.xml
+RUN VERSION=`echo -e "setns x=http://maven.apache.org/POM/4.0.0 \n xpath /x:project/x:version/text() "| xmllint --shell pom.xml | grep content | sed 's/.*content=//'| sed 's/-SNAPSHOT//'` ; echo "Version $VERSION mode=$MODE"; wget -q -O driver.war "https://nexus.onap.org/service/local/artifact/maven/redirect?r=${REPO}&g=org.onap.vfc.nfvo.driver.vnfm.svnfm.nokiav2&a=driverwar&v=${VERSION}${MODE}&e=war"
+#Can be used for local builds instead of the previous line
+#COPY driver.war .
+ENV JAVA_HOME /usr/lib/jvm/jre
+EXPOSE 8089
+ENTRYPOINT /service/docker-entrypoint.sh