remove hard-coded uid 1000
Some checks failed
Sync with private repo / sync (push) Has been cancelled
Run tests / tests (3.12) (push) Has been cancelled
Run tests / tests (3.9) (push) Has been cancelled

This commit is contained in:
Florian du Garage Num 2025-09-30 21:47:30 +02:00
parent ae4e3f20ac
commit ab18396e89
3 changed files with 4 additions and 4 deletions

View File

@ -15,8 +15,8 @@ spec:
app.kubernetes.io/name: notes app.kubernetes.io/name: notes
spec: spec:
securityContext: securityContext:
runAsUser: 1000 runAsUser: {{ APP_USER_ID }}
runAsGroup: 1000 runAsGroup: {{ APP_USER_ID }}
containers: containers:
- name: notes - name: notes
image: {{ NOTES_DOCKER_IMAGE }} image: {{ NOTES_DOCKER_IMAGE }}

View File

@ -1 +1 @@
setowner 1000 /mounts/notes setowner {{ APP_USER_ID }} /mounts/notes

View File

@ -21,7 +21,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
RUN ln -s /usr/bin/python3 /usr/bin/python RUN ln -s /usr/bin/python3 /usr/bin/python
###### Git-clone Notes repo ###### ###### Git-clone Notes repo ######
ARG APP_USER_ID=1000 ARG APP_USER_ID={{ HOST_USER_ID }}
RUN useradd --home-dir /app --create-home --shell /bin/bash --uid ${APP_USER_ID} app RUN useradd --home-dir /app --create-home --shell /bin/bash --uid ${APP_USER_ID} app
USER ${APP_USER_ID} USER ${APP_USER_ID}