Skip to content

tools/docker: backport some fixes from main/4.23 - #13814

Open
weizhouapache wants to merge 5 commits into
4.22from
4.22.1.0-backport-docker-fix
Open

tools/docker: backport some fixes from main/4.23 #13814
weizhouapache wants to merge 5 commits into
4.22from
4.22.1.0-backport-docker-fix

Conversation

@weizhouapache

@weizhouapache weizhouapache commented Aug 6, 2026

Copy link
Copy Markdown
Member

Description

This PR fixes #13754

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?

Comment thread .github/workflows/docker-cloudstack-simulator.yml Outdated
@weizhouapache

Copy link
Copy Markdown
Member Author

cc @DaanHoogland

@weizhouapache weizhouapache added this to the 4.22.2 milestone Aug 6, 2026
@weizhouapache weizhouapache linked an issue Aug 6, 2026 that may be closed by this pull request
@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.82%. Comparing base (348ce95) to head (8881817).
⚠️ Report is 82 commits behind head on 4.22.

Additional details and impacted files
@@             Coverage Diff              @@
##               4.22   #13814      +/-   ##
============================================
+ Coverage     17.68%   17.82%   +0.14%     
- Complexity    15793    16221     +428     
============================================
  Files          5922     5926       +4     
  Lines        533123   543182   +10059     
  Branches      65201    68835    +3634     
============================================
+ Hits          94268    96832    +2564     
- Misses       428212   435540    +7328     
- Partials      10643    10810     +167     
Flag Coverage Δ
uitests 3.60% <ø> (-0.10%) ⬇️
unittests 18.92% <ø> (+0.16%) ⬆️

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.

@weizhouapache
weizhouapache marked this pull request as ready for review August 6, 2026 11:45
@weizhouapache

Copy link
Copy Markdown
Member Author

the 4.22.1.0 docker image has been built by github action: https://github.com/apache/cloudstack/actions/runs/30618376380

@sonarqubecloud

sonarqubecloud Bot commented Aug 6, 2026

Copy link
Copy Markdown

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

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Backports Docker/simulator build fixes by updating base OS and runtime dependencies, plus aligning tooling and CI workflow configuration.

Changes:

  • Update Docker image base to Ubuntu 24.04 and move runtime to Java 17 / newer Node setup.
  • Adjust Docker supervisor environment options for Maven and Node.
  • Update Marvin Python dependency and refresh GitHub Actions runner/action pins.

Reviewed changes

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

File Description
tools/marvin/setup.py Swap crypto dependency to pycryptodome.
tools/docker/supervisord.conf Add MAVEN_OPTS and NODE_OPTIONS environment settings for supervised processes.
tools/docker/Dockerfile Bump Ubuntu base, update Java packages, adjust Marvin install and NodeSource setup.
.github/workflows/docker-cloudstack-simulator.yml Move workflow runner to ubuntu-24.04 and pin actions to SHAs / tweak checkout credentials.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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
Comment on lines +68 to 69
RUN curl -sL https://deb.nodesource.com/setup_24.x | sudo -E bash -; \
apt-get install -y nodejs; \
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 +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/marvin/setup.py
"pytz",
"retries",
"PyCrypt",
"pycryptodome",
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.

docker apache/cloudstack-simulator missing 4.22.1.0

3 participants