Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dotnet): cover dotnet container requirements #42

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dotnet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ FROM build AS publish
RUN dotnet publish "demo.csproj" -c Release -o /app/publish

FROM base AS final
ENV DOTNET_EnableWriteXorExecute=0
ENV DOTNET_PerfMapEnabled=1
ENV DOTNET_EnableEventLog=1
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "demo.dll"]
2 changes: 1 addition & 1 deletion dotnet/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# .NET

See https://learn.microsoft.com/en-us/dotnet/core/runtime-config/debugging-profiling#export-perf-maps
See https://learn.microsoft.com/en-us/dotnet/core/diagnostics/diagnostics-in-containers#using-perfcollect-in-a-container
3 changes: 3 additions & 0 deletions dotnet/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ spec:
limits:
cpu: '100m'
memory: '256Mi'
securityContext:
capabilities:
- SYS_ADMIN