Skip to content

Commit 62e8dc5

Browse files
committed
Update docker and pipeline to .net 10
1 parent ef0ba37 commit 62e8dc5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ jobs:
255255
- name: Setup .NET SDK
256256
uses: actions/setup-dotnet@87b7050bc53ea08284295505d98d2aa94301e852 # v4.2.0
257257
with:
258-
dotnet-version: 8.0.x
258+
dotnet-version: 10.0.x
259259
- name: Execute Functional Tests
260260
run: |
261261
set -xe

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Contrast Security, Inc licenses this file to you under the Apache 2.0 License.
22
# See the LICENSE file in the project root for more information.
33

4-
FROM mcr.microsoft.com/dotnet/aspnet:8.0.22-bookworm-slim AS base
4+
FROM mcr.microsoft.com/dotnet/aspnet:10.0.0-noble AS base
55

66
# To aid in debugging.
77
RUN set -xe \
88
&& apt-get update \
99
&& apt-get install -y --no-install-recommends curl jq \
1010
&& apt-get clean && rm -rf /var/lib/apt/lists/*
1111

12-
FROM mcr.microsoft.com/dotnet/sdk:8.0.416-bookworm-slim AS build
12+
FROM mcr.microsoft.com/dotnet/sdk:10.0.100-noble AS build
1313
WORKDIR /source
1414

1515
# Restore
@@ -33,8 +33,8 @@ FROM base AS final
3333
WORKDIR /app
3434

3535
RUN set -xe \
36-
&& addgroup --gid 1000 operator-group \
37-
&& useradd -G operator-group --uid 1000 operator-user
36+
&& groupadd --gid 1001 operator-group \
37+
&& useradd -G operator-group --uid 1001 operator-user
3838

3939
COPY src/get-info.sh /get-info.sh
4040
COPY --from=build /app .
@@ -43,7 +43,7 @@ RUN set -xe \
4343
&& chown operator-user:operator-group -R . \
4444
&& chmod +x /get-info.sh
4545

46-
USER 1000
46+
USER 1001
4747

4848
ENV ASPNETCORE_URLS=https://+:5001 \
4949
ASPNETCORE_ENVIRONMENT=Production \

tests/performance-tests/Contrast.K8s.AgentOperator.Performance.ClusterFaker/Contrast.K8s.AgentOperator.Performance.ClusterFaker.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<Nullable>enable</Nullable>
77
</PropertyGroup>
88

99
<ItemGroup>
1010
<PackageReference Include="CommandLineParser" Version="2.9.1" />
1111
<PackageReference Include="AutoFixture" Version="4.18.1" />
1212
<PackageReference Include="Punchclock" Version="3.4.143" />
13-
<PackageReference Include="KubeOps.KubernetesClient" Version="9.5.0" />
13+
<PackageReference Include="KubeOps.KubernetesClient" Version="10.0.0" />
1414
</ItemGroup>
1515

1616
</Project>

0 commit comments

Comments
 (0)