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(devcontainer): Add root user permissions for docker image build #167

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

LinnJS
Copy link
Member

@LinnJS LinnJS commented Nov 20, 2024

Description

When I cloned the repo and tried to build the devcontainer I experienced an error failing the build. The error described pointed to a permissions issue while installing the container dependancies. Setting the USER to root in the docker image build fixes this issue.

Added a non-root user to switch to after dependancies are installed to reduce privileges in the running container for enhanced security.

Pull request checklist

  • My code contains tests covering the code I modified (Not applicable)
  • I linted and tested the project with bin/check
  • I added significant changes and product updates to the changelog (Not applicable)

Error Screenshot

Screenshot 2024-11-19 at 10 01 28 PM

@LinnJS LinnJS marked this pull request as draft November 20, 2024 03:04
@LinnJS
Copy link
Member Author

LinnJS commented Nov 20, 2024

Not sure if its a issue with my PR or a existing issue but getting weird behavior when running bin/check.

In devcontainer I get an error complaining about DB not existing when it does exist locally.
Screenshot 2024-11-19 at 10 37 12 PM

When running locally it hands on one e2e forever it seems.
Screenshot 2024-11-19 at 10 35 55 PM

@LinnJS LinnJS marked this pull request as ready for review November 20, 2024 03:41
@malexander15 malexander15 requested review from malexander15 and chtzvt and removed request for malexander15 November 20, 2024 17:50
Copy link
Contributor

@malexander15 malexander15 left a comment

Choose a reason for hiding this comment

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

Looks good. Tested it in codespaces and seems to be working on my end.

@malexander15 malexander15 merged commit 1f47aaf into TampaDevs:main Nov 21, 2024
1 check passed
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.

2 participants