chore: remove workspace chown from dev init script + add warning when using root
This commit is contained in:
parent
49cf639f16
commit
9316429e0e
|
@ -1,4 +1,4 @@
|
|||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.236.0/containers/python-3/.devcontainer/base.Dockerfile
|
||||
# Based on image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.236.0/containers/python-3/.devcontainer/base.Dockerfile
|
||||
|
||||
# [Choice] Python version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.10, 3.9, 3.8, 3.7, 3.6, 3-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3.7-bullseye, 3.6-bullseye, 3-buster, 3.10-buster, 3.9-buster, 3.8-buster, 3.7-buster, 3.6-buster
|
||||
ARG VARIANT=3-bullseye
|
||||
|
|
|
@ -54,6 +54,7 @@ if [ $NEW_UID -gt 0 ]; then
|
|||
echo "GROUP ID: $NEW_GID"
|
||||
else
|
||||
echo "Running as root, will use default user/group mapping..."
|
||||
echo "NOT RECOMMENDED - You may experience permission issues."
|
||||
NEW_UID=1000
|
||||
NEW_GID=1000
|
||||
fi
|
||||
|
|
|
@ -8,7 +8,6 @@ sudo service rsyslog start
|
|||
echo "Fixing volumes ownership..."
|
||||
sudo chown -R vscode:vscode "$WORKSPACEDIR/.parcel-cache"
|
||||
sudo chown -R vscode:vscode "$WORKSPACEDIR/__pycache__"
|
||||
sudo chown -R vscode:vscode "$WORKSPACEDIR"
|
||||
|
||||
# Build node packages that requrie native compilation
|
||||
echo "Compiling native node packages..."
|
||||
|
|
Loading…
Reference in a new issue