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

Use non-root user in Docker image #1439

Merged
merged 8 commits into from
Feb 28, 2024
Merged

Conversation

nguyer
Copy link
Contributor

@nguyer nguyer commented Jan 9, 2024

This PR updates the Dockerfile to build and run with a non-root user.

NOTE: This requires an updated firelfy-cli to pass E2E. Corresponding CLI changes can be found in the PR here: hyperledger/firefly-cli#281 which is why this PR still references that specific commit.

TODO:

@nguyer nguyer requested a review from a team as a code owner January 9, 2024 21:38
@codecov-commenter
Copy link

codecov-commenter commented Jan 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.99%. Comparing base (c36ccb6) to head (45940ce).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1439   +/-   ##
=======================================
  Coverage   99.99%   99.99%           
=======================================
  Files         322      322           
  Lines       23300    23300           
=======================================
  Hits        23298    23298           
  Misses          1        1           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
Copy link
Contributor

@peterbroadhurst peterbroadhurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved - but not merging due to comment above about reconciling the TODO

manifest.json Outdated
@@ -59,6 +59,6 @@
"release": "v1.2.0"
},
"cli": {
"tag": "v1.2.1"
"tag": "14387a519ef794e41b85c039e40ddc419fd5967a"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a quick sanity check on this against the TODO in the comment, before merg

Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
@nguyer nguyer merged commit b051be3 into hyperledger:main Feb 28, 2024
14 checks passed
@nguyer nguyer deleted the docker-user branch February 28, 2024 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants