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

Update devcontainer with java and non-root user #776

Merged
merged 5 commits into from
Nov 4, 2024

Conversation

bsherwin
Copy link
Contributor

Type of PR

  • Code changes

Purpose

Fix issue #644 - Devcontainer failing with unsupported JDK
Fix issue #646 - Devcontainer changes file ownership in linux/wsl
Updates devcontainer to bring Critical and High CVE vulnerabilities reported to zero

Does this introduce a breaking change? If yes, details on what can break

No

Validation steps

  • Clone branch
  • Open VSCode folder in DevContainer
  • In devcontainer terminal prompt, verify java version: java -version
  • In devcontainer terminal prompt, run the command touch test.file
  • In local WSL prompt, navigate to /mnt/.../e2e_samples/parking_sensors (replace "..." with location where you cloned the code)
  • Validate you can edit the test.file without requiring root permission.

Issues Closed or Referenced

@bsherwin
Copy link
Contributor Author

@StromFLIX and @cpeeyush: Given you submitted PRs over a year ago, I wanted to include you in the review request. We did a few more updates given CVE vulnerabilities, but your changes/suggestions should be represented in the PR updates. We welcome any feedback from you.

Copy link
Contributor

@ydaponte ydaponte left a comment

Choose a reason for hiding this comment

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

The container started successfully. I left some comments to address and let's have a quick call on the postcreate.sh execution when you read this! Thanks for fixing it!

e2e_samples/parking_sensors/.devcontainer/Dockerfile Outdated Show resolved Hide resolved
},
"remoteUser": "mdwuser",
"postCreateCommand": "./.devcontainer/post_create.sh"
Copy link
Contributor

Choose a reason for hiding this comment

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

While testing and I get to the post_create.sh command I get the following error:
postCreateCommandfailed with exit code 127. Skipping any further user-provided commands.
Did you also have this problem? Maybe is just a problem on my side, but I would like to confirm with you.

Copy link
Contributor

@ydaponte ydaponte left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for addressing the comments!

@bsherwin bsherwin merged commit 210621a into feat/e2e-dbx-sample-updates Nov 4, 2024
1 check passed
@bsherwin bsherwin deleted the brsherwi/devcontainer branch November 4, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants