From: Luji7 Date: Tue, 26 Sep 2017 01:15:01 +0000 (+0800) Subject: fix install mysql issue X-Git-Tag: v1.1.0~51 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=2998c821e00e8bf1db8bbbef04c798fe346563c8;p=usecase-ui%2Fserver.git fix install mysql issue Change-Id: I20e5695cbeff41f0388da64db4aebeac9593da5f Issue-Id: USECASEUI-36 Signed-off-by: Luji7 --- diff --git a/standalone/src/main/assembly/Dockerfile b/standalone/src/main/assembly/Dockerfile index 9842b019..4f39f410 100644 --- a/standalone/src/main/assembly/Dockerfile +++ b/standalone/src/main/assembly/Dockerfile @@ -5,8 +5,14 @@ MAINTAINER "Lu Ji" EXPOSE 8082 EXPOSE 3306 -#install openjdk-1.8 -#RUN sed -i 's#http://archive.ubuntu.com#http://mirrors.163.com#g' /etc/apt/sources.list +ARG HTTP_PROXY=${HTTP_PROXY} +ARG HTTPS_PROXY=${HTTPS_PROXY} + +ENV http_proxy $HTTP_PROXY +ENV https_proxy $HTTPS_PROXY + +RUN echo "mysql-server mysql-server/root_password password root" | debconf-set-selections +RUN echo "mysql-server mysql-server/root_password_again password root" | debconf-set-selections RUN apt-get update && \ apt-get install -y openjdk-8-jdk && \