-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
multi: take over multiple small stale PRs #4790
Conversation
To make it possible to communicate over gRPC with an instance running in Docker we need to expose the correct RPC interface.
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.
Great cleanup!
@@ -1836,8 +1838,6 @@ out: | |||
} | |||
} | |||
|
|||
p.wg.Done() |
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.
Slight behaviour change here:
- Previously:
wg.Done
then disconnect - Now: disconnect then
wg.Done
Seems like this new ordering is the right way, but perhaps just check that nothing strange happens with the change?
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.
Ah, good catch! I looked at the initial commit message that added the p.wg.Done()
there and it explicitly mentioned a deadlock. So I reverted this change and replaced it with that comment instead.
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
docs/DOCKER.md
Outdated
- `Dockerfile`: Used for production builds. Checks out the source code from | ||
GitHub during build. The build argument `--build-arg checkout=v0.x.x-beta` | ||
can be used to specify what git tag or commit to check out before building. | ||
- `Dockerfile.dev` Used for development or testing builds. Uses the local code |
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.
nit: dev.Dockerfile
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.
Oh. Thanks, fixed!
44288af
to
4f2e8b2
Compare
To finally end the discussion what Dockerfile should be used for what and whether we should build from local source or check out from git, we place both Dockerfiles next to each other and explicitly document their purpose.
4f2e8b2
to
94183e0
Compare
This PR contains multiple independent changes collected from old, stale PRs.
Replaces:
Original PR authors are attributed where possible.
Because 4 of the 5 replaced PRs somehow involve Docker and development builds, I added a commit of my own to finally clear up this discussion (by tacking my own personal opinion on top of it).