Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binding host PID and IPC namespace to devcontainer.json. #4654

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

fujitatomoya
Copy link
Collaborator

No description provided.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Copy link

HTML artifacts: https://github.com/ros2/ros2_documentation/actions/runs/10479375339/artifacts/1834612073.

To view the resulting site:

  1. Click on the above link to download the artifacts archive
  2. Extract it
  3. Open html-artifacts-4654/index.html in your favorite browser

@@ -138,6 +138,8 @@ Therefore add the following to ``.devcontainer/devcontainer.json``:
},
"runArgs": [
"--net=host",
"--pid=host",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is related to https://answers.ros.org/question/296828/ros2-connectivity-across-docker-containers-via-host-driver/. having the same PID namespace can generate the GUID if DDS implementation uses the PID for GUID.

@@ -138,6 +138,8 @@ Therefore add the following to ``.devcontainer/devcontainer.json``:
},
"runArgs": [
"--net=host",
"--pid=host",
"--ipc=host",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is suggested by Fast-DDS, https://fast-dds.docs.eprosima.com/en/latest/docker/shm_docker.html. Having the same IPC namespace can allow applications in containers and host system to communicated via shared memory transport.

@clalancette clalancette added the backport-all backport at reviewers discretion; from rolling to all versions label Aug 29, 2024
@clalancette clalancette merged commit 1d8b5f1 into rolling Aug 29, 2024
4 checks passed
@clalancette clalancette deleted the fujitatomoya/setup-devcontainer-ipc-pid branch August 29, 2024 20:38
mergify bot pushed a commit that referenced this pull request Aug 29, 2024
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 1d8b5f1)
mergify bot pushed a commit that referenced this pull request Aug 29, 2024
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 1d8b5f1)
mergify bot pushed a commit that referenced this pull request Aug 29, 2024
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 1d8b5f1)
clalancette pushed a commit that referenced this pull request Aug 29, 2024
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 1d8b5f1)

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
clalancette pushed a commit that referenced this pull request Aug 29, 2024
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 1d8b5f1)

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
clalancette pushed a commit that referenced this pull request Aug 29, 2024
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 1d8b5f1)

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-all backport at reviewers discretion; from rolling to all versions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants