cdi-uploadproxy-container/Dockerfile
James Fehlig 76453be6d2 Accepting request 879460 from home:vulyanov:branches:Virtualization
- Use virt-containers-meta script to populate the env

- Fix is_opensuse macro expansion

- Remove debug print from _service script

- Use KUBEVIRTFROM to set the base image
- Rename %%PREFIX%% placeholder to %%TAGPREFIX%%

- Add placeholder vars to be replaced during build

OBS-URL: https://build.opensuse.org/request/show/879460
OBS-URL: https://build.opensuse.org/package/show/Virtualization/cdi-uploadproxy-container?expand=0&rev=3
2021-03-16 20:14:21 +00:00

27 lines
1.1 KiB
Docker

# Defines the tag for OBS and build script builds:
#!BuildTag: %%TAGPREFIX%%/cdi-uploadproxy:%%PKG_VERSION%%
#!BuildTag: %%TAGPREFIX%%/cdi-uploadproxy:%%PKG_VERSION%%.%RELEASE%
# cdi-uploadproxy container image
# KUBEVIRTFROM defined in prjconf, e.g.
# BuildFlags: dockerarg:KUBEVIRTFROM=opensuse/tumbleweed
ARG KUBEVIRTFROM
FROM $KUBEVIRTFROM
# labelprefix=%%LABELPREFIX%%
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%"
PREFIXEDLABEL org.opensuse.reference="%%TAGPREFIX%%/cdi-uploadproxy:%%PKG_VERSION%%.%RELEASE%"
RUN zypper update -y && \
zypper install -y \
containerized-data-importer-uploadproxy \
shadow && \
useradd -u 1001 --create-home -s /bin/bash cdi-uploadproxy
WORKDIR /home/cdi-uploadproxy
USER 1001
ENTRYPOINT [ "/usr/bin/virt-cdi-uploadproxy", "-alsologtostderr" ]