-
Notifications
You must be signed in to change notification settings - Fork 485
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: security-secretstore-setup volume init semantics #4092
Conversation
fixes: edgexfoundry#3852 Signed-off-by: Valina Li <valina.li@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both of these commands should have been MOVED from the Dockerfile to the entrypoint script
&& mkdir -p /vault/config/assets \
&& chown -Rh 100:1000 /vault/
Signed-off-by: Valina Li <valina.li@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
# Setup the entry point script, create token dir, and assign perms | ||
COPY --from=builder /edgex-go/cmd/security-secretstore-setup/entrypoint.sh /usr/local/bin/ | ||
RUN chmod +x /usr/local/bin/entrypoint.sh \ | ||
&& ln -s /usr/local/bin/entrypoint.sh / \ | ||
&& mkdir -p /vault/config/assets \ | ||
&& chown -Rh 100:1000 /vault/ | ||
&& ln -s /usr/local/bin/entrypoint.sh / |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the comment in line 52 to fit the real implementation
Signed-off-by: Valina Li <valina.li@intel.com>
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fixes: #3852
Signed-off-by: Valina Li valina.li@intel.com
If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:
BREAKING CHANGE:
describing the break)Testing Instructions
New Dependency Instructions (If applicable)