Docker Usage - jansetesen/IFC2SB GitHub Wiki
If you want to build the container by yourself, use Dockerfile.
Clone the project to your $HOME directory. And then:
-
to build the dockerfile:
cd $HOME/IFC2SB
sudo docker build -t ifc2sb -f add/Dockerfile .
sudo docker run -it -v $HOME:/mnt ifc2sb /bin/bash -
inside the container to run the code:
cd /opt/ifc2sb/code/build
./IFC2SB -j8 --graph /mnt/IFCfiles/BIM-ESH-EG.ifc
But it is also possible to use the already built docker image from DockerHub.
- pull and run the docker image:
sudo docker pull jansetesen1/ifc2sb:latest3
sudo docker run -it -v $HOME:/mnt jansetesen1/ifc2sb:latest3 /bin/bash
Explanation:
sudo docker run: Runs the Docker container with elevated privileges.-it: Starts an interactive terminal session.-v $HOME:/mnt: Mounts your home directory ($HOME) into the container at the/mntdirectory inside the container. This allows you to access files from your host system within the container.jansetesen1/ifc2sb:latest3: Specifies the Docker image to run./bin/bash: Opens a bash shell inside the container, allowing you to interact with it.