Skip to content

Commit fc4bf13

Browse files
Use aspnet image in example/OATS (#150)
- Fix running in the sdk image instead of aspnet. - Update to latest .NET 8 SDK and runtime. - Pin dotnet/aspnet container by SHA. - Configure dependabot to update the .NET 8 SDK in global.json and in the Dockerfile.
1 parent d95982f commit fc4bf13

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

.github/dependabot.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
version: 2
22
updates:
3+
- package-ecosystem: "docker"
4+
directory: "examples/net8.0/aspnetcore"
5+
schedule:
6+
interval: "weekly"
7+
day: "wednesday"
8+
ignore:
9+
- dependency-name: "*"
10+
update-types:
11+
- "version-update:semver-major"
12+
- "version-update:semver-minor"
13+
- package-ecosystem: "dotnet-sdk"
14+
directory: "/"
15+
schedule:
16+
interval: "weekly"
17+
day: "wednesday"
18+
ignore:
19+
- dependency-name: "*"
20+
update-types:
21+
- "version-update:semver-major"
22+
- "version-update:semver-minor"
323
- package-ecosystem: "github-actions"
424
directory: "/"
525
schedule:

examples/net8.0/aspnetcore/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0.410@sha256:b56053d0a8f4627047740941396e76cd9e7a9421c83b1d81b68f10e5019862d7 AS build
1+
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0.411@sha256:e6a5a8d884609907fa8d468b927df765967f6b22f890ce92bd3ae614ca4ae87e AS build
22
ARG TARGETARCH
33
ARG CONFIGURATION="Release"
44
ARG DOTNET_PUBLISH_ARGS=""
@@ -11,7 +11,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
1111
RUN --mount=type=cache,id=nuget,target=/root/.nuget/packages \
1212
dotnet publish "examples/net8.0/aspnetcore/aspnetcore.csproj" --arch "${TARGETARCH}" --configuration "${CONFIGURATION}" --output /app ${DOTNET_PUBLISH_ARGS}
1313

14-
FROM mcr.microsoft.com/dotnet/sdk:8.0.410@sha256:b56053d0a8f4627047740941396e76cd9e7a9421c83b1d81b68f10e5019862d7 AS final
14+
FROM mcr.microsoft.com/dotnet/aspnet:8.0.17@sha256:d5c0d91bc8fe887684b97d5409056270ed78cd23a5123436e842a8114a64d584 AS final
1515
WORKDIR /app
1616
EXPOSE 8080
1717

examples/net8.0/aspnetcore/aspnetcore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<ItemGroup>
1313
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.0.2" />
14-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.16" />
14+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.17" />
1515
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.20.1" />
1616
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.12.0" />
1717
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.12.0" />

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"sdk": {
33
"rollForward": "latestFeature",
4-
"version": "8.0.410",
4+
"version": "8.0.411",
55
"allowPrerelease": false
66
}
77
}

0 commit comments

Comments
 (0)