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

Inability to interact with git/code both locally and in devcontainer #357

Open
texhnolyze opened this issue Mar 16, 2024 · 0 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers tooling

Comments

@texhnolyze
Copy link
Contributor

Summary

The vscode devcontainer uses root, which can lead to permission issues when also interacting with the repo/code locally.

Expected behavior

I want to be able to edit files locally and also commit locally and not only in the devcontainer, because I might have some tooling which is easier to use locally on the host and not in the container.

Current behavior

Currently, our devcontainer is running as root, which makes handling of a lot of things quite a bit easier during setup.
But it leads to the issue, that when commiting/editing all changes of the mounted directory will be done as the root user.
This leads to inability to commit or interact with the code locally without also using the root user on the host.

Possible Solution

Setup of user in Dockerfile with "$(id -u):$(id -g)" and setup of passwordless sudo access in /etc/sudoers or /etc/sudoers.d/*

@texhnolyze texhnolyze added the bug Something isn't working label Mar 16, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in Software Mar 16, 2024
@texhnolyze texhnolyze added enhancement New feature or request good first issue Good for newcomers tooling and removed bug Something isn't working labels Mar 16, 2024
@jaagut jaagut moved this from 🆕 New to 🔖 Ready in Software Mar 17, 2024
@timonegk timonegk moved this from 🔖 Ready to 🏗 In progress in Software May 2, 2024
@jaagut jaagut moved this from 🏗 In progress to 👀 In review in Software Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers tooling
Projects
Status: 👀 In review
Development

No branches or pull requests

1 participant