1
0
Fork 0
mirror of https://github.com/yavook/kiwi-backup.git synced 2024-12-03 11:33:01 +00:00

user creation

This commit is contained in:
Jörn-Michael Miehe 2022-03-02 02:39:19 +01:00
parent b78a20d912
commit 52befda4d8
2 changed files with 10 additions and 11 deletions

View file

@ -1,6 +1,7 @@
---
kind: pipeline
name: default
type: docker
steps:
- name: docker

View file

@ -61,22 +61,20 @@ RUN set -ex; \
apk del --purge .build-deps; \
rm -rf "${USER}/.cargo";
RUN set -ex; \
\
# create non-root user
adduser -D -u 1368 duplicity; \
mkdir -p /home/duplicity/.cache/duplicity; \
mkdir -p /home/duplicity/.gnupg; \
chmod -R go+rwx /home/duplicity/;
# create non-root user
RUN adduser -D -u 1368 duplicity;
USER duplicity
VOLUME [ "/home/duplicity/.cache/duplicity" ]
# confirm this is working
RUN set -ex; \
\
duplicity --version
mkdir -p "${HOME}/.cache/duplicity"; \
mkdir -pm 600 "${HOME}/.gnupg";
VOLUME [ "/home/duplicity/.cache/duplicity" ]
# confirm duplicity is working
RUN duplicity --version
ENV \
#################