Skip to content

Commit 99794de

Browse files
update
1 parent 2a8abca commit 99794de

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,13 @@ RUN curl -L -o /usr/local/bin/mc https://dl.min.io/client/mc/release/linux-amd64
5252
chmod +x /usr/local/bin/mc
5353

5454
# Create non-root user with specific UID/GID
55-
RUN addgroup --gid 1001 dev && \
56-
adduser --uid 1001 --ingroup dev --shell /bin/bash --home /home/dev --disabled-password dev && \
55+
RUN groupadd -g 1001 dev && \
56+
useradd -m -d /home/dev -s /bin/bash -g dev -u 1001 dev && \
5757
echo "dev ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
5858

5959
# Adjust permissions for /usr/local and home directories
6060
RUN chown -R dev:dev /usr/local /home/dev
6161

62-
RUN echo "+:dev:ALL" >> /etc/security/access.conf && touch /etc/nologin
63-
6462
# Switch to non-root user
6563
USER dev
6664

chart/templates/cm-sshconfig.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ data:
88
PermitRootLogin no
99
PasswordAuthentication yes
1010
ChallengeResponseAuthentication no
11-
UsePrivilegeSeparation no
1211
UsePAM yes
1312
X11Forwarding yes
1413
PrintMotd no

chart/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
replicaCount: 1
22

33
image:
4-
source: ghcr.io/syntax3rror404/k8s-devmachine@sha256:d0917c569a0ac6267cb7bc18a0d950dc97afaaf495f799637394a682be81e95e
4+
source: ghcr.io/syntax3rror404/k8s-devmachine@sha256:9e166d8c10c7f2c27c17027f4363a5862eb4241c8ebb5661b30845b0fc6d2bfd
55
pullPolicy: IfNotPresent
66

77
service:

0 commit comments

Comments
 (0)