simulator: use ubuntu 22.04 in Dockerfile (#6978)

This commit is contained in:
Wei Zhou 2023-01-12 12:54:36 +01:00 committed by GitHub
parent 08d54da938
commit 4418574478
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@
#
# CloudStack-simulator build
FROM ubuntu:20.04
FROM ubuntu:22.04
MAINTAINER "Apache CloudStack" <dev@cloudstack.apache.org>
LABEL Vendor="Apache.org" License="ApacheV2" Version="4.18.0.0-SNAPSHOT"
@ -45,7 +45,7 @@ RUN apt-get -y update && apt-get install -y \
RUN apt-get install -qqy mysql-server && \
apt-get clean all && \
mkdir /var/run/mysqld; \
mkdir -p /var/run/mysqld; \
chown mysql /var/run/mysqld
RUN echo '''sql_mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"''' >> /etc/mysql/mysql.conf.d/mysqld.cnf
@ -67,7 +67,7 @@ RUN find /var/lib/mysql -type f -exec touch {} \; && \
ln -s /usr/bin/gcc-10 /usr/bin/x86_64-linux-gnu-gcc; \
pip3 install $MARVIN_FILE
RUN curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -; \
RUN curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -; \
apt-get install -y nodejs; \
cd ui && npm rebuild node-sass && npm install