Skip to content

Dockerfile Maintain RMG-Py 3.7#792

Merged
alongd merged 5 commits intomainfrom
docker_rmg_3_7
Jul 28, 2025
Merged

Dockerfile Maintain RMG-Py 3.7#792
alongd merged 5 commits intomainfrom
docker_rmg_3_7

Conversation

@calvinp0
Copy link
Copy Markdown
Member

Dockerfile updated to be multistage build in order to reduce size. Also, specified the checkout of RMG-Py in order to keep it at 3.7.
Updated entrywrapper/aliases and the environment.yml

This comment was marked as outdated.

@calvinp0 calvinp0 requested a review from Copilot July 15, 2025 07:03

This comment was marked as outdated.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.49%. Comparing base (c9d88af) to head (35d891b).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #792   +/-   ##
=======================================
  Coverage   74.49%   74.49%           
=======================================
  Files         103      103           
  Lines       28121    28121           
  Branches     5829     5771   -58     
=======================================
+ Hits        20948    20950    +2     
+ Misses       5681     5680    -1     
+ Partials     1492     1491    -1     
Flag Coverage Δ
unittests 74.49% <ø> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 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.

@alongd
Copy link
Copy Markdown
Member

alongd commented Jul 27, 2025

Looks good. Please squash the commits that fix one another. Also one small comment by copilot

@calvinp0 calvinp0 requested a review from Copilot July 28, 2025 09:13

This comment was marked as outdated.

calvinp0 added 5 commits July 28, 2025 13:19
Migrates to a multi-stage Dockerfile to reduce image size
by separating the build environment from the runtime environment.

This approach optimizes the final image by only including
necessary components, improving efficiency and security.

Includes ARC installation by copying from a prior build stage.
Also includes adding aliases and entrypoint, and sets permissions.
Consolidates alias definitions into a dedicated script for better organization.
Replaces the previous `alias_print.sh` with a new version that is more readable and uses environment variables for paths.
Simplifies the entrypoint script to handle interactive and non-interactive modes more cleanly, including direct execution of `rmg` and `arc` commands with environment activation.
The removal of the CONTAINER_MODE check and the permission adjustment logic streamlines the startup process.
Better separate packages for readability. Tighten versions of packages. Removed Anaconda from channel list
Adds libgfortran as a dependency to ensure compatibility and prevent potential issues related to Fortran libraries when using the xtb package.
Improves caching efficiency in CI/CD workflows by updating cache keys and using specific commit SHA for RMG-Py.

This ensures that the correct version of RMG-Py is used and avoids unnecessary checkouts, optimizing build times. It also updates conda setup and caching.

Also switches to actions/checkout@v4 for improved performance.
Copy link
Copy Markdown
Member

@alongd alongd left a comment

Choose a reason for hiding this comment

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

Thanks! I hope that molecule's rebase will not be too bad...

@alongd alongd merged commit 80621b7 into main Jul 28, 2025
8 checks passed
@alongd alongd deleted the docker_rmg_3_7 branch July 28, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants