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

feat: bundle grpc_health_probe in image #387

Merged
2 commits merged into from
Sep 12, 2022

Conversation

hongalex
Copy link
Collaborator

What type of PR is this?
/kind feat

What this PR does / Why we need it:
Bundles the statically compiled grpc_health_probe in the container image.

Which issue(s) this PR fixes:
Closes #386

Special notes for your reviewer:

@hongalex hongalex requested a review from a user September 10, 2022 00:08
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add binaries for both collector and server.
I am not sure we even need it for the collector since it runs on a schedule and terminates when done.

RUN GRPC_HEALTH_PROBE_VERSION=v0.4.12 && \
wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \
chmod +x /bin/grpc_health_probe

# Build the server image.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The executable should probably be packaged in both the collector and the server.
For the collector, I would add this section at line 62 and line 78 in the original file, and keep the CMD as the last step.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ghost ghost merged commit 7046357 into googleforgames:main Sep 12, 2022
This pull request was closed.
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.

Include grpc-health-probe execurtable as part of the Open Saves Dockerfile
1 participant