yutongwangBIT / VOOM

GNU General Public License v3.0
99 stars 8 forks source link

Docker support #7

Closed allenthreee closed 1 month ago

allenthreee commented 1 month ago

If there are any plans to provide Docker support for VOOM. Dockerizing the project would greatly simplify the setup process and ensure a consistent environment across different systems, which would be beneficial for many users.

If Docker support is not currently planned, could you provide some guidance or a starting point for creating a Dockerfile for VOOM?

Thank you for your time and assistance.

allenthreee commented 1 month ago

I have made a docker image:

  1. pull the docker image: docker pull allenthreee/voom_base_melodic:25th-July-1st_build

  2. run the image by the follow command (in a docker_run.sh)

#!/bin/bash
# build container

XSOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker.xauth
touch $XAUTH
xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -

sudo docker run \
  -it \
  --network host \
  --privileged \
  --volume=$XSOCK:$XSOCK:rw \
  --volume=$XAUTH:$XAUTH:rw \
  --env="XAUTHORITY=${XAUTH}" \
  --env DISPLAY=$DISPLAY \
  --env TERM=xterm-256color \
  -v /dev:/dev \
  --name "voom_base" \
  allenthreee/voom_base_melodic:25th-July-1st_build \
  /bin/bash
  1. inside the docker container: cd /root/VOOM-main/bin ./run_fr2_desk.sh