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

Make solr/memcached name lookup refer exclusively to the right container #1897

Merged
merged 1 commit into from Oct 25, 2019

Conversation

rfay
Copy link
Member

@rfay rfay commented Oct 25, 2019

The Problem/Issue/Bug:

There seems to be a docker bug or (misunderstanding?) about the correct use of a service lookup, as reported by @yanniboi in https://twitter.com/yanni_boi/status/1186941678885703682

If you do not add a "links:" stanza to the web service, then it may find "solr" at the wrong project. This was discovered about the "db" container in #813 and so we used "links:" to make sure it was explicit.

So currently, as was described by @yanniboi , if you have two projects with a solr container, and you ddev ssh into each, then ping solr you may get random results, sometimes referring to one project's solr container, sometimes referring to the other.

How this PR Solves The Problem:

Add explicit "links:" to the 3rd-party service definitions to prevent this.

Manual Testing Instructions:

Start two projects that have solr (and memcached and beanstalk)
ddev ssh and ping solr. You should get the right name resolution and the right container.

Automated Testing Overview:

Related Issue Link(s):

#813 discusses this general problem but with the db container

Release/Deployment notes:

This change is made here for the 3 services describe in the main repo, but the change should be made in the ddev-contrib repository as well.

rfay added a commit to rfay/ddev-contrib that referenced this pull request Oct 25, 2019
rfay added a commit to ddev/ddev-contrib that referenced this pull request Oct 25, 2019
@rfay rfay merged commit f222969 into ddev:master Oct 25, 2019
@rfay rfay deleted the 20191025_fix_solr_reference branch October 25, 2019 13:36
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.

None yet

1 participant