Setup Docker

A docker file is present within the repository of Delft-FIAT. This docker file can be found here.

From this docker file a docker image can be produced. In the creation process of the docker image, pixi is used. Pixi is a fast(er) alternative of creating and installing python environments compared to mamba (conda). Creating a docker image can be done with the following command:

Important

The OS running used in the docker/ container image will be Debian.

Note

Note: Set the current directory to the directory of the cloned repository.

docker build -f Dockerfile --build-arg="PIXIENV=default" -t fiat .

However, as an alternative, it can be build directly from the docker file in the github remote repository:

docker build -f https://raw.githubusercontent.com/Deltares/Delft-FIAT/master/Dockerfile --build-arg="PIXIENV=default" -t fiat .
Tip

The build argument PIXIENV is used to define which python enviroment to use. Using the default environment is recommended. An overview of all the environments can be found in the pixi toml file.

After setting up the docker image, a docker container can be spawned from this docker image. The docker container will contain all the necessary components to run Delft-FIAT.

To run/ start a docker container from the previously created docker image:

Tip

The -v argument sets a mount, i.e. connection from a directory on the host machine to the docker container.

docker run -it  -v $PWD/data:/home/deltares/data --name fiat fiat:latest bash

When inside the docker container one can simply call FIAT:

fiat run --help
Back to top