Skip to content

Commit

Permalink
Fix accountingservice container for non-root users (#1696)
Browse files Browse the repository at this point in the history
* Fix accountingservice container for non-root users

Signed-off-by: Israel Blancas <[email protected]>

* Add changelog entry

Signed-off-by: Israel Blancas <[email protected]>

* Fix lint

Signed-off-by: Israel Blancas <[email protected]>

* Update src/accountingservice/Dockerfile

Co-authored-by: Roger Coll <[email protected]>

---------

Signed-off-by: Israel Blancas <[email protected]>
Co-authored-by: Roger Coll <[email protected]>
Co-authored-by: Mikko Viitanen <[email protected]>
  • Loading branch information
3 people authored Aug 13, 2024
1 parent 8ea2091 commit afa49c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ the release.

## Unreleased

* [accountingservice] allow running the container with non root user
([#1692](https://github.com/open-telemetry/opentelemetry-demo/pull/1692))

## 1.11.1

* [otel-col] Add docker stats receiver
Expand Down
1 change: 1 addition & 0 deletions src/accountingservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ COPY --from=publish /app/publish .
USER root
RUN mkdir -p "/var/log/opentelemetry/dotnet"
RUN chown app "/var/log/opentelemetry/dotnet"
RUN chown app "/app/instrument.sh"
USER app

ENTRYPOINT ["./instrument.sh", "dotnet", "AccountingService.dll"]

0 comments on commit afa49c0

Please sign in to comment.