From 802033b104907545850ed4f92c2db289fc70eac6 Mon Sep 17 00:00:00 2001 From: Marcel Zapf Date: Sun, 25 Aug 2024 03:00:49 +0200 Subject: [PATCH] update --- Dockerfile | 6 +++--- chart/values.yaml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 35e8b47..cd70cc2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,13 +51,13 @@ RUN python3 -m venv /usr/local/venv && \ RUN curl -L -o /usr/local/bin/mc https://dl.min.io/client/mc/release/linux-amd64/mc && \ chmod +x /usr/local/bin/mc -# Create non-root user with specific UID/GID +# Create dev user RUN groupadd -g 1001 dev && \ useradd -m -d /home/dev -s /bin/bash -g dev -u 1001 dev && \ - echo 'dev:*:17900:0:99999:7:::' >> /etc/shadow && \ + echo "dev:temporary" | chpasswd && \ + passwd -d dev && \ echo "dev ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers - # Adjust permissions for /usr/local and home directories RUN chown -R dev:dev /usr/local /home/dev diff --git a/chart/values.yaml b/chart/values.yaml index 23b87d5..bfc5dc6 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -1,7 +1,7 @@ replicaCount: 1 image: - source: ghcr.io/syntax3rror404/k8s-devmachine@sha256:0814c31aaeccf36a95c2a4c80635a56aaf64a392a0cb32d6efac342684da2e2d + source: ghcr.io/syntax3rror404/k8s-devmachine@sha256:4ca67768825b186a0639b8eb4d6936f311d50f757033896d8a0c2701afb759a0 pullPolicy: IfNotPresent service: @@ -20,7 +20,7 @@ ssh: authorizedKeys: | # Place auth keys here ... # ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu... - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBMGGOs2OYGxj74/TS3AXmbGNoVLQ07gCG5LXamlrd6HoZLPRkqwy2X1YS+9mWvINwH7FzvPnzd+5P5fxeLiYiwTIEXamlqQ53rnTvvgtS9Wl7fI/4MdlI2pNsAS3jm1KOzn/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