File Dockerfile of Package virt-exportserver-container
35
1
# SPDX-License-Identifier: Apache-2.0
2
3
# Define the tags for OBS and build script builds:
4
#!BuildTag: %%TAGPREFIX%%/virt-exportserver:%%PKG_VERSION%%
5
#!BuildTag: %%TAGPREFIX%%/virt-exportserver:%%PKG_VERSION%%.%RELEASE%
6
#!BuildTag: %%TAGPREFIX%%/virt-exportserver:%%PKG_VERSION%%-%%PKG_RELEASE%%
7
8
#!ExclusiveArch: x86_64
9
10
# virt-exportserver container image
11
# KUBEVIRTFROM defined in prjconf, e.g.
12
# BuildFlags: dockerarg:KUBEVIRTFROM=opensuse/tumbleweed
13
ARG KUBEVIRTFROM
14
FROM $KUBEVIRTFROM
15
16
# Mandatory labels for the build service:
17
# https://en.opensuse.org/Building_derived_containers
18
# labelprefix=%%LABELPREFIX%%
19
LABEL org.opencontainers.image.title="kubevirt virt-exportserver container"
20
LABEL org.opencontainers.image.description="HTTP server for the VirtualMachineExport resources"
21
LABEL org.opencontainers.image.created="%BUILDTIME%"
22
LABEL org.opencontainers.image.version="%%PKG_VERSION%%.%RELEASE%"
23
LABEL org.openbuildservice.disturl="%DISTURL%"
24
LABEL org.opensuse.reference="%%REGISTRY%%/%%TAGPREFIX%%/virt-exportserver:%%PKG_VERSION%%.%RELEASE%"
25
# endlabelprefix
26
27
RUN zypper -n install \
28
kubevirt-virt-exportserver \
29
system-user-qemu \
30
tar && \
31
zypper clean -a
32
33
USER 107
34
ENTRYPOINT [ "/usr/bin/virt-exportserver" ]
35