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

build: Pass proxy environment variables through to docker containers. #871

Merged
merged 1 commit into from
Mar 26, 2020

Conversation

smoser
Copy link
Contributor

@smoser smoser commented Mar 26, 2020

Issue number: none

Description of changes:
When building behind a proxy, build via 'cargo make' worked up to
the point of 'running Task: fetch-vendored' where it hung.

The reason was because necessary proxy environment variables
were not passed into the docker container's environment.

The fix here is to add these variables to the environment of the
docker container if they are set outside the container:
http_proxy, https_proxy, no_proxy

Testing done: build with cargo make

Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Copy link
Contributor

@bcressey bcressey left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

tools/docker-go Show resolved Hide resolved
When building behind a proxy, build via 'cargo make' worked up to
the point of 'running Task: fetch-vendored' where it hung.

The reason was because necessary proxy environment variables
were not passed into the docker container's environment.

The fix here is to add these variables to the environment of the
docker container if they are set outside the container:
  http_proxy, https_proxy, no_proxy
Copy link
Contributor

@bcressey bcressey left a comment

Choose a reason for hiding this comment

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

🏎

@etungsten etungsten merged commit 455fd26 into bottlerocket-os:develop Mar 26, 2020
@smoser smoser deleted the fix/proxy-to-docker branch March 26, 2020 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants