Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/docker-cloudstack-simulator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ concurrency:
jobs:
build:
if: github.repository == 'apache/cloudstack'
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Login to Docker Registry
uses: docker/login-action@v2
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKERHUB_USER }}
Expand All @@ -47,7 +47,9 @@ jobs:
- name: Set Docker repository name
run: echo "DOCKER_REPOSITORY=apache" >> $GITHUB_ENV

- uses: actions/checkout@v5
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false

- name: Set ACS version
run: echo "ACS_VERSION=$(grep '<version>' pom.xml | head -2 | tail -1 | cut -d'>' -f2 |cut -d'<' -f1)" >> $GITHUB_ENV
Expand Down
13 changes: 6 additions & 7 deletions tools/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#
# CloudStack-simulator build

FROM ubuntu:22.04
FROM ubuntu:24.04

LABEL Vendor="Apache.org" License="ApacheV2" Version="4.22.1.0" Author="Apache CloudStack <dev@cloudstack.apache.org>"

Expand All @@ -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 \
Expand All @@ -61,12 +62,10 @@ RUN find /var/lib/mysql -type f -exec touch {} \; && \
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"`; \
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

Expand Down
2 changes: 2 additions & 0 deletions tools/docker/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ 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
stdout_logfile_maxbytes=0
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
Expand Down
2 changes: 1 addition & 1 deletion tools/marvin/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"ipmisim >= 0.7",
"pytz",
"retries",
"PyCrypt",
"pycryptodome",
"kubernetes",
"urllib3",
"setuptools >= 40.3.0"
Expand Down
Loading