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

cartservice - .NET 8 #2102

Merged
merged 5 commits into from
Sep 14, 2023
Merged

cartservice - .NET 8 #2102

merged 5 commits into from
Sep 14, 2023

Conversation

mathieu-benoit
Copy link
Contributor

@mathieu-benoit mathieu-benoit commented Sep 14, 2023

Like it was done here and here with .NET 7. .NET 8 in RC1 is out, this is anticipating the GA launch planned in November 2023 and have Online Boutique ready for this.

Also:

JFYI: before implementing this here, I also tested this .NET 8 update on a sample app.

@mathieu-benoit
Copy link
Contributor Author

mathieu-benoit commented Sep 14, 2023

  • Tested with a sample app.
  • Tested in my own GKE environment
  • Unit tests passing successfully
  • Deployment in test environment working successfully: http://35.188.134.127/

Ready for your review, thanks!

Copy link
Collaborator

@NimJay NimJay left a comment

Choose a reason for hiding this comment

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

All checks are passing. The staging URL works. Changes look good. Approved.
Thanks so much for volunteering your .NET expertise and for this PR, @mathieu-benoit! 😊

COPY . .
RUN dotnet publish cartservice.csproj -p:PublishSingleFile=true -r linux-musl-x64 --self-contained true -p:PublishTrimmed=True -p:TrimMode=Link -c release -o /cartservice --no-restore
RUN dotnet publish cartservice.csproj \
Copy link
Collaborator

Choose a reason for hiding this comment

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

Praise: Thanks for tidying up this RUN dotnet publish cartservice.csproj command!


WORKDIR /app
COPY --from=builder /cartservice .
EXPOSE 7070
ENV DOTNET_EnableDiagnostics=0 \
ASPNETCORE_URLS=http://*:7070
ASPNETCORE_HTTP_PORTS=7070
Copy link
Collaborator

Choose a reason for hiding this comment

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

Praise: Thanks for taking care of the little details like ASPNETCORE_HTTP_PORTS and TrimMode=Full.

@NimJay NimJay merged commit 9b19a45 into GoogleCloudPlatform:main Sep 14, 2023
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.

2 participants