8000 test/Dockerfile: allow using a mirror for the apt repository by thaJeztah · Pull Request #2383 · docker/docker-py · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

test/Dockerfile: allow using a mirror for the apt repository #2383

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

Merged
merged 1 commit into from
Aug 27, 2019

Conversation

thaJeztah
Copy link
Member

With this change applied, the default debian package repository can be replaced with a mirror;

make APT_MIRROR=cdn-fastly.deb.debian.org build-py3

...

Step 5/19 : RUN apt-get update && apt-get -y install     gnupg2     pass     curl
 ---> Running in 01c1101a0bd0
Get:1 http://cdn-fastly.deb.debian.org/debian buster InRelease [118 kB]
Get:2 http://cdn-fastly.deb.debian.org/debian-security buster/updates InRelease [39.1 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease [46.8 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian buster/main amd64 Packages [7897 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian-security buster/updates/main amd64 Packages [22.8 kB]

With this change applied, the default debian package repository can be
replaced with a mirror;

```
make APT_MIRROR=cdn-fastly.deb.debian.org build-py3

...

Step 5/19 : RUN apt-get update && apt-get -y install     gnupg2     pass     curl
 ---> Running in 01c1101a0bd0
Get:1 http://cdn-fastly.deb.debian.org/debian buster InRelease [118 kB]
Get:2 http://cdn-fastly.deb.debian.org/debian-security buster/updates InRelease [39.1 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease [46.8 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian buster/main amd64 Packages [7897 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian-security buster/updates/main amd64 Packages [22.8 kB]
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

@shin- @ulyssessouza ptal

@shin-
Copy link
Contributor
shin- commented Jul 19, 2019

I'm not opposed to it, but what's the reason for adding this?

@thaJeztah
Copy link
Member Author

The upstream debian package repositories have at times been flaky, causing the moby CI to fail (see moby/moby#21512 and moby/moby#21590). For that reason we configure CI to use a mirror.

Now that we're building the docker-py test image directly from this repository as part of Docker CI (see moby/moby#39068), I think it would make sense to configure this image to also use the same mirror.

@thaJeztah
Copy link
Member Author

at times been flaky

(I think our CI was also blacklisted at some point because it was taking too much traffic 😇 😂)

Copy link
Contributor
@shin- shin- left a comment

Choose a reason for hiding this comment

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

Thank you, and thanks for the explanation! Sorry for the delay -_-

@shin- shin- added this to the 4.1.0 milestone Aug 27, 2019
@shin- shin- merged commit 5660730 into docker:master Aug 27, 2019
@thaJeztah thaJeztah deleted the support_mirrors branch August 27, 2019 15:03
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.

2 participants
0