mirror of
https://github.com/apache/cloudstack
synced 2026-08-02 05:26:35 +00:00
tools/docker: Build docker image cloudstack-simulator (#13597)
* tools: Build docker image from ubuntu 24.04 * docker: run UI with NODE_OPTIONS=--openssl-legacy-provider * docker: add MAVEN_OPTS
This commit is contained in:
parent
332800480d
commit
0e43c6a818
@ -17,7 +17,7 @@
|
||||
#
|
||||
# CloudStack-simulator build
|
||||
|
||||
FROM ubuntu:22.04
|
||||
FROM ubuntu:24.04
|
||||
|
||||
LABEL Vendor="Apache.org" License="ApacheV2" Version="4.23.0.0-SNAPSHOT" Author="Apache CloudStack <dev@cloudstack.apache.org>"
|
||||
|
||||
@ -34,7 +34,8 @@ RUN apt-get -y update && apt-get install -y \
|
||||
ipmitool \
|
||||
iproute2 \
|
||||
maven \
|
||||
openjdk-11-jdk \
|
||||
openjdk-17-jre-headless \
|
||||
openjdk-17-jdk \
|
||||
python3-dev \
|
||||
python-is-python3 \
|
||||
python3-setuptools \
|
||||
@ -61,12 +62,10 @@ RUN find /var/lib/mysql -type f -exec touch {} \; && \
|
||||
mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_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"`; \
|
||||
rm -rf /usr/bin/x86_64-linux-gnu-gcc && \
|
||||
ln -s /usr/bin/gcc-10 /usr/bin/x86_64-linux-gnu-gcc; \
|
||||
pip3 install $MARVIN_FILE
|
||||
MARVIN_FILE=`find /root/tools/marvin/dist/ -name "[mM]arvin*.tar.gz"`; \
|
||||
pip3 install $MARVIN_FILE --break-system-packages
|
||||
|
||||
RUN curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -; \
|
||||
RUN curl -sL https://deb.nodesource.com/setup_24.x | sudo -E bash -; \
|
||||
apt-get install -y nodejs; \
|
||||
cd ui && npm rebuild node-sass && npm install
|
||||
|
||||
|
||||
@ -8,6 +8,7 @@ autorestart=true
|
||||
user=root
|
||||
|
||||
[program:cloudstack]
|
||||
environment=MAVEN_OPTS="--add-opens=java.base/java.lang=ALL-UNNAMED --add-exports=java.base/sun.security.x509=ALL-UNNAMED"
|
||||
command=/bin/bash -c "mvn -pl client jetty:run -Dsimulator -Dorg.eclipse.jetty.annotations.maxWait=120"
|
||||
directory=/root
|
||||
stdout_logfile=/dev/stdout
|
||||
@ -16,6 +17,7 @@ redirect_stderr=true
|
||||
user=root
|
||||
|
||||
[program:cloudstack-ui]
|
||||
environment=NODE_OPTIONS="--openssl-legacy-provider"
|
||||
command=/bin/bash -c "npm run serve"
|
||||
directory=/root/ui
|
||||
stdout_logfile=/dev/stdout
|
||||
|
||||
Loading…
Reference in New Issue
Block a user