fix install mysql issue 63/15263/1
authorLuji7 <lu.ji3@zte.com.cn>
Tue, 26 Sep 2017 01:15:01 +0000 (09:15 +0800)
committerLuji7 <lu.ji3@zte.com.cn>
Tue, 26 Sep 2017 01:15:10 +0000 (09:15 +0800)
Change-Id: I20e5695cbeff41f0388da64db4aebeac9593da5f
Issue-Id: USECASEUI-36
Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
standalone/src/main/assembly/Dockerfile

index 9842b01..4f39f41 100644 (file)
@@ -5,8 +5,14 @@ MAINTAINER "Lu Ji" <lu.ji3@zte.com.cn>
 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 && \