1717#
1818# CloudStack-simulator build
1919
20- FROM ubuntu:18 .04
20+ FROM ubuntu:20 .04
2121
2222MAINTAINER "Apache CloudStack" <dev@cloudstack.apache.org>
2323LABEL Vendor="Apache.org" License="ApacheV2" Version="4.16.0.0-SNAPSHOT"
@@ -28,24 +28,27 @@ RUN apt-get -y update && apt-get install -y \
2828 genisoimage \
2929 libffi-dev \
3030 libssl-dev \
31+ curl \
32+ gcc-10 \
3133 git \
3234 sudo \
3335 ipmitool \
3436 iproute2 \
3537 maven \
3638 openjdk-11-jdk \
37- python-dev \
38- python-setuptools \
39- python-pip \
40- python-mysql.connector \
39+ python3-dev \
40+ python-is-python3 \
41+ python3-setuptools \
42+ python3-pip \
43+ python3-mysql.connector \
4144 supervisor
4245
4346RUN apt-get install -qqy mysql-server && \
4447 apt-get clean all && \
4548 mkdir /var/run/mysqld; \
4649 chown mysql /var/run/mysqld
4750
48- RUN echo '''sql_mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION"''' >> /etc/mysql/mysql.conf.d/mysqld.cnf
51+ 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
4952
5053COPY tools/docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
5154COPY . ./root
@@ -60,10 +63,16 @@ RUN find /var/lib/mysql -type f -exec touch {} \; && \
6063 mvn -Pdeveloper -pl developer -Ddeploydb; \
6164 mvn -Pdeveloper -pl developer -Ddeploydb-simulator; \
6265 MARVIN_FILE=`find /root/tools/marvin/dist/ -name "Marvin*.tar.gz" `; \
63- pip install $MARVIN_FILE
66+ rm -rf /usr/bin/x86_64-linux-gnu-gcc && \
67+ ln -s /usr/bin/gcc-10 /usr/bin/x86_64-linux-gnu-gcc; \
68+ pip3 install $MARVIN_FILE
69+
70+ RUN curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -; \
71+ apt-get install -y nodejs; \
72+ cd ui && npm rebuild node-sass && npm install
6473
6574VOLUME /var/lib/mysql
6675
67- EXPOSE 8080 8096
76+ EXPOSE 8080 8096 5050
6877
6978CMD ["/usr/bin/supervisord" ]
0 commit comments