For installation instructions, visit Docker’s official website.
Permissions:
Run the following command.
docker ps -a
If you do not have the necessary permissions to run Docker, add your user to the Docker group. Otherwise, you can skip this step.
sudo usermod -aG docker $USER
newgrp docker
Clone the CEASIOMpy repository in a folder of your choice:
cd path/to/the/folder/
git clone https://github.com/cfsengineering/CEASIOMpy
cd CEASIOMpy
Build the Docker image for your system’s architecture:
docker build --platform=linux/amd64 -t ceasiompy-image -f CEASIOMpy_docker_Installation .
Start a new Docker container from ceasiompy-image:
Warning : Make sure you are in the CEASIOMpy folder.
On Linux/macOS:
docker run --init -it --rm --net=host \
-e DISPLAY=$DISPLAY \
-e LIBGL_ALWAYS_SOFTWARE=1 \
-e OMPI_ALLOW_RUN_AS_ROOT=1 \
-e OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-p 8501:8501 \
-v $(pwd):/CEASIOMpy \
ceasiompy-image
On Windows:
docker run -it --rm -e DISPLAY=$DISPLAY -e LIBGL_ALWAYS_SOFTWARE=1 -e OMPI_ALLOW_RUN_AS_ROOT=1 -e OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 -v /tmp/.X11-unix:/tmp/.X11-unix -p 8501:8501 -v ${PWD}:/CEASIOMpy ceasiompy-image
You can now click on local URL and use CEASIOMpy’s GUI (Graphical User Interface) with all of its required software.