2021-03-12 10:25:22 +01:00
|
|
|
# Defines the tag for OBS and build script builds:
|
2021-03-16 21:17:42 +01:00
|
|
|
#!BuildTag: %%TAGPREFIX%%/cdi-uploadserver:%%PKG_VERSION%%
|
|
|
|
#!BuildTag: %%TAGPREFIX%%/cdi-uploadserver:%%PKG_VERSION%%.%RELEASE%
|
2021-05-04 17:33:27 +02:00
|
|
|
#!BuildTag: %%TAGPREFIX%%/cdi-uploadserver:%%PKG_VERSION%%-%%PKG_RELEASE%%
|
2021-03-12 10:25:22 +01:00
|
|
|
|
2021-03-12 15:54:58 +01:00
|
|
|
# cdi-uploadserver container image
|
2021-03-16 21:17:42 +01:00
|
|
|
# KUBEVIRTFROM defined in prjconf, e.g.
|
|
|
|
# BuildFlags: dockerarg:KUBEVIRTFROM=opensuse/tumbleweed
|
|
|
|
ARG KUBEVIRTFROM
|
|
|
|
FROM $KUBEVIRTFROM
|
2021-03-12 10:25:22 +01:00
|
|
|
|
2021-03-16 21:17:42 +01:00
|
|
|
# labelprefix=%%LABELPREFIX%%
|
2021-03-12 10:25:22 +01:00
|
|
|
PREFIXEDLABEL org.opencontainers.image.title="CDI upload server container"
|
|
|
|
PREFIXEDLABEL org.opencontainers.image.description="Upload server 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-06-08 14:39:40 +02:00
|
|
|
PREFIXEDLABEL org.opensuse.reference="%%REGISTRY%%/%%TAGPREFIX%%/cdi-uploadserver:%%PKG_VERSION%%.%RELEASE%"
|
2021-03-12 10:25:22 +01:00
|
|
|
|
2021-04-26 19:14:34 +02:00
|
|
|
RUN zypper -n install \
|
2021-03-12 10:25:22 +01:00
|
|
|
qemu-tools qemu-block-curl tar util-linux \
|
2021-04-26 19:14:34 +02:00
|
|
|
containerized-data-importer-uploadserver && \
|
|
|
|
zypper clean -a
|
2021-03-12 10:25:22 +01:00
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/bin/virt-cdi-uploadserver", "-alsologtostderr" ]
|