File tree Expand file tree Collapse file tree 3 files changed +66
-5
lines changed
src/BenchmarksApps/TLS/Kestrel Expand file tree Collapse file tree 3 files changed +66
-5
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ jobs:
34
34
statsEnabled : false
35
35
arguments : " --urls https://{{serverAddress}}:{{serverPort}} --mTLS {{mTLS}} --certValidationConsoleEnabled {{certValidationConsoleEnabled}} --statsEnabled {{statsEnabled}} --tlsRenegotiation {{tlsRenegotiation}}"
36
36
37
- linuxDockerKestrelServer :
37
+ dockerLinuxKestrelServer :
38
38
sources :
39
39
dockerKestrel :
40
40
repository : https://github.com/deaglegross/benchmarks.git
41
41
branchOrCommit : dmkorolev/idna/openssl-versioning
42
- dockerFile : dockerKestrel/src/BenchmarksApps/TLS/Kestrel/Dockerfile
42
+ dockerFile : dockerKestrel/src/BenchmarksApps/TLS/Kestrel/Dockerfile.default
43
43
dockerImageName : kestrel
44
44
dockerContextDirectory : dockerKestrel/src/BenchmarksApps/TLS/Kestrel
45
45
port : 8080
50
50
mTLS : false
51
51
tlsRenegotiation : false
52
52
certValidationConsoleEnabled : false
53
- statsEnabled : false
53
+ statsEnabled : false
54
54
55
55
scenarios :
56
56
@@ -152,9 +152,25 @@ scenarios:
152
152
certPwd : testPassword
153
153
154
154
# Kestrel in Docker
155
- tls-handshakes-linux-docker :
155
+ tls-handshakes-docker-openssl-default :
156
+ application :
157
+ job : linuxDockerKestrelServer
158
+ variables :
159
+ dockerFile : dockerKestrel/src/BenchmarksApps/TLS/Kestrel/Dockerfile.default
160
+ load :
161
+ job : httpclient
162
+ variables :
163
+ path : /hello-world
164
+ serverPort : 8080
165
+ presetHeaders : connectionclose
166
+ connections : 32
167
+ serverScheme : https
168
+
169
+ tls-handshakes-docker-openssl-111 :
156
170
application :
157
171
job : linuxDockerKestrelServer
172
+ variables :
173
+ dockerFile : dockerKestrel/src/BenchmarksApps/TLS/Kestrel/Dockerfile.openssl111
158
174
load :
159
175
job : httpclient
160
176
variables :
Original file line number Diff line number Diff line change 1
1
# This stage is used when running from VS in fast mode (Default for Debug configuration)
2
2
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
3
- USER $APP_UID
3
+ USER root
4
4
WORKDIR /app
5
5
EXPOSE 8080
6
6
EXPOSE 8081
Original file line number Diff line number Diff line change
1
+ # This stage is used when running from VS in fast mode (Default for Debug configuration)
2
+ FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
3
+ USER root
4
+ WORKDIR /app
5
+ EXPOSE 8080
6
+ EXPOSE 8081
7
+
8
+ # install wget to download openssl
9
+ RUN apt-get update && apt-get install -y wget
10
+ # install perl as openssl dependency
11
+ RUN apt-get update && apt-get install -y perl
12
+ # install build-essential to get make and other build tools
13
+ RUN apt-get update && apt-get install -y build-essential
14
+
15
+ # install openssl 1.1.1
16
+ RUN wget -O - https://www.openssl.org/source/openssl-1.1.1w.tar.gz | tar zxf -; \
17
+ cd openssl-1.1.1w; \
18
+ ./config; \
19
+ make install_sw; \
20
+ ldconfig
21
+
22
+ # Update PATH to prioritize the newly installed OpenSSL 1.1.1
23
+ ENV PATH="/usr/local/bin:$PATH"
24
+
25
+ # This stage is used to build the service project
26
+ FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
27
+ ARG BUILD_CONFIGURATION=Release
28
+ WORKDIR /src
29
+ COPY ["Kestrel.csproj", "."]
30
+ RUN dotnet restore "./Kestrel.csproj"
31
+ COPY . .
32
+ WORKDIR "/src/."
33
+ RUN dotnet build "./Kestrel.csproj" -c $BUILD_CONFIGURATION -o /app/build
34
+
35
+ # This stage is used to publish the service project to be copied to the final stage
36
+ FROM build AS publish
37
+ ARG BUILD_CONFIGURATION=Release
38
+ RUN dotnet publish "./Kestrel.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
39
+
40
+ # This stage is used in production or when running from VS in regular mode (Default when not using the Debug configuration)
41
+ FROM base AS final
42
+ WORKDIR /app
43
+ COPY --from=publish /app/publish .
44
+
45
+ ENTRYPOINT [ "dotnet", "Kestrel.dll" ]
You can’t perform that action at this time.
0 commit comments