Skip to content

Commit

Permalink
dotnet 5.0.2 (GoogleCloudPlatform#488)
Browse files Browse the repository at this point in the history
* dotnet 5.0.2 + fix docker build locally on debian 10

* Grpc.HealthCheck 2.34.1

* Grpc.HealthCheck 2.35.0

* Grpc.Tools 2.35.0
  • Loading branch information
mathieu-benoit authored Jan 27, 2021
1 parent b113926 commit b66e38f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/cartservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@
# limitations under the License.

# https://mcr.microsoft.com/v2/dotnet/sdk/tags/list
FROM mcr.microsoft.com/dotnet/sdk:5.0.101 as builder
FROM mcr.microsoft.com/dotnet/sdk:5.0.102 as builder
WORKDIR /app
COPY cartservice.csproj .
RUN dotnet restore cartservice.csproj -r linux-musl-x64
COPY . .
# Fix the issue on Debian 10: https://github.com/dotnet/dotnet-docker/issues/2470
ENV COMPlus_EnableDiagnostics=0
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

# https://mcr.microsoft.com/v2/dotnet/runtime-deps/tags/list
FROM mcr.microsoft.com/dotnet/runtime-deps:5.0.1-alpine3.12-amd64
FROM mcr.microsoft.com/dotnet/runtime-deps:5.0.2-alpine3.12-amd64
RUN GRPC_HEALTH_PROBE_VERSION=v0.3.6 && \
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
Expand Down
2 changes: 1 addition & 1 deletion src/cartservice/cartservice.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<ItemGroup>
<PackageReference Include="Grpc.AspNetCore" Version="2.34.0" />
<PackageReference Include="Grpc.HealthCheck" Version="2.34.0" />
<PackageReference Include="Grpc.HealthCheck" Version="2.35.0" />
<PackageReference Include="StackExchange.Redis" Version="2.2.4" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/cartservice/tests/cartservice.tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<ItemGroup>
<PackageReference Include="Grpc.AspNetCore" Version="2.34.0" />
<PackageReference Include="Grpc.Tools" Version="2.34.0" />
<PackageReference Include="Grpc.Tools" Version="2.35.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
Expand Down

0 comments on commit b66e38f

Please sign in to comment.