mirror of
https://github.com/yavook/kiwi-backup.git
synced 2024-12-04 12:02:59 +00:00
user creation
This commit is contained in:
parent
b78a20d912
commit
52befda4d8
2 changed files with 10 additions and 11 deletions
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
|
type: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: docker
|
- name: docker
|
||||||
|
|
20
Dockerfile
20
Dockerfile
|
@ -61,22 +61,20 @@ RUN set -ex; \
|
||||||
apk del --purge .build-deps; \
|
apk del --purge .build-deps; \
|
||||||
rm -rf "${USER}/.cargo";
|
rm -rf "${USER}/.cargo";
|
||||||
|
|
||||||
RUN set -ex; \
|
# create non-root user
|
||||||
\
|
RUN adduser -D -u 1368 duplicity;
|
||||||
# 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/;
|
|
||||||
|
|
||||||
USER duplicity
|
USER duplicity
|
||||||
|
|
||||||
VOLUME [ "/home/duplicity/.cache/duplicity" ]
|
|
||||||
|
|
||||||
# confirm this is working
|
|
||||||
RUN set -ex; \
|
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 \
|
ENV \
|
||||||
#################
|
#################
|
||||||
|
|
Loading…
Reference in a new issue