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

Random DNS problems during Docker build #371

Closed
lidel opened this issue Feb 5, 2018 · 2 comments
Closed

Random DNS problems during Docker build #371

lidel opened this issue Feb 5, 2018 · 2 comments
Assignees
Labels
kind/bug A bug in existing code (including security flaws) kind/discussion Topical discussion; usually not changes to codebase

Comments

@lidel
Copy link
Member

lidel commented Feb 5, 2018

While looking into #370, I noticed that alpine images are still non-deterministic when it comes to dns lookups (commands executed on the same box, one after another):

> docker run -it --rm node:9.5.0-alpine ping -c 1 nodejs.org
PING nodejs.org (104.20.23.46): 56 data bytes
64 bytes from 104.20.23.46: seq=0 ttl=59 time=21.822 ms

--- nodejs.org ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 21.822/21.822/21.822 ms
$ docker run -it --rm node:9.5.0-alpine ping -c 1 nodejs.org
ping: bad address 'nodejs.org'
$ docker run -it --rm node:9.5.0-alpine ping -c 1 nodejs.org
PING nodejs.org (104.20.22.46): 56 data bytes
64 bytes from 104.20.22.46: seq=0 ttl=59 time=22.924 ms

--- nodejs.org ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 22.924/22.924/22.924 ms
$ docker run -it --rm node:9.5.0-alpine ping -c 1 nodejs.org
ping: bad address 'nodejs.org'

what the..

If i force ipv4 lookups (ping -4) then it always succeeds.
Seems that the problem surfaces only on boxes that default to ipv6 (like my fiber).

ps. this might be underlying source of related issues:

TL;DR

Why is this a problem? We want reproducible builds to work not only on Jenkins, but also on local machines (eg. on laptop of AMO reviewer).

A fix is to find workaround for alpine, or switch to glibc-based image.

@lidel lidel added kind/bug A bug in existing code (including security flaws) kind/discussion Topical discussion; usually not changes to codebase labels Feb 5, 2018
@lidel lidel self-assigned this Feb 5, 2018
@ghost
Copy link

ghost commented Feb 5, 2018

A glibc-based image will allow you to run binaries from dist.ipfs.io (go-ipfs, etc.)

@lidel
Copy link
Member Author

lidel commented Feb 12, 2018

Closed by #372

@lidel lidel closed this as completed Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws) kind/discussion Topical discussion; usually not changes to codebase
Projects
None yet
Development

No branches or pull requests

1 participant