Repository navigation
Change docker-compose yaml to insert networks stanza, fixes #3587 - #3620
Conversation
|
@jonaseberle , @LionsAd would love to have your review of this approach, the code, and manual testing. It could remove some significant friction from the release of v1.19. Can be tested with gitpod, https://gitpod.io/#https://github.com/drud/ddev/pull/3620 |
|
It'll take me some time to test, probably next week. But I'll run it productively and test with services I come across. |
| } | ||
| } | ||
| // Make sure all services have our networks stanza | ||
| serviceMap["networks"] = map[interface{}]interface{}{ |
There was a problem hiding this comment.
Not too familiar with this code - can you still override this with your own networks stanza?
There was a problem hiding this comment.
Thanks for taking a look!
No, this replaces the networks stanza unconditionally. Agreed it's a weakness; I tried not to and failed. I haven't ever heard of anybody needing to alter networks though.
The Problem/Issue/Bug:
networksline to services #3587Because the requirement of the
networksstanza in ddev v1.19 is pretty intrusive, requiring existingdocker-compose.*.yamlall to be edited, this PR unmarshalls in the fully normalized yaml text into a golang map, replaces thenetworksarray, and then marshalls the yaml back out to .ddev/.ddev-docker-compose-full.yaml.Manual Testing Instructions:
networksstanza addednetworksstanza.TODO
networksstanzaAutomated Testing Overview:
I'm just hoping that all existing pass.
networksRelease/Deployment notes: