2021-03-12 10:24:15 +01:00
|
|
|
# Defines the tag for OBS and build script builds:
|
2021-03-16 21:14:21 +01:00
|
|
|
#!BuildTag: %%TAGPREFIX%%/cdi-uploadproxy:%%PKG_VERSION%%
|
|
|
|
#!BuildTag: %%TAGPREFIX%%/cdi-uploadproxy:%%PKG_VERSION%%.%RELEASE%
|
2021-03-12 10:24:15 +01:00
|
|
|
|
2021-03-12 15:55:48 +01:00
|
|
|
# cdi-uploadproxy container image
|
2021-03-16 21:14:21 +01:00
|
|
|
# KUBEVIRTFROM defined in prjconf, e.g.
|
|
|
|
# BuildFlags: dockerarg:KUBEVIRTFROM=opensuse/tumbleweed
|
|
|
|
ARG KUBEVIRTFROM
|
|
|
|
FROM $KUBEVIRTFROM
|
2021-03-12 10:24:15 +01:00
|
|
|
|
2021-03-16 21:14:21 +01:00
|
|
|
# labelprefix=%%LABELPREFIX%%
|
2021-03-12 10:24:15 +01:00
|
|
|
PREFIXEDLABEL org.opencontainers.image.title="CDI uploadproxy container"
|
|
|
|
PREFIXEDLABEL org.opencontainers.image.description="Upload proxy for the data fetching service for VM container images"
|
|
|
|
PREFIXEDLABEL org.opencontainers.image.created="%BUILDTIME%"
|
|
|
|
PREFIXEDLABEL org.opencontainers.image.version="%%PKG_VERSION%%.%RELEASE%"
|
|
|
|
PREFIXEDLABEL org.openbuildservice.disturl="%DISTURL%"
|
2021-03-16 21:14:21 +01:00
|
|
|
PREFIXEDLABEL org.opensuse.reference="%%TAGPREFIX%%/cdi-uploadproxy:%%PKG_VERSION%%.%RELEASE%"
|
2021-03-12 10:24:15 +01:00
|
|
|
|
|
|
|
RUN zypper update -y && \
|
|
|
|
zypper install -y \
|
|
|
|
containerized-data-importer-uploadproxy \
|
|
|
|
shadow && \
|
2021-03-16 21:14:21 +01:00
|
|
|
useradd -u 1001 --create-home -s /bin/bash cdi-uploadproxy
|
2021-03-12 10:24:15 +01:00
|
|
|
WORKDIR /home/cdi-uploadproxy
|
|
|
|
USER 1001
|
|
|
|
ENTRYPOINT [ "/usr/bin/virt-cdi-uploadproxy", "-alsologtostderr" ]
|