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

go-dnsmasq append flag breaks upstream docker run commands #9

Closed
CheRuisiBesares opened this issue May 29, 2016 · 5 comments
Closed

Comments

@CheRuisiBesares
Copy link

Hey I was doing some work on the upstream opentsdb docker image that lives here https://github.com/PeterGrace/opentsdb-docker . I noticed when I tried to rebuild it after my updates that it breaks because the version of go-dnsmasq slipped up in version from 1.0.0 to 1.0.5 in the janeczku/alpine-kubernetes:3.2 image. Looking at go-dnsmasq it looks like there were some changes to the way that this lib handles the --append-search-domains flag. It seems now it checks that there is at least one search domain in the resolv.conf erroring out with FATA[0000] You need to specify some search domains. This shouldn't be an issue in production where this is defined by default but its breaking local development for docker-machine users/users without a search domain specified. I know you can append --dns-search to the docker run command but I don't think that it is clear why that is needed when you first run into that error and it also breaks existing development environments.

I was wondering how you think I should proceed here. Im guessing we could relax the requirement for go-dnsmasq to have more than one search domain in order to do the append. Or we could update the entrypoint maybe to check for the existence of a search domain in the resolv.conf and put that flag on conditionally. Im going to put a pull request up in @PeterGrace's repo in just a bit. Im not sure that it will get merged in but Id like to know that the tsdb box will have a path forward as deps under it change a little.

Thanks for the awesome work. Let me know how I can help.

@janeczku
Copy link
Owner

janeczku commented Jun 5, 2016

Thanks for bringing this to me. I guess it makes a lot of sense to spit out a warning (for those running it in the shell) instead of exiting in this scenario. I will cut a new release tomorrow.

@janeczku
Copy link
Owner

janeczku commented Jun 5, 2016

append-search-domains is overridden to false and a warning logged when no search domains are configured: janeczku/go-dnsmasq@f0260cb

@janeczku janeczku closed this as completed Jun 5, 2016
@PeterGrace
Copy link

Sorry to comment on a closed issue, but will the dnsmasq change go into 3.2 or do I have to switch my image to the latest tag on your alpine-kubernetes repo to receive the updates? (cc @CheRuisiBesares, thanks for bringing this to my attention)

@janeczku
Copy link
Owner

janeczku commented Jun 5, 2016

@PeterGrace NP. The automated build on Docker Hub always builds both 3.2 and 3.3 images from the current release.

@janeczku
Copy link
Owner

janeczku commented Jun 5, 2016

I will tag the new release tomorrow.

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

No branches or pull requests

3 participants