Skip to content
Snippets Groups Projects
Commit 66bd47ef authored by André Da Luz Moreira's avatar André Da Luz Moreira
Browse files

Minor edits to README.

parent 9c8f7582
No related branches found
No related tags found
No related merge requests found
......@@ -13,9 +13,9 @@ The steps below are just the way I do it, but feel free to adapt. And please sen
- Create your local Docker image, named `my_mod_foam`:
```sh
docker build -f my.Dockerfile -t local/my_mod_foam .
```
```sh
docker build -f my.Dockerfile -t local/my_mod_foam .
```
#### 2. Prepare you local file system for using the container
......@@ -62,26 +62,26 @@ To just quickly make it work just follow the steps below.
- Get the `openfoam-docker` tool from OpenCFD and make it executable. This is quite useful for creating a container for using the Docker image. It is also possible to set up a permanent container and use it every time. There are advantages and disadvantages to this but it's beyond the scope of this tutorial.
```sh
curl -o $HOME/openfoam-docker https://develop.openfoam.com/packaging/containers/-/raw/main/openfoam-docker
chmod +x $HOME/openfoam-docker
```
```sh
curl -o $HOME/openfoam-docker https://develop.openfoam.com/packaging/containers/-/raw/main/openfoam-docker
chmod +x $HOME/openfoam-docker
```
- Run the script using your custom Docker image with:
```sh
$HOME/openfoam-docker -image=local/my_mod_foam -x -case=$HOME/OpenFOAM_DockerHome_2112
```
```sh
$HOME/openfoam-docker -image=local/my_mod_foam -x -case=$HOME/OpenFOAM_DockerHome_2112
```
```sh
$HOME/openfoam-docker -image=local/foam_andre -x -case=$HOME/OpenFOAM_DockerHome_2112
```
```sh
$HOME/openfoam-docker -image=local/foam_andre -x -case=$HOME/OpenFOAM_DockerHome_2112
```
You can also add an alias to your `.bashrc` (replace with `.zshrc` on a Mac):
- [OPTIONAL] You can also add an alias to your `.bashrc` (replace with `.zshrc` on a Mac):
```sh
echo "alias myFoamContainer=\"$HOME/openfoam-docker -image=local/my_mod_foam -x -case=$HOME/OpenFOAM_DockerHome_2112\"" >> ~/.bashrc
```
```sh
echo "alias myFoamContainer=\"$HOME/openfoam-docker -image=local/my_mod_foam -x -case=$HOME/OpenFOAM_DockerHome_2112\"" >> ~/.bashrc
```
___
### Remarks
......@@ -105,6 +105,7 @@ ___
### Contact
André Da Luz Moreira - andre.da.luz.moreira@liu.se
Link to this repository: https://gitlab.liu.se/andda15/OpenFOAM_ContainerMod
___
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment