diff options
author | 2017-09-27 09:23:47 +0000 | |
---|---|---|
committer | 2017-09-27 09:23:47 +0000 | |
commit | 16e4b6bdec169b97015752958a94d3ed0ad8c02a (patch) | |
tree | 7c736d228f9a870be4fa80d29c8a24385fb992be /nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile | |
parent | 046d1548036451e1f5dc41e35efab60298c74979 (diff) | |
parent | 37ff0358f2542bd0d4a52d604be42a0ebc4d5c3b (diff) |
Merge "Add docker file"
Diffstat (limited to 'nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile')
-rwxr-xr-x | nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile b/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile new file mode 100755 index 00000000..5534a26d --- /dev/null +++ b/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile @@ -0,0 +1,59 @@ +# +# This file was auto-generated by gen-all-dockerfiles.sh; do not modify manually. +# +# nfvo-driver-vnfm-huawei/target/Dockerfile +# + +# 10-basebuild.txt + +FROM centos:7 + +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 update -y + +RUN yum install -y wget unzip socat java-1.8.0-openjdk-headless +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 + +WORKDIR /service + +# 20-mysq.txt + +# Set up mysql +RUN wget -q http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm && rpm -ivh mysql-community-release-el7-5.noarch.rpm && rm -f mysql-community-release-el7-5.noarch.rpm +RUN yum -y update +RUN yum -y install -y mysql-server +RUN mysql_install_db --user=mysql --datadir=/var/lib/mysql +COPY init-mysql.sh . + +# 30-tomcat.txt - AUTOGENERATED, DO NOT MODIFY MANUALLY +# Set up tomcat +RUN wget -q http://mirrors.ocf.berkeley.edu/apache/tomcat/tomcat-8/v8.5.20/bin/apache-tomcat-8.5.20.tar.gz && tar --strip-components=1 -xf apache-tomcat-8.5.20.tar.gz && rm -f apache-tomcat-8.5.20.tar.gz && rm -rf webapps && mkdir -p webapps/ROOT +RUN echo 'export CATALINA_OPTS="$CATALINA_OPTS -Xms64m -Xmx256m -XX:MaxPermSize=64m"' > /service/bin/setenv.sh +ENV CATALINA_HOME /service + +# 50-microservice.txt - AUTOGENERATED, DO NOT MODIFY MANUALLY + +# Set up microservice +# https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.vfc.nfvo.driver.vnfm.svnfm&a=vfcadaptor-deployment&v=LATEST&e=zip +RUN wget -q -O nfvo-driver-vnfm-nokia-1.0.0-SNAPSHOT.zip "https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.vfc.nfvo.driver.vnfm.svnfm&a=vfcadaptor-deployment&v=LATEST&e=zip" && unzip -q -o -B nfvo-driver-vnfm-nokia-1.0.0-SNAPSHOT.zip && rm -f nfvo-driver-vnfm-nokia-1.0.0-SNAPSHOT.zip +# Set permissions +RUN find . -type d -exec chmod o-w {} \; +RUN find . -name "*.sh" -exec chmod +x {} \; +EXPOSE 8485 +RUN echo ONAP nfvo-driver-vnfm-nokia 1.0.0-SNAPSHOT "https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.vfc.nfvo.driver.vnfm.svnfm&a=vfcadaptor-deployment&v=LATEST&e=zip" > ONAP_VERSION + + +# 90-entrypoint.txt + +RUN yum clean all + +COPY instance-config.sh . +COPY instance-init.sh . +COPY instance-run.sh . +COPY instance-workaround.sh . +COPY docker-entrypoint.sh . +ENTRYPOINT /service/docker-entrypoint.sh + +COPY LICENSE ./ONAP_LICENSE |