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

Fix make when behind http proxy #131

Merged
merged 1 commit into from
Nov 11, 2022

Conversation

bobh66
Copy link
Collaborator

@bobh66 bobh66 commented Nov 10, 2022

  • Update to latest build submodule
  • Use curl instead of wget to retrieve image
  • Allow BUILD_ARGS from environment to support proxy variables

Signed-off-by: Bob Haddleton bob.haddleton@nokia.com

Description of your changes

Updated the Dockerfile to install curl and use it in place of wget - curl works with
the http_proxy and https_proxy environment variables

Updated the Makefile to allow external BUILD_ARGS to be passed in so that the env variables can be passed
into the docker build command without modifying the Dockerfile

For example: make BUILD_ARGS="--build-arg http_proxy=http://my.proxy.com --build-arg https_proxy=http://my.proxy.com"

Fixes #130

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Generated an image and running it in our development environment

* Update to latest build submodule
* Use curl instead of wget to retrieve image
* Allow BUILD_ARGS from environment to support proxy variables

Signed-off-by: Bob Haddleton <bob.haddleton@nokia.com>
Copy link
Collaborator

@ytsarev ytsarev left a comment

Choose a reason for hiding this comment

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

LGTM!

@bobh66 bobh66 merged commit e441c49 into crossplane-contrib:master Nov 11, 2022
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.

docker builds fail when behind network proxy servers
2 participants