Skip to content

Commit acb37ab

Browse files
committed
Fix onCreateCommand; Update Dockerfiles
- Add user vscode to group users in Dockerfile
1 parent 22c0d9a commit acb37ab

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

.devcontainer/Julia.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ RUN if [ "$(command -v unminimize)" ] && [ -n "$UNMINIMIZE" ]; then \
5858
fi
5959

6060
RUN dpkgArch="$(dpkg --print-architecture)" \
61+
## Add user vscode to group users
62+
&& sed -i- 's/users:x:100:/users:x:100:vscode/g' /etc/group \
6163
## Ensure that common CA certificates
6264
## and OpenSSL libraries are up to date
6365
&& apt-get update \

.devcontainer/Mojo.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ RUN if [ "$(command -v unminimize)" ] && [ -n "$UNMINIMIZE" ]; then \
6060
fi
6161

6262
RUN dpkgArch="$(dpkg --print-architecture)" \
63+
## Add user vscode to group users
64+
&& sed -i- 's/users:x:100:/users:x:100:vscode/g' /etc/group \
6365
## Ensure that common CA certificates
6466
## and OpenSSL libraries are up to date
6567
&& apt-get update \

.devcontainer/Python.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ RUN if [ "$(command -v unminimize)" ] && [ -n "$UNMINIMIZE" ]; then \
5555
fi
5656

5757
RUN dpkgArch="$(dpkg --print-architecture)" \
58+
## Add user vscode to group users
59+
&& sed -i- 's/users:x:100:/users:x:100:vscode/g' /etc/group \
5860
## Ensure that common CA certificates
5961
## and OpenSSL libraries are up to date
6062
&& apt-get update \

.devcontainer/R.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ RUN if [ -n "${RSTUDIO_VERSION}" ]; then \
136136
fi
137137

138138
RUN dpkgArch="$(dpkg --print-architecture)" \
139+
## Add user vscode to group users
140+
&& sed -i- 's/users:x:100:/users:x:100:vscode/g' /etc/group \
139141
## Ensure that common CA certificates
140142
## and OpenSSL libraries are up to date
141143
&& apt-get update \

.devcontainer/scripts/usr/local/bin/onCreateCommand.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44

55
set -e
66

7-
# Add user to group users
8-
sudo usermod -a -G users "$(id -un)"
9-
newgrp users
10-
117
# Create user's private bin
128
mkdir -p "$HOME/.local/bin"
139

0 commit comments

Comments
 (0)