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

Consider adding mirrors to dockerfiles to avoid unavailability of archive.ubuntu.com causing a build failure #11786

Closed
slonka opened this issue Oct 17, 2024 · 7 comments
Assignees
Labels
kind/improvement Improvement on an existing feature triage/accepted The issue was reviewed and is complete enough to start working on it
Milestone

Comments

@slonka
Copy link
Contributor

slonka commented Oct 17, 2024

Description

image

Recently we experienced an issue (link) with

Unable to connect to archive.ubuntu.com:80

if we add mirrors /etc/apt/sources.list that could make it more reliable

@slonka slonka added triage/pending This issue will be looked at on the next triage meeting kind/improvement Improvement on an existing feature labels Oct 17, 2024
@jijiechen
Copy link
Member

Dockerfiles are used in many places, including local builds and on different CI runners, etc.
I'm thinking while adding a static mirror may benefit some scenarios, it can also bring negative effects to other scenarios. So at least this needs to be configurable.

@slonka
Copy link
Contributor Author

slonka commented Oct 17, 2024

negative effects to other scenarios

can you go into details of this? how can an additional mirror have negative effects?

@slonka
Copy link
Contributor Author

slonka commented Oct 17, 2024

If you're worried about throughput then AFAIK there are tools that detect the closes mirror based on throughput and set up sources.list accordingly.

@slonka
Copy link
Contributor Author

slonka commented Oct 17, 2024

https://apt-mirror.github.io/ could work

@jijiechen
Copy link
Member

Yeah, a public mirror may work.
By negative effects I meant when the mirror is not correctly configured, it may break some builds. For example, if we configure it to use Hetzner mirror, then the build will not work on other places.

@lahabana lahabana added this to the 2.9.x milestone Oct 17, 2024
@slonka
Copy link
Contributor Author

slonka commented Oct 17, 2024

I'm only planning on using public mirrors

@lukidzi lukidzi added triage/accepted The issue was reviewed and is complete enough to start working on it and removed triage/pending This issue will be looked at on the next triage meeting labels Oct 21, 2024
@slonka
Copy link
Contributor Author

slonka commented Oct 22, 2024

closed via #11809

@slonka slonka closed this as completed Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/improvement Improvement on an existing feature triage/accepted The issue was reviewed and is complete enough to start working on it
Projects
None yet
Development

No branches or pull requests

4 participants