VANTAGE-Reactions coupling docker image for testing#28
Conversation
oparry-ukaea
left a comment
There was a problem hiding this comment.
Thanks Michael; looks pretty much there - replacing git clone with a COPY is the main change needed, everything else is minor.
|
|
||
| env: | ||
| REGISTRY: ghcr.io | ||
| IMAGE_NAME: UKAEA-Edge-Code/hermes-3 |
There was a problem hiding this comment.
Discussed offline - something like UKAEA-Edge-Code/hermes-3_deps would be better if possible.
…Coupling/docker-image
…ey were installed.
…ctions-Coupling/docker-image-shorten-tests
… in docker image.
…n spack-installed tests.
…g/docker-image-shorten-tests Shorten tests, following boutproject#533. Use target=x86_64_v3 in spack built to try to avoid inconsistency between runner used to build the image and the runner used for the tests.
mikekryjak
left a comment
There was a problem hiding this comment.
Looks good to me apart from that I'd like to make sure that 2D-production and 2D-recycling are exactly as per the PR (boutproject#533).
I haven't tried Docker myself to get this working locally, but since it's working in CI, I'd prefer to do this only when I have to (which I inevitably will at some point).
| #!/usr/bin/env python3 | ||
| print("step -1") | ||
| from time import time | ||
| t0 = time() |
There was a problem hiding this comment.
Can the tests be made consistent with master? I added some prints about time taken to do different steps there. Just makes it a bit easier to merge down the line:
boutproject#533.
There was a problem hiding this comment.
The easiest way to do this would be to merge boutproject#533 to master in boutproject, so I can merge that to our default and sort out the comparison here. Are you willing to merge boutproject#533 to master on the main repo?
There was a problem hiding this comment.
boutproject#533 is now merged into master
91eabc4 to
e11ead9
Compare
…Coupling/docker-image
c4d0186
into
VANTAGE-Reactions-Coupling/dev
Building on the spack installation by @oparry-ukaea and the docker image by Tom Body (see PR 331, PR 334, PR 335, PR 338, PR 339, PR 342, PR 343, PR 352, PR 521), in this PR we introduce a docker image for the UKAEA-Edge-Code organisation which we can use for Actions CI testing of VANTAGE-Reactions features in hermes-3.
Included is
VANTAGE-docker/hermes-3-VANTAGE-dependencies.dockerfilethat specifies an image with slowly changingspackdependencies installed. NESO-Particles, VANTAGE-Reactions, BOUT++ and Hermes-3 are uninstalled from the image as these packages are likely to change fastest with VANTAGE development..github/workflows/build_docker_VANTAGE_dependencies_image.yml. So far, I have triggered this workflow on push, by making a new commit with the following code uncommentedbranch,edgeand version tags. The default branch gets thelatestandshatags. The resulting packages are visible here . Our docker workflow here does not conflict with the one created by Tom Body as we are storing the image in a different organisation onghcr..github/workflows/docker_VANTAGE_tests.yml. This test clones the repo, including submodules with therecursiveflag, then starts a container from the:edgetagged image. The top level packages are installed in the container and thectesttests are executed. The first run of this action took < 25 mins.