From 9beec486af0dccef0c08d59448e93d42bdca721b Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Fri, 12 Jun 2020 07:00:22 +0200 Subject: [PATCH] docker: upgrade to ubuntu 18.04 and fix two issues (#3955) upgrade dockerfile to use ubuntu 18.04 instead of ubuntu 16.04 because we use java 11 in 4.14. meanwhile, fix an issue due to mysql change in ubuntu 18.04, and fix NPE by installing iproute2. --- tools/docker/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index d8d63c5846c..1c2f2f7ee0a 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -17,7 +17,7 @@ # # CloudStack-simulator build -FROM ubuntu:16.04 +FROM ubuntu:18.04 MAINTAINER "Apache CloudStack" LABEL Vendor="Apache.org" License="ApacheV2" Version="4.15.0.0-SNAPSHOT" @@ -31,6 +31,7 @@ RUN apt-get -y update && apt-get install -y \ git \ sudo \ ipmitool \ + iproute2 \ maven \ openjdk-11-jdk \ python-dev \ @@ -55,6 +56,7 @@ RUN mvn -Pdeveloper -Dsimulator -DskipTests clean install RUN find /var/lib/mysql -type f -exec touch {} \; && \ (/usr/bin/mysqld_safe &) && \ sleep 5; \ + mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by ''" --connect-expired-password; \ mvn -Pdeveloper -pl developer -Ddeploydb; \ mvn -Pdeveloper -pl developer -Ddeploydb-simulator; \ MARVIN_FILE=`find /root/tools/marvin/dist/ -name "Marvin*.tar.gz"`; \