Skip to content

Commit 94fd312

Browse files
committed
prepare conf for azurelinux
1 parent 35d6d3e commit 94fd312

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

scenarios/tls.benchmarks.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,22 @@ scenarios:
208208
- OPENSSL_VERSION="3.0.15-r1"
209209
# lookup for openssl+branch version here https://pkgs.alpinelinux.org/packages?name=openssl&branch=v3.20&repo=&arch=x86_64
210210
- ALPINE_BRANCH="v3.17"
211+
load:
212+
job: httpclient
213+
variables:
214+
path: /hello-world
215+
serverPort: 8080
216+
presetHeaders: connectionclose
217+
connections: 32
218+
serverScheme: https
219+
sslProtocol: tls12
220+
221+
tls-handshakes-docker-azurelinux:
222+
application:
223+
job: dockerLinuxKestrelServer
224+
variables:
225+
# openssl version is already pre-installed with base image
226+
dockerFile: dockerKestrel/src/BenchmarksApps/TLS/Kestrel/Dockerfile.azurelinux
211227
load:
212228
job: httpclient
213229
variables:
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS base
2+
USER root
3+
WORKDIR /app
4+
EXPOSE 8080
5+
EXPOSE 8081
6+
7+
# This stage is used to build the service project
8+
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
9+
ARG BUILD_CONFIGURATION=Release
10+
WORKDIR /src
11+
COPY ["Kestrel.csproj", "."]
12+
RUN dotnet restore "./Kestrel.csproj"
13+
COPY . .
14+
WORKDIR "/src/."
15+
RUN dotnet build "./Kestrel.csproj" -c $BUILD_CONFIGURATION -o /app/build
16+
17+
# This stage is used to publish the service project to be copied to the final stage
18+
FROM build AS publish
19+
ARG BUILD_CONFIGURATION=Release
20+
RUN dotnet publish "./Kestrel.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
21+
22+
# This stage is used in production or when running from VS in regular mode
23+
FROM base AS final
24+
WORKDIR /app
25+
COPY --from=publish /app/publish .
26+
27+
ENTRYPOINT [ "dotnet", "Kestrel.dll" ]

0 commit comments

Comments
 (0)