htlle-da-vorlage/tools/docker/README.md
2024-12-21 15:02:27 +01:00

1.2 KiB

docker container

The provided Dockerfile can be used to cerate a dockerized build environment where all depenencies are satisfied.

building the environment

In order to build a docker container (in this example it will be namend diplomarbeit-env just run the following command on a docker host (Testsd with docker 20.10.22)

$ docker build -t diplomarbeit-env .

This creates a container that contains all dependencies and expects to find your diplomathesis in mounted into the /workspace folder.

Alternatively the image can be pulled from dockerhub. See instructions here: https://hub.docker.com/r/bytebang/htlle-da-env

usage

One can build the thesis ba running the followin command:

$ docker run -it --rm -v $(pwd):/workspace diplomarbeit-env

This command runs the diplomarbeit-env container interactively, mounts the current directory into the container at /workspace, and automatically cleans up the container after it exits.

Errors and log messages are shown in the console, the file will be written back to the /workspace folder. This also works with Docker Desktop

Docker Dektop settings