Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build heat conduction module into docker image #31

Conversation

hsaunders1904
Copy link
Contributor

Summary

This PR updates the Dockerfile for the CI such that MOOSE's heat conduction module is built within it. This saves us building it in the CI every time.

We now deploy the docker image to, and pull from, UKAEA's Quay account (using a robot account's credentials), rather than my personal one.

The new docker image was built and pushed in this action using revision dcc37f4.

There's a minor refactor converting a FoamProblem member function to a free function in an anonymous workspace.

Related Issue

Resolves #24
Resolves #15

Checklist

  • Tests have been written for the new/changed behaviour.
  • Documentation/examples have been added/updated for the new changes.

Obviously pinning is the ideal, as each build of the image will use the
same versions of packages, however, when Ubuntu patches a package it
removes the old version. This means the build will fail as the old
version of the package is no longer available.

As the patches are only minor bug and security fixes, in our case I
think it's reasonable to unpin.
The tests now make use of MOOSE's heat conduction module. Build it into
the container to avoid building it in the CI.
This avoids us having to install them within the CI.
These packages are now installed within the CI's Docker image.
For some reason this crashes the build. I thought it was just my laptop
running out of memory, but it crashes when I build the container on
GitHub too.
@hsaunders1904 hsaunders1904 merged commit d5fe177 into main Nov 11, 2024
1 check passed
@hsaunders1904 hsaunders1904 deleted the hsaunders1904/24_build_heat_conduction_module_into_docker_image branch November 11, 2024 15:18
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.

Build heat conduction module into docker image Use UKAEA's Quay.io to host docker image
1 participant