Skip to content

tools: Build docker image cloudstack-simulator#13597

Open
weizhouapache wants to merge 2 commits into
mainfrom
docker-image-build
Open

tools: Build docker image cloudstack-simulator#13597
weizhouapache wants to merge 2 commits into
mainfrom
docker-image-build

Conversation

@weizhouapache

Copy link
Copy Markdown
Member

Description

This PR fixes docker image build errors

  • use ubuntu 24.04 instead of ubunutu 22.04
  • install openjdk 17 instead 11
  • install nodejs 24 instead 14
  • support both marvin*.tar.gz and Marvin*.tar.gz
  • remove unnecessary steps

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

Copilot AI review requested due to automatic review settings July 13, 2026 10:05
@weizhouapache weizhouapache added this to the 4.23.0 milestone Jul 13, 2026
@weizhouapache weizhouapache changed the title tools: Build docker image tools: Build docker image cloudstack-simulator Jul 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the CloudStack simulator Docker image build to modernize the base OS/toolchain and address build breakages when building the image in CI.

Changes:

  • Upgrade base image to Ubuntu 24.04 and Java to OpenJDK 17.
  • Upgrade Node.js installation to Node 24 (NodeSource setup script).
  • Make Marvin tarball detection case-insensitive and simplify related build steps.
  • Trigger the Docker image workflow on an additional branch.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
tools/docker/Dockerfile Updates OS/toolchain versions and tweaks Marvin + Node install steps for the simulator image build.
.github/workflows/docker-cloudstack-simulator.yml Adds docker-image-build as an additional push branch trigger for the image build workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tools/docker/Dockerfile
Comment on lines +65 to +66
MARVIN_FILE=`find /root/tools/marvin/dist/ -name "[mM]arvin*.tar.gz"`; \
pip3 install $MARVIN_FILE --break-system-packages
Comment thread tools/docker/Dockerfile
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 -; \
Comment thread tools/docker/Dockerfile
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
@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 3.41%. Comparing base (24fd90a) to head (cf73919).

Additional details and impacted files
@@          Coverage Diff           @@
##            main   #13597   +/-   ##
======================================
  Coverage   3.41%    3.41%           
======================================
  Files        486      486           
  Lines      41774    41774           
  Branches    7899     7899           
======================================
  Hits        1428     1428           
  Misses     40148    40148           
  Partials     198      198           
Flag Coverage Δ
uitests 3.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI review requested due to automatic review settings July 13, 2026 10:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

Comment on lines +19 to 20
command=/bin/bash -c "NODE_OPTIONS=--openssl-legacy-provider npm run serve"
directory=/root/ui
Comment thread tools/docker/Dockerfile
Comment on lines +37 to +38
openjdk-17-jre-headless \
openjdk-17-jdk \
Comment thread tools/docker/Dockerfile
Comment on lines +68 to 70
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
Comment on lines 20 to 27
on:
push:
branches:
- main
- docker-image-build
tags:
- 4.*
- 5.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants