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

Add docker proxy settings for make test in a proxy environment #1854

Conversation

KentaTada
Copy link
Contributor

Currently, make test cannot be executed in a proxy environment. This commit resolves it.

Signed-off-by: Kenta Tada Kenta.Tada@sony.com

@crosbymichael
Copy link
Member

crosbymichael commented Aug 1, 2018

LGTM

Approved with PullApprove

You can run a test in your proxy environment by setting `DOCKER_BUILD_PROXY` and `DOCKER_RUN_PROXY` variables.

```bash
# make test DOCKER_BUILD_PROXY="--build-arg HTTP_PROXY=http://yourproxy/" DOCKER_RUN_PROXY="-e HTTP_PROXY=http://yourproxy/"
Copy link
Member

Choose a reason for hiding this comment

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

Should not these be DOCKER_BUILD_FLAGS and DOCKER_RUN_FLAGS?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@AkihiroSuda Thank you for your comments. I thought these variables should be only used for proxy settings and named these variables. But either is fine.

@KentaTada
Copy link
Contributor Author

ping @opencontainers/runc-maintainers @AkihiroSuda I'm thinking that I'll use original variables names if someone doesn't deny. Could someone give me comments or review?

Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

LGTM (IANAM)

@KentaTada
Copy link
Contributor Author

Could you please review this commit? This is very simple.
@rjnagal @vmarmol @mrunalp @dqminh @hqhq @cyphar PTAL

@hqhq
Copy link
Contributor

hqhq commented Aug 22, 2018

@KentaTada Needs rebase.

This commit modifies Makefile to execute `make test` in a proxy environment.

Signed-off-by: Kenta Tada <Kenta.Tada@sony.com>
@KentaTada KentaTada force-pushed the add-docker-proxy-settings-for-test-in-makefile branch from 247f25d to b399167 Compare August 22, 2018 09:32
@KentaTada
Copy link
Contributor Author

@hqhq Thank you for your review and I rebase it.

@hqhq
Copy link
Contributor

hqhq commented Aug 22, 2018

LGTM

Approved with PullApprove

1 similar comment
@crosbymichael
Copy link
Member

crosbymichael commented Aug 22, 2018

LGTM

Approved with PullApprove

@crosbymichael crosbymichael merged commit 308daad into opencontainers:master Aug 22, 2018
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.

4 participants