-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Docker-Compose: Avoid setting hostname to '' #1365
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just tested your change with docker-compose 2.3.2 and after this, |
@aminvakil in any case, the used syntax is incorrect. it's already well known (to me at least) that docker compose doesn't like extra quoting. it's not shell script. for example if you place a variable with spaces to .env YOU MAU NOT QUOTE THE VALUE, or you get quotes in env value itself. anyway, after my fix, if env is missing the valuer is set to empty (rather apostrhophes), and then default hostname will be set, which is generated name. as seen in example I provided |
I fail to see how "smtp" container "hostname" is related to "snuba" container :D If you insist on quoting, then this might work (not tested): smtp:
<<: *restart_policy
image: tianon/exim4
hostname: "${SENTRY_MAIL_HOST:-}" but that's just yaml syntax, shouldn't affect the variables expansion. |
Ok, reverting this PR change results in |
Yeah, it was a mistake, it's not related. But I still want to understand why it has been added at the first place. |
Right now our CI is failing (#1341) I will close and open this PR to retrigger 2.0.1 at least to see if this leads to any problem. |
GitHub did something to how they use Docker across matrix jobs and I think this is causing issues. We may want to scope the project name with the job name in docker-compose setups to avoid the issues. The failure on 1.29.2 seems related to that. |
@aminvakil, you can do that yourself, really: |
@glensc Do you see "maintainer" here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Closing and reopening to trigger the CI.
And CI is green. 🎉 |
Sadly needs another rebase once #1375 lands. |
/gcbrun |
@glensc Do you see "member" here? Oh wait ... 😬 🙈 😅 |
Build flakiness due to multiple versions in same docker instance still not resolved:
The fix didn't apparently work: |
#1294 ftr
de81299 was for #1341, not #1294. We have several open CI issues. 😞 |
/gcbrun |
@glensc I'll force-merge if we hit CI flakiness again. |
We have hit #1171 now :) |
I thought this was to solve container name collisions:
|
hey. CI green. merge fast before someone requests rebase! :D |
Close one! Thanks @glensc! 😁 |
The hostname is literally set to
''
:Before:
After: