-
Notifications
You must be signed in to change notification settings - Fork 10
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
Various fixes #1
base: main
Are you sure you want to change the base?
Conversation
Added github actions for shellcheck Made devcontainer.sh comply to shellcheck standards Added logic to devcontainer.sh to change user id and group id Added logic to replace the variables in devcontainer.json Added long option for docker run OPTIONS
…soft.com/vscode/devcontainers/base:alpine-3.12" image has it owned by 1000?
devcontainer.sh
Outdated
then \ | ||
sudo='' | ||
if [[ "$(stat -f -c '%u' $(which sudo))" = '0' ]]; then |
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.
For some reason the mcr.microsoft.com/vscode/devcontainers/base:alpine-3.12 image has sudo
owned by 1000
and therefore it cannot be used as root
|
||
# shellcheck disable=SC2086 | ||
docker run -it $DOCKER_OPTS $PORTS $ENVS $MOUNT -w "$WORK_DIR" "$DOCKER_TAG" "$SHELL" -c "\ |
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.
I run it like this: .devcontainer.sh -v --docker-opts="-u root"
ping @BorisWilhelms - is there a chance of review (merging/rejecting/commenting)? |
docker run
devcontainer.json
devcontainer.json
which has comments and trailing comma's in it to test withdevcontainer.json
(localWorkspaceFolderBasename and localWorkspaceFolder for now)chmod
+chown
when starting, just like Vs Code does