Accepting request 1010512 from home:vulyanov:branches:Virtualization

- Create an unprivileged user to run as non-root
- Align the installed packages with the upstream

OBS-URL: https://build.opensuse.org/request/show/1010512
OBS-URL: https://build.opensuse.org/package/show/Virtualization/cdi-uploadserver-container?expand=0&rev=14
This commit is contained in:
Vasily Ulyanov 2022-10-13 16:56:03 +00:00 committed by Git OBS Bridge
parent a181949b6b
commit 9d7ca3f5b7
2 changed files with 17 additions and 3 deletions

View File

@ -23,8 +23,16 @@ LABEL org.opensuse.reference="%%REGISTRY%%/%%TAGPREFIX%%/cdi-uploadserver:%%PKG_
# endlabelprefix
RUN zypper -n install \
qemu-tools qemu-block-curl tar util-linux \
containerized-data-importer-uploadserver && \
zypper clean -a
containerized-data-importer-uploadserver \
curl \
libnbd \
qemu-tools \
shadow \
tar \
util-linux && \
zypper clean -a && \
useradd -u 1001 --create-home -s /bin/bash cdi-uploadserver
WORKDIR /home/cdi-uploadserver
USER 1001
ENTRYPOINT [ "/usr/bin/virt-cdi-uploadserver", "-alsologtostderr" ]

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Oct 13 14:52:40 UTC 2022 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Create an unprivileged user to run as non-root
- Align the installed packages with the upstream
-------------------------------------------------------------------
Thu Aug 4 07:48:37 UTC 2022 - Vasily Ulyanov <vasily.ulyanov@suse.com>