Skip to content

Commit

Permalink
➕ Added ease-of-use docker build and run scripts under scripts dir.
Browse files Browse the repository at this point in the history
Signed-off-by: Bey Hao Yun <[email protected]>
  • Loading branch information
cardboardcode committed Aug 13, 2024
1 parent 4da4b3b commit 9315ae6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/0_build_docker_image.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

docker build --tag vcam_image:humble .
16 changes: 16 additions & 0 deletions scripts/1_create_docker_container.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

xhost +local:docker

docker run -ti \
--ipc host \
--net host \
--name vcam_test_container \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /dev/shm:/dev/shm \
-v $(pwd):/home/user/virtual_camera \
-u 0 \
vcam_image:latest /bin/bash

xhost -local:docker

0 comments on commit 9315ae6

Please sign in to comment.