Skip to content
Luís Venâncio edited this page Feb 27, 2024 · 4 revisions

To compile and test DUNE out-of-the-box a docker solution is provided.

Prerequisites

Get Docker and Docker Compose here.

Compiling

This tutorial assumes you have read the previous tutorial Obtaining the Source Code.

  1. Create a dedicated folder for DUNE's compiled binaries:
mkdir $HOME/dune/build
  1. Go into the docker directory inside the DUNE's source.
cd $HOME/dune/dune/docker
  1. Run container and enter shell.
docker run -i -a stdin -a stdout -v $HOME/dune/dune/:/dune/source -v $HOME/dune/build/:/dune/build -t dune
  1. Compile DUNE.
cmake ../source
make -j$(nproc)

Docker Compose

If you have docker compose:

cd $HOME/dune/dune/docker
docker compose run dune
cmake ../source
make -j$(nproc)

Running

Running a simulation