mirror of
https://github.com/rocky-linux/sig-cloud-instance-images.git
synced 2024-12-18 15:18:35 +00:00
Use OCI annotations for 2nd layer images (#47)
This commit is contained in:
parent
be04407560
commit
47db325810
3
.github/workflows/build-2nd-layer.yml
vendored
3
.github/workflows/build-2nd-layer.yml
vendored
@ -55,7 +55,8 @@ jobs:
|
|||||||
./Containerfile-${{ matrix.type }}
|
./Containerfile-${{ matrix.type }}
|
||||||
labels: |
|
labels: |
|
||||||
name=rockylinux
|
name=rockylinux
|
||||||
version=${{ matrix.version.major }}-ubi-${{ matrix.type }}
|
org.opencontainers.image.title=rockylinux
|
||||||
|
org.opencontainers.image.version=${{ matrix.version.major }}-ubi-${{ matrix.type }}
|
||||||
oci: true
|
oci: true
|
||||||
tags: ${{ matrix.registry.domain }}/${{ matrix.registry.account }}/rockylinux:${{ matrix.version.major }}-ubi-${{ matrix.type }}
|
tags: ${{ matrix.registry.domain }}/${{ matrix.registry.account }}/rockylinux:${{ matrix.version.major }}-ubi-${{ matrix.type }}
|
||||||
|
|
||||||
|
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -43,6 +43,7 @@ jobs:
|
|||||||
./Containerfile-${{ matrix.type }}
|
./Containerfile-${{ matrix.type }}
|
||||||
labels: |
|
labels: |
|
||||||
name=rockylinux
|
name=rockylinux
|
||||||
version=${{ matrix.version.major }}-ubi-${{ matrix.type }}
|
org.opencontainers.image.title=rockylinux
|
||||||
|
org.opencontainers.image.version=${{ matrix.version.major }}-ubi-${{ matrix.type }}
|
||||||
oci: true
|
oci: true
|
||||||
tags: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_ACCOUNT }}/rockylinux:${{ matrix.version.major }}-ubi-${{ matrix.type }}
|
tags: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_ACCOUNT }}/rockylinux:${{ matrix.version.major }}-ubi-${{ matrix.type }}
|
||||||
|
@ -2,9 +2,12 @@ ARG ImageVersion
|
|||||||
|
|
||||||
FROM rockylinux/rockylinux:$ImageVersion-ubi
|
FROM rockylinux/rockylinux:$ImageVersion-ubi
|
||||||
LABEL summary="Rocky Linux UBI init image" \
|
LABEL summary="Rocky Linux UBI init image" \
|
||||||
description="This image is designed to run an init system as PID 1 for running multi-services inside a container." \
|
|
||||||
usage="Do not use directly. Use as a base image for daemons. Install chosen packages and 'systemctl enable' them." \
|
usage="Do not use directly. Use as a base image for daemons. Install chosen packages and 'systemctl enable' them." \
|
||||||
maintainer="Magauer Lukas <lukas@magauer.eu>"
|
org.opencontainers.image.authors="Magauer Lukas <lukas@magauer.eu>" \
|
||||||
|
org.opencontainers.image.description="This image is designed to run an init system as PID 1 for running multi-services inside a container." \
|
||||||
|
org.opencontainers.image.licenses="BSD-3-Clause" \
|
||||||
|
org.opencontainers.image.url="https://github.com/rocky-linux/sig-cloud-instance-images" \
|
||||||
|
org.opencontainers.image.vendor="Rocky Enterprise Software Foundation"
|
||||||
|
|
||||||
CMD ["/sbin/init"]
|
CMD ["/sbin/init"]
|
||||||
|
|
||||||
|
@ -7,8 +7,11 @@ RUN rm -rf /mnt/rootfs/var/cache/* /mnt/rootfs/var/log/dnf* /mnt/rootfs/var/log/
|
|||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
LABEL summary="Rocky Linux UBI micro image" \
|
LABEL summary="Rocky Linux UBI micro image" \
|
||||||
description="Very small image which doesn't install the package manager." \
|
org.opencontainers.image.authors="Magauer Lukas <lukas@magauer.eu>" \
|
||||||
maintainer="Magauer Lukas <lukas@magauer.eu>"
|
org.opencontainers.image.description="Very small image which doesn't install the package manager." \
|
||||||
|
org.opencontainers.image.licenses="BSD-3-Clause" \
|
||||||
|
org.opencontainers.image.url="https://github.com/rocky-linux/sig-cloud-instance-images" \
|
||||||
|
org.opencontainers.image.vendor="Rocky Enterprise Software Foundation"
|
||||||
|
|
||||||
COPY --from=ubi-micro-build /mnt/rootfs/ /
|
COPY --from=ubi-micro-build /mnt/rootfs/ /
|
||||||
COPY --from=ubi-micro-build /etc/yum.repos.d/* /etc/yum.repos.d/
|
COPY --from=ubi-micro-build /etc/yum.repos.d/* /etc/yum.repos.d/
|
||||||
|
Loading…
Reference in New Issue
Block a user