From 5ff3589fc90ff0f35f19c6c7f0ec37be7106068a Mon Sep 17 00:00:00 2001 From: Jose Henrique Date: Sun, 28 Jun 2026 15:22:10 -0300 Subject: [PATCH] fix(notepad): override entrypoint to skip chown on NFS-mounted _tmp The notepad container's entrypoint runs chown -R www-data:www-data on /var/www/html/_tmp, which fails because the NFS export on nebula uses all_squash with anonuid=65534. Override the command to skip chown and just create the dir + copy .htaccess before starting apache. --- default/notepad.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/default/notepad.yaml b/default/notepad.yaml index 8adc8c9..37eafb1 100644 --- a/default/notepad.yaml +++ b/default/notepad.yaml @@ -19,6 +19,16 @@ spec: - name: notepad image: jdreinhardt/minimalist-web-notepad:latest imagePullPolicy: Always + # The image entrypoint runs `chown -R www-data:www-data` on the NFS-mounted + # _tmp dir, which fails because the NFS export uses all_squash (anonuid=65534). + # Override the entrypoint to skip chown — ownership is handled by the NFS server. + command: + - sh + - -c + - >- + mkdir -p /var/www/html/_tmp && + cp -n /var/www/html/notes.htaccess /var/www/html/_tmp/.htaccess 2>/dev/null; + exec docker-php-entrypoint apache2-foreground ports: - containerPort: 80 volumeMounts: