1 Docker
Toastie edited this page 2025-01-29 10:52:59 +00:00

About the Dockerfile

While EllieHub is not intended to be run through Docker, it's possible to do so and even debug it through Docker. The following steps describe how to execute EllieHub on Docker, assuming a Linux host that runs an X11 server for graphical rendering.

Allow Docker to access the X server on your host

xhost +local:docker

Build the image

If you want to execute EllieHub in Debug mode, navigate to the directory with the Dockerfile file and run:

docker build -t elliehub ./

Otherwise, if you want to execute it in Release mode, run:

docker build -t elliehub ./ --build-arg DOTNET_BUILD=Release

Start the container

If you created an image for Debug mode, run:

docker run -it \
    -e DISPLAY=$DISPLAY \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v $HOME/Documents/EllieHubDebug:/home/elliehub_user/Documents/EllieHubDebug \
    elliehub

Otherwise, if you created an image for Release mode, run:

docker run -it \
    -e DISPLAY=$DISPLAY \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v $HOME/.config/EllieHub:/home/elliehub_user/.config/EllieHub \
    elliehub