diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2017-09-13 12:55:04 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2017-09-13 12:55:04 +0800 |
commit | 8a2226e7f9f0cdd64e29ac89a2aa04d389bad8ba (patch) | |
tree | e618c6f70f691e30c0f13ffaf9cdf035041064df | |
parent | adce4a8df7638407d7c5ea4ac988900911c4696c (diff) |
Change ems-driver docker system to centos7
Change-Id: If62574562bf68e77ef8f289bf2106a74a8dcb436
Issue-Id: VFC-350
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rwxr-xr-x | ems/microservice-standalone/src/main/assembly/docker/Dockerfile | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/ems/microservice-standalone/src/main/assembly/docker/Dockerfile b/ems/microservice-standalone/src/main/assembly/docker/Dockerfile index 60e6321..e321cab 100755 --- a/ems/microservice-standalone/src/main/assembly/docker/Dockerfile +++ b/ems/microservice-standalone/src/main/assembly/docker/Dockerfile @@ -1,19 +1,12 @@ -FROM ubuntu:14.04 +FROM centos:7 -ARG HTTP_PROXY=${HTTP_PROXY} -ARG HTTPS_PROXY=${HTTPS_PROXY} +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 -ENV http_proxy $HTTP_PROXY -ENV https_proxy $HTTPS_PROXY - - -RUN apt-get update && apt-get install -y software-properties-common -RUN apt-get install -y wget && \ - apt-get install -y unzip && \ - apt-get install -y curl && \ - apt-get install -y build-essential && \ - apt-get install -y libssl-dev -RUN sudo -E add-apt-repository ppa:openjdk-r/ppa && apt-get update && apt-get install -y openjdk-8-jdk && apt-get install -y git curl && apt-get install -y pandoc +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 ADD . /service WORKDIR /service @@ -24,7 +17,6 @@ RUN wget -q -O emsdiver-standalone.zip 'https://nexus.onap.org/service/local/art unzip emsdiver-standalone.zip -d emsdriver && \ rm -rf emsdiver-standalone.zip - EXPOSE 8206 WORKDIR /service |