|
[Sponsors] |
October 26, 2022, 06:51 |
Dockerfile for OpenFOAM
|
#1 |
New Member
Marius
Join Date: Aug 2020
Location: Germany
Posts: 11
Rep Power: 6 |
Hello,
does anyone know, whether the Dockerfiles used for building the images offered on the openfoam.org download page are publicly available? Where would I find these? Thanks in advance |
|
November 8, 2022, 10:03 |
|
#2 |
New Member
Umut Kaya
Join Date: Aug 2020
Posts: 5
Rep Power: 6 |
Hi Muerio,
In the installation instructions in step 4, it asks you to download and run this script: Code:
http://dl.openfoam.org/docker/openfoam10-linux I am not sure if the text versions of the openfoam releases are stored elsewhere. |
|
November 9, 2022, 03:01 |
|
#3 |
New Member
Marius
Join Date: Aug 2020
Location: Germany
Posts: 11
Rep Power: 6 |
Hi ukaya,
thank you for your reply. I already looked at the details for the individual tags. Unfortunately you can't get all the information you need from it. Especially the files copied into the images. I really hoped to find a repository of the Dockerfile somewhere so I could fork the entire setup and use it to build the image on a more frequent basis. |
|
November 15, 2022, 11:08 |
|
#4 |
New Member
Umut Kaya
Join Date: Aug 2020
Posts: 5
Rep Power: 6 |
Hi Muerio,
You are right. Nevertheless, more or less the only critical step is "apt-get install ..." I have come across these dockerfiles: https://github.com/PawseySC/pawsey-containers, which I use for building docker images for debugging openfoam. You might find them useful. Cheers |
|
December 8, 2022, 11:15 |
|
#5 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
The www.openfoam.com docker files are publicly available, and their use for making your own images is actively encouraged. https://develop.openfoam.com/packaging/containers contains templates for a variety of distributions and different compositions of openfoam. The nss-wrapper solution corresponds to the openfoam-docker start script, but there are also some chroot versions that can be useful while building content. EDIT: just added some preliminary definition files for apptainer/singularity (doesn't need nss-wrapper at all). Last edited by olesen; December 13, 2022 at 14:33. |
||
March 14, 2023, 00:46 |
|
#6 |
New Member
Alexis Espinosa
Join Date: Aug 2009
Location: Australia
Posts: 20
Rep Power: 17 |
Thanks a lot for that.
Anyone knows about a repository with the Dockerfiles for the OpenFOAM.org flavour? (Although after having a look to those for ESI flavour, the recipes are indeed not particularly useful for my purposes, as they are simple installations using apt-get install rather than an installation from source. I guess Dockerfiles from the "Foundation" flavour are going to be the same, simple use of apt-get install within an Ubuntu container.) |
|
March 15, 2023, 10:43 |
|
#7 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
If you dig deeper on https://develop.openfoam.com/packaging/containers you will notice there are actually some additional files there too. The https://develop.openfoam.com/packagi...ntu.Dockerfile (for example) sets up a container for building OpenFOAM. You can then either use/reuse a deb file for building, following the packages debian rules, or else simply do a regular OpenFOAM build (ie, with wmake) after using foamConfigurePaths to select system components for scotch, mpi, etc. An alternative approach is noted in the wiki information: https://develop.openfoam.com/packagi...s/-/wikis/home This describes using a rocky image for building the binary content and then re-deploying that content for a UBI (RedHat binary image). Not sure what other combinations you'd want. /mark |
||
|
|