-
Notifications
You must be signed in to change notification settings - Fork 40
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
Connection ID fallback and Docker Compose support #209
Conversation
Pull Request Test Coverage Report for Build 1050
💛 - Coveralls |
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.
This looks good to me, except a doubt I have with respect to the script for generating certs being compatible with non-bash shells, such as ksh and dash. Could you please check that?
gen_local_test_certs.sh
Outdated
@@ -1,6 +1,7 @@ | |||
#!/bin/bash | |||
#!/bin/sh |
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.
Can you test whether this works with dash and ksh? I believe the main reason why it was named bash and it was invoking explicitly bash is because it is using the non-portable set -euxo pipefail
.
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.
You're correct, it doesn't work under Dash. I'm switching the interpreter back to Bash and updating Dockerfile.local
to install Bash.
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.
🐳
Thank you for putting this together!
Will merge when Travis becomes green |
I put the ID fallback in
fdcache
because them-lab/uuid
appears to function as a wrapper for getting an ID via the TCP connections SO_COOKIE and I don't think it makes sense to muddy that package with fallback support.The PR also adds support for Docker Compose. The
Dockerfile.local
is used bydocker-compose.yml
because the mainDockerfile
doesn't copygen_local_test_certs.sh
into the image. I also switchgen_local_test_certs.sh
to use /bin/sh as I'm pretty sure Alpine Linux doesn't include Bash. I also added the cert moving into the script.This change is