-
Notifications
You must be signed in to change notification settings - Fork 7.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
minor updates for cartservice #481
Conversation
🚲 PR staged at http://35.196.14.103 |
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 | ||
WORKDIR /app | ||
COPY --from=builder /cartservice . | ||
ENV ASPNETCORE_URLS http://*:7070 |
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.
just curious, what is the functionality of this? was cartservice using a .NET default, prior to this?
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.
Sure, this env var is one way to set the URL, especially when not using the default port: https://andrewlock.net/5-ways-to-set-the-urls-for-an-aspnetcore-app/. Before this PR, this env var was passed in the Kubernetes deployment file, now it's embedded in the Dockerfile instead. Hope that makes sense?
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.
Yes! That clarifies, thanks!
* ASPNETCORE_URLS in Dockerfile * GRPC_HEALTH_PROBE_VERSION=v0.3.6 * Grpc.AspNetCore - 2.34.0 * more for dockerignore * typo * remove unused files * c# 9 syntax improvement with Program.cs
ASPNETCORE_URLS
env inDockerfile
Program.cs
Grpc.AspNetCore
- 2.34.0GRPC_HEALTH_PROBE_VERSION
-v0.3.6
.dockerignore
file