Docker containers for Haru projects.
Install the Docker Engine and follow the post-installation steps.
For CUDA support, also install the NVIDIA Container Toolkit.
Allow Docker GUI access:
xhost +local:docker
docker build --rm -t haru/haru-os:local -f haru-os/Dockerfile ./haru-os
Run:
docker run -it --rm --name haru-os \
--network host --ipc host --gpus all \
--env-file .env.example \
-v /tmp/.X11-unix:/tmp/.X11-unix \
haru/haru-os:local
Or compose: (recommended)
docker compose -f docker-compose-haru.yaml --env-file .env.example up
docker build --rm --ssh default=$SSH_AUTH_SOCK -t haru/haru-simulator:local -f haru-simulator/Dockerfile ./haru-simulator
# or docker build --rm --secret id=github_token,src=$GITHUB_TOKEN -t haru/haru-simulator:local -f haru-simulator/Dockerfile ./haru-simulator
Run:
docker run -it --rm --name haru-os \
--network host --ipc host --gpus all \
--env-file .env.example \
--device /dev/snd \
-v /tmp/.X11-unix:/tmp/.X11-unix \
haru/haru-simulator:local
Or compose: (recommended)
docker compose -f docker-compose-simulator.yaml --env-file .env.example up