Hi Johannes,
Johannes Kastl
Hi all,
I wanted to try out building a distrobox image on OBS. I took Richard's repository as a blueprint:
https://build.opensuse.org/project/show/home:RBrownSUSE:containers
Is there any documentation on how to use the BuildTags and the labels?
The only thing that I am aware of is this wiki page: https://en.opensuse.org/Building_derived_containers And then there's my talk from the openSUSE Conference 2023: https://www.youtube.com/watch?v=d9LTLzoJzJE (slides are here: https://github.com/dcermak/building-containers-in-obs)
Especially if the container images are not supposed to end up in the official repos, but should stay in "my" home namespace?
My current state is this, which fails. I am not interested in just solving this error, but would like to know what all of these do and how I should set them for a home-spaced image...
# SPDX-License-Identifier: MIT #!BuildTag: opensuse/distrobox-johanneskastl:latest #!BuildTag: opensuse/distrobox-johanneskastl:%%PKG_VERSION%% #!BuildTag: opensuse/distrobox-johanneskastl:%%PKG_VERSION%%.%RELEASE%
FROM opensuse/distrobox:latest LABEL maintainer="Johannes Kastl
" # labelprefix=org.opensuse.distrobox PREFIXEDLABEL org.opencontainers.image.title="Distrobox johanneskastl container" PREFIXEDLABEL org.opencontainers.image.description="Distrobox johanneskastl container" PREFIXEDLABEL org.opencontainers.image.created="%BUILDTIME%" PREFIXEDLABEL org.opencontainers.image.version="%%PKG_VERSION%%.%RELEASE%" PREFIXEDLABEL org.opencontainers.image.vendor="openSUSE Project" PREFIXEDLABEL org.openbuildservice.disturl="%DISTURL%" PREFIXEDLABEL org.opensuse.reference="registry.opensuse.org/opensuse/distrobox-johanneskastl:%%PKG_VERSION%%.%RELEASE%"
Thanks in advance and have a nice day!
I guess you might missing the docker label helper service and the
replace-using-package-version service to substitute `%%PKG_VERSION%%`
and `%RELEASE%`.
Cheers,
Dan
--
Dan Čermák