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

Use 'host' network in deb container builds #1071

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Oct 18, 2024

The --network argument was added to 'docker build' in Docker 1.13 in 2017 and behaves like the --net argument to 'docker run'.

We're already using --net=host during the actual deb build and during all of the RPM containers. The change here is to also use host networking during the build phase.

The intent here is to support more self-contained building scenarios where a repository may be on localhost.

Both build.ros.org and build.ros2.org use sufficient Docker engines to support this feature.

The --network argument was added to 'docker build' in Docker 1.13 in
2017 and behaves like the --net argument to 'docker run'.

We're already using --net=host during the actual deb build and during
all of the RPM containers. The change here is to also use host
networking during the build phase.

The intent here is to support more self-contained building scenarios
where a repository may be on localhost.
@cottsay cottsay self-assigned this Oct 18, 2024
@cottsay cottsay merged commit d136ce3 into master Nov 1, 2024
24 checks passed
@cottsay cottsay deleted the cottsay/deb-host-networking branch November 1, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants