Skip to content

Commit

Permalink
fix: Add "--security-opt" (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiryoh authored Jun 25, 2023
1 parent feaaf44 commit 4b8e1b0
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- master
paths:
- "**/Dockerfile"
- "**/ros**.sh"
- "**/entrypoint.sh"
- ".github/workflows/deploy.yml"
schedule:
- cron: "7 4 * * 0" # Weekly on Sundays at 13:07 (JST)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- master
paths:
- "**/Dockerfile"
- "**/ros**.sh"
- "**/entrypoint.sh"
- ".github/workflows/test.yml"
schedule:
- cron: "0 2 * * 0" # Weekly on Sundays at 02:00
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ https://memoteki.net/archives/2955
Run the docker container and access with port `6080`.
Change the `shm-size` value depending on the situation.

__NOTE__: `--security-opt seccomp=unconfined` flag is required to launch humble image. See https://github.com/Tiryoh/docker-ros2-desktop-vnc/pull/56.

```
docker run -p 6080:80 --shm-size=512m tiryoh/ros2-desktop-vnc:humble
docker run -p 6080:80 --security-opt seccomp=unconfined --shm-size=512m tiryoh/ros2-desktop-vnc:humble
```

Browse http://127.0.0.1:6080/.
Expand Down
5 changes: 5 additions & 0 deletions humble/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,9 @@ chown -R $USER:$USER $HOME/.ros
PASSWORD=
VNC_PASSWORD=

echo "============================================================================================"
echo "NOTE: --security-opt seccomp=unconfined flag is required to launch Ubuntu Jammy based image."
echo -e 'See \e]8;;https://github.com/Tiryoh/docker-ros2-desktop-vnc/pull/56\e\\https://github.com/Tiryoh/docker-ros2-desktop-vnc/pull/56\e]8;;\e\\'
echo "============================================================================================"

exec /bin/tini -- supervisord -n -c /etc/supervisor/supervisord.conf
5 changes: 5 additions & 0 deletions iron/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,9 @@ chown -R $USER:$USER $HOME/.ros
PASSWORD=
VNC_PASSWORD=

echo "============================================================================================"
echo "NOTE: --security-opt seccomp=unconfined flag is required to launch Ubuntu Jammy based image."
echo -e 'See \e]8;;https://github.com/Tiryoh/docker-ros2-desktop-vnc/pull/56\e\\https://github.com/Tiryoh/docker-ros2-desktop-vnc/pull/56\e]8;;\e\\'
echo "============================================================================================"

exec /bin/tini -- supervisord -n -c /etc/supervisor/supervisord.conf
5 changes: 5 additions & 0 deletions rolling/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,9 @@ chown -R $USER:$USER $HOME/.ros
PASSWORD=
VNC_PASSWORD=

echo "============================================================================================"
echo "NOTE: --security-opt seccomp=unconfined flag is required to launch Ubuntu Jammy based image."
echo -e 'See \e]8;;https://github.com/Tiryoh/docker-ros2-desktop-vnc/pull/56\e\\https://github.com/Tiryoh/docker-ros2-desktop-vnc/pull/56\e]8;;\e\\'
echo "============================================================================================"

exec /bin/tini -- supervisord -n -c /etc/supervisor/supervisord.conf

0 comments on commit 4b8e1b0

Please sign in to comment.