Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit ec95fdb

Browse files
committed
Minimize comments (CI Ignore)
1 parent c327af9 commit ec95fdb

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
lines changed

containers/javascript-node-mongo/.devcontainer/Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
ARG VARIANT=12
33
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT}
44

5-
# This Dockerfile adds a non-root user with sudo access. Update the “remoteUser” property in
6-
# devcontainer.json to use it. More info: https://aka.ms/vscode-remote/containers/non-root-user.
7-
ARG USERNAME=node
5+
# Update args in docker-compose.yaml to set the UID/GID of the "node" user.
86
ARG USER_UID=1000
97
ARG USER_GID=$USER_UID
108
RUN if [ "$USER_GID" != "1000" ] || [ "$USER_UID" != "1000" ]; then \
11-
groupmod --gid $USER_GID $USERNAME \
12-
&& usermod --uid $USER_UID --gid $USER_GID $USERNAME \
13-
&& chmod -R $USER_UID:$USER_GID /home/$USERNAME \
9+
groupmod --gid $USER_GID node \
10+
&& usermod --uid $USER_UID --gid $USER_GID node \
11+
&& chmod -R $USER_UID:$USER_GID /home/node \
1412
&& chmod -R $USER_UID:root /usr/local/share/nvm /usr/local/share/npm-global; \
1513
fi
1614

containers/javascript-node-postgres/.devcontainer/Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
ARG VARIANT=12
33
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT}
44

5-
# This Dockerfile adds a non-root user with sudo access. Update the “remoteUser” property in
6-
# devcontainer.json to use it. More info: https://aka.ms/vscode-remote/containers/non-root-user.
7-
ARG USERNAME=node
5+
# Update args in docker-compose.yaml to set the UID/GID of the "node" user.
86
ARG USER_UID=1000
97
ARG USER_GID=$USER_UID
108
RUN if [ "$USER_GID" != "1000" ] || [ "$USER_UID" != "1000" ]; then \
11-
groupmod --gid $USER_GID $USERNAME \
12-
&& usermod --uid $USER_UID --gid $USER_GID $USERNAME \
13-
&& chmod -R $USER_UID:$USER_GID /home/$USERNAME \
9+
groupmod --gid $USER_GID node \
10+
&& usermod --uid $USER_UID --gid $USER_GID node \
11+
&& chmod -R $USER_UID:$USER_GID /home/node \
1412
&& chmod -R $USER_UID:root /usr/local/share/nvm /usr/local/share/npm-global; \
1513
fi
1614

containers/python-3-postgres/.devcontainer/Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:${VARIANT}
44

55
ENV PYTHONUNBUFFERED 1
66

7-
# This Dockerfile adds a non-root user with sudo access. Update the “remoteUser” property in
8-
# devcontainer.json to use it. More info: https://aka.ms/vscode-remote/containers/non-root-user.
9-
ARG USERNAME=vscode
7+
# Update args in docker-compose.yaml to set the UID/GID of the "vscode" user.
108
ARG USER_UID=1000
119
ARG USER_GID=$USER_UID
1210
RUN if [ "$USER_GID" != "1000" ] || [ "$USER_UID" != "1000" ]; then \
13-
groupmod --gid $USER_GID $USERNAME \
14-
&& usermod --uid $USER_UID --gid $USER_GID $USERNAME \
15-
&& chmod -R $USER_UID:$USER_GID /home/$USERNAME; \
11+
groupmod --gid $USER_GID vscode \
12+
&& usermod --uid $USER_UID --gid $USER_GID vscode \
13+
&& chmod -R $USER_UID:$USER_GID /home/vscode; \
1614
fi
1715

1816
# [Optional] If your requirements rarely change, uncomment this section to add them to the image.

0 commit comments

Comments
 (0)