Sbra 357 propose dockerfile#25
Conversation
|
Coverage report for combustion/gnns/ use-case
Minimum allowed coverage is Generated by 🐒 cobertura-action against 5375c11 |
rdruilhe
left a comment
There was a problem hiding this comment.
All the Dockerfiles seems to be lore or less the same. Why don't you create a single dockerfile with the use case as arguments. It will avoid maintaining multiple files that are almost identical.
rdruilhe
left a comment
There was a problem hiding this comment.
All the Dockerfiles seems to be lore or less the same. Why don't you create a single dockerfile with the use case as arguments. It will avoid maintaining multiple files that are almost identical.
rdruilhe
left a comment
There was a problem hiding this comment.
Each folder is independent from the others so that there is replication of code.
| WORKDIR /home/ai4sim | ||
|
|
||
| # clone ai4sim code | ||
| RUN git clone https://github.com/AI4SIM/model-collection.git |
There was a problem hiding this comment.
Clone the full repo in the image seem a bit overkill. Only the source of the use case could be embeded.
That could be done with a first temporary image used to retrive the source, and the final one will just copy the part it needs.
There was a problem hiding this comment.
The docker image built in our internal repo are good example of the method.
There was a problem hiding this comment.
The idea was to use a donwloader image (as done here) for all download/git clone/... stuffs.
Then only the part of relevant code (i.e. the use case related code) can be copied in the final image.
Please, note, it will require to remove the generic nox file at the /tools/nox path to copy/paste its content in the nox_file.py in each use-case, such that the divergence of each use-case will not break the nox sessions.
| WORKDIR /home/ai4sim | ||
|
|
||
| # clone ai4sim code | ||
| RUN git clone https://github.com/AI4SIM/model-collection.git |
There was a problem hiding this comment.
The docker image built in our internal repo are good example of the method.
rdruilhe
left a comment
There was a problem hiding this comment.
To avoid downloading the whole git repository, Lionel suggest to create a multistage Dockerfile with a first step including an image dedicated to download the files. Then, in the final image, a copy of the correct subfolders is made between the downloader and image. I agree with this way of doing stuffs.
Bumps the uv group with 2 updates in the /weather-forecast/nwp-emulation/panguweather directory: [pillow](https://github.com/python-pillow/Pillow) and [pytest](https://github.com/pytest-dev/pytest). Bumps the uv group with 2 updates in the /reactive-flows/cnf-combustion/gnns directory: [pillow](https://github.com/python-pillow/Pillow) and [pytest](https://github.com/pytest-dev/pytest). Bumps the uv group with 1 update in the /reactive-flows/cnf-combustion/unets directory: [pytest](https://github.com/pytest-dev/pytest). Bumps the uv group with 2 updates in the /weather-forecast/ecrad-3d-correction/unets directory: [pillow](https://github.com/python-pillow/Pillow) and [pytest](https://github.com/pytest-dev/pytest). Bumps the uv group with 1 update in the /weather-forecast/gravity-wave-drag/cnns directory: [pytest](https://github.com/pytest-dev/pytest). Updates `pillow` from 12.1.1 to 12.2.0 - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](python-pillow/Pillow@12.1.1...12.2.0) Updates `pytest` from 9.0.2 to 9.0.3 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@9.0.2...9.0.3) Updates `pillow` from 12.1.1 to 12.2.0 - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](python-pillow/Pillow@12.1.1...12.2.0) Updates `pytest` from 9.0.2 to 9.0.3 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@9.0.2...9.0.3) Updates `pytest` from 9.0.2 to 9.0.3 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@9.0.2...9.0.3) Updates `pillow` from 12.1.1 to 12.2.0 - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](python-pillow/Pillow@12.1.1...12.2.0) Updates `pytest` from 9.0.2 to 9.0.3 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@9.0.2...9.0.3) Updates `pytest` from 9.0.2 to 9.0.3 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@9.0.2...9.0.3) --- updated-dependencies: - dependency-name: pillow dependency-version: 12.2.0 dependency-type: indirect dependency-group: uv - dependency-name: pytest dependency-version: 9.0.3 dependency-type: indirect dependency-group: uv - dependency-name: pillow dependency-version: 12.2.0 dependency-type: indirect dependency-group: uv - dependency-name: pytest dependency-version: 9.0.3 dependency-type: indirect dependency-group: uv - dependency-name: pytest dependency-version: 9.0.3 dependency-type: indirect dependency-group: uv - dependency-name: pillow dependency-version: 12.2.0 dependency-type: indirect dependency-group: uv - dependency-name: pytest dependency-version: 9.0.3 dependency-type: indirect dependency-group: uv - dependency-name: pytest dependency-version: 9.0.3 dependency-type: indirect dependency-group: uv ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Create a docker file corresponding to the ai4sim env