Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gerlero/docker-openfoam
Docker images of all variants of OpenFOAM
https://github.com/gerlero/docker-openfoam
amd64 arm64 docker docker-images openfoam
Last synced: 2 months ago
JSON representation
Docker images of all variants of OpenFOAM
- Host: GitHub
- URL: https://github.com/gerlero/docker-openfoam
- Owner: gerlero
- License: gpl-3.0
- Created: 2024-08-07T17:20:14.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-08T20:40:04.000Z (3 months ago)
- Last Synced: 2024-09-08T21:51:06.231Z (3 months ago)
- Topics: amd64, arm64, docker, docker-images, openfoam
- Language: Dockerfile
- Homepage:
- Size: 55.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker images of OpenFOAM
[![CI](https://github.com/gerlero/docker-openfoam/actions/workflows/ci.yml/badge.svg)](https://github.com/gerlero/docker-openfoam/actions/workflows/ci.yml)
![OpenFOAM](https://img.shields.io/badge/openfoam-.com%20|%20.org-informational)
[![Docker image](https://img.shields.io/badge/docker%20image-microfluidica%2Fopenfoam-0085a0)](https://hub.docker.com/r/microfluidica/openfoam/)
[![Docker Pulls](https://img.shields.io/docker/pulls/microfluidica/openfoam)](https://hub.docker.com/r/microfluidica/openfoam/)Docker images of both major distributions of OpenFOAM.
Mutliple versions available.`amd64` and `arm64` architectures are supported.
## Usage
### With `docker run`
Assuming you have [Docker](https://www.docker.com) installed, the following command will run the image and mount the current directory so that you can access the files in it.
```bash
docker run --rm -it -v $PWD:/root -w /root microfluidica/openfoam:tagname
```Replace `tagname` with the desired tag as listed below (or leave the tag empty to get the `latest` tag).
### With OpenFOAM's [`openfoam-docker`](https://develop.openfoam.com/Development/openfoam/-/wikis/precompiled/docker) launch script
```bash
openfoam-docker -image=microfluidica/openfoam:tagname
```### With Apptainer/Singularity
```bash
apptainer run docker://microfluidica/openfoam:tagname
```### As a base image
Use these images as a base image for your own OpenFOAM-based projects by creating a `Dockerfile` like the following:
```Dockerfile
FROM microfluidica/openfoam:tagnameCOPY . /usr/local/src/myproject
RUN /usr/local/src/myproject/Allwmake -j -prefix=group \
&& /usr/local/src/myproject/Allwclean
```## Available tags
### openfoam.com
- `latest`, `com`, `2406`
- `slim`, `com-slim`, `2406-slim`
- `2312`
- `2312-slim`
- `2306`
- `2306-slim`
- `2212`
- `2212-slim`
- `2206`
- `2206-slim`
- `2112`
- `2112-slim`
- `2106`
- `2106-slim`
- `2012` (amd64 only)
- `2012-slim` (amd64 only)
- `2006`
- `2006-slim`
- `1912` (amd64 only)
- `1912-slim` (amd64 only)### openfoam.org
- `org`, `12`
- `11`
- `10` (amd64 only)
- `9` (amd64 only)
- `8` (amd64 only)
- `7` (amd64 only)
- `6` (amd64 only)
- `5` (amd64 only)