Skip to content

Commit b655c42

Browse files
committed
feat: remove kubelab-agent from sudoers file
Signed-off-by: Jan Lauber <[email protected]>
1 parent bf9ab35 commit b655c42

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ COPY favicon.ico /app/code-server/src/browser/media/favicon.ico
77
# add user sudo kubelab-agent with UUID 1001 and GID 1001 to sudoers and home directory /config
88
RUN useradd -u 1001 -U -d /config -s /bin/false kubelab-agent && \
99
usermod -G users kubelab-agent && \
10-
usermod -a -G kubelab-agent kubelab-agent && \
11-
usermod -a -G sudo kubelab-agent && \
12-
echo "kubelab-agent ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
10+
usermod -a -G kubelab-agent kubelab-agent
1311

1412
# replace abc with kubelab-agent in /etc/s6-overlay/s6-rc.d/init-code-server/run, /usr/local/bin/install-extension, /etc/s6-overlay/s6-rc.d/svc-code-server/run
1513
RUN sed -i 's/abc/kubelab-agent/g' /etc/s6-overlay/s6-rc.d/init-code-server/run

0 commit comments

Comments
 (0)