aboutsummaryrefslogtreecommitdiffstats
path: root/standalone
diff options
context:
space:
mode:
authorLuji7 <lu.ji3@zte.com.cn>2017-09-26 09:15:01 +0800
committerLuji7 <lu.ji3@zte.com.cn>2017-09-26 09:15:10 +0800
commit2998c821e00e8bf1db8bbbef04c798fe346563c8 (patch)
tree6edc0bedb5518c3a799f6a74b9e73465130ee854 /standalone
parent0d56632c6b134956988fdc5d189b289746925a27 (diff)
fix install mysql issue
Change-Id: I20e5695cbeff41f0388da64db4aebeac9593da5f Issue-Id: USECASEUI-36 Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
Diffstat (limited to 'standalone')
-rw-r--r--standalone/src/main/assembly/Dockerfile10
1 files changed, 8 insertions, 2 deletions
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" <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 && \