diff --git a/scripts/0_build_docker_image.bash b/scripts/0_build_docker_image.bash new file mode 100644 index 0000000..043c821 --- /dev/null +++ b/scripts/0_build_docker_image.bash @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +docker build --tag vcam_image:humble . diff --git a/scripts/1_create_docker_container.bash b/scripts/1_create_docker_container.bash new file mode 100644 index 0000000..af664aa --- /dev/null +++ b/scripts/1_create_docker_container.bash @@ -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