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

minor updates for cartservice #481

Merged
merged 7 commits into from
Jan 11, 2021
Merged

Conversation

mathieu-benoit
Copy link
Contributor

@mathieu-benoit mathieu-benoit commented Jan 2, 2021

  • ASPNETCORE_URLS env in Dockerfile
  • C# 9 syntax improvement with Program.cs
  • Grpc.AspNetCore - 2.34.0
  • GRPC_HEALTH_PROBE_VERSION - v0.3.6
  • Remove unused files + enhance .dockerignore file

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jan 2, 2021
@github-actions
Copy link

🚲 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
Copy link
Contributor

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?

Copy link
Contributor Author

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?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes! That clarifies, thanks!

@askmeegs askmeegs merged commit 7a2a0d7 into master Jan 11, 2021
@mathieu-benoit mathieu-benoit deleted the mathieu-benoit/cartservice-update branch January 13, 2021 04:11
D-Mwanth pushed a commit to D-Mwanth/microservices-demo that referenced this pull request Mar 6, 2024
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants