-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add labels to kairos container images (#2061)
* Add labels to kairos container images Signed-off-by: Mauro Morales <[email protected]> * Add family label Signed-off-by: Mauro Morales <[email protected]> * Add missing attributes * merge conflicts Signed-off-by: Mauro Morales <[email protected]> --------- Signed-off-by: Mauro Morales <[email protected]>
- Loading branch information
1 parent
06b7528
commit dbbf7d4
Showing
6 changed files
with
144 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,10 +48,34 @@ FROM base-kairos AS kairos-core | |
|
||
FROM base-kairos AS kairos-standard | ||
ARG K3S_VERSION | ||
LABEL io.kairos.k3s_version="${K3S_VERSION}" | ||
RUN luet install -y system/provider-kairos | ||
RUN luet install -y "k8s/k3s-$(which-init.sh)@${K3S_VERSION}" utils/edgevpn utils/k9s utils/nerdctl container/kubectl utils/kube-vip | ||
|
||
FROM kairos-${VARIANT} AS kairos-final | ||
ARG BASE_IMAGE | ||
ARG VARIANT | ||
ARG FAMILY | ||
ARG FLAVOR | ||
ARG FLAVOR_RELEASE | ||
ARG MODEL | ||
ARG VERSION | ||
ARG FRAMEWORK_VERSION | ||
ARG SECURITY_PROFILE | ||
LABEL org.opencontainers.image.authors="Kairos Maintainers <[email protected]>" | ||
LABEL org.opencontainers.image.licenses="Apache-2.0" | ||
LABEL org.opencontainers.image.url="https://github.com/kairos-io/kairos" | ||
LABEL org.opencontainers.image.source="https://github.com/kairos-io/kairos.git" | ||
LABEL io.kairos.base_image="${BASE_IMAGE}" | ||
LABEL io.kairos.variant="${VARIANT}" | ||
LABEL io.kairos.family="${FAMILY}" | ||
LABEL io.kairos.flavor="${FLAVOR}" | ||
LABEL io.kairos.flavor_release="${FLAVOR_RELEASE}" | ||
LABEL io.kairos.model="${MODEL}" | ||
LABEL io.kairos.version="${VERSION}" | ||
LABEL io.kairos.framework-version="${FRAMEWORK_VERSION}" | ||
LABEL io.kairos.security-profile="${SECURITY_PROFILE}" | ||
|
||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
RUN luet database get-all-installed --output /etc/kairos/versions.yaml | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -200,10 +200,34 @@ FROM base-kairos AS kairos-core | |
|
||
FROM base-kairos AS kairos-standard | ||
ARG K3S_VERSION | ||
LABEL io.kairos.k3s_version="${K3S_VERSION}" | ||
RUN luet install -y system/provider-kairos | ||
RUN luet install -y "k8s/k3s-$(which-init.sh)@${K3S_VERSION}" utils/edgevpn utils/k9s utils/nerdctl container/kubectl utils/kube-vip | ||
|
||
FROM kairos-${VARIANT} AS kairos-final | ||
ARG BASE_IMAGE | ||
ARG VARIANT | ||
ARG FAMILY | ||
ARG FLAVOR | ||
ARG FLAVOR_RELEASE | ||
ARG MODEL | ||
ARG VERSION | ||
ARG FRAMEWORK_VERSION | ||
ARG SECURITY_PROFILE | ||
LABEL org.opencontainers.image.authors="Kairos Maintainers <[email protected]>" | ||
LABEL org.opencontainers.image.licenses="Apache-2.0" | ||
LABEL org.opencontainers.image.url="https://github.com/kairos-io/kairos" | ||
LABEL org.opencontainers.image.source="https://github.com/kairos-io/kairos.git" | ||
LABEL io.kairos.base_image="${BASE_IMAGE}" | ||
LABEL io.kairos.variant="${VARIANT}" | ||
LABEL io.kairos.family="${FAMILY}" | ||
LABEL io.kairos.flavor="${FLAVOR}" | ||
LABEL io.kairos.flavor_release="${FLAVOR_RELEASE}" | ||
LABEL io.kairos.model="${MODEL}" | ||
LABEL io.kairos.version="${VERSION}" | ||
LABEL io.kairos.framework-version="${FRAMEWORK_VERSION}" | ||
LABEL io.kairos.security-profile="${SECURITY_PROFILE}" | ||
|
||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
RUN luet database get-all-installed --output /etc/kairos/versions.yaml | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -205,10 +205,34 @@ FROM base-kairos AS kairos-core | |
|
||
FROM base-kairos AS kairos-standard | ||
ARG K3S_VERSION | ||
LABEL io.kairos.k3s_version="${K3S_VERSION}" | ||
RUN luet install -y system/provider-kairos | ||
RUN luet install -y "k8s/k3s-$(which-init.sh)@${K3S_VERSION}" utils/edgevpn utils/k9s utils/nerdctl container/kubectl utils/kube-vip | ||
|
||
FROM kairos-${VARIANT} AS kairos-final | ||
ARG BASE_IMAGE | ||
ARG VARIANT | ||
ARG FAMILY | ||
ARG FLAVOR | ||
ARG FLAVOR_RELEASE | ||
ARG MODEL | ||
ARG VERSION | ||
ARG FRAMEWORK_VERSION | ||
ARG SECURITY_PROFILE | ||
LABEL org.opencontainers.image.authors="Kairos Maintainers <[email protected]>" | ||
LABEL org.opencontainers.image.licenses="Apache-2.0" | ||
LABEL org.opencontainers.image.url="https://github.com/kairos-io/kairos" | ||
LABEL org.opencontainers.image.source="https://github.com/kairos-io/kairos.git" | ||
LABEL io.kairos.base_image="${BASE_IMAGE}" | ||
LABEL io.kairos.variant="${VARIANT}" | ||
LABEL io.kairos.family="${FAMILY}" | ||
LABEL io.kairos.flavor="${FLAVOR}" | ||
LABEL io.kairos.flavor_release="${FLAVOR_RELEASE}" | ||
LABEL io.kairos.model="${MODEL}" | ||
LABEL io.kairos.version="${VERSION}" | ||
LABEL io.kairos.framework-version="${FRAMEWORK_VERSION}" | ||
LABEL io.kairos.security-profile="${SECURITY_PROFILE}" | ||
|
||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
RUN luet database get-all-installed --output /etc/kairos/versions.yaml | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,10 +209,34 @@ FROM base-kairos AS kairos-core | |
|
||
FROM base-kairos AS kairos-standard | ||
ARG K3S_VERSION | ||
LABEL io.kairos.k3s_version="${K3S_VERSION}" | ||
RUN luet install -y system/provider-kairos | ||
RUN luet install -y "k8s/k3s-$(which-init.sh)@${K3S_VERSION}" utils/edgevpn utils/k9s utils/nerdctl container/kubectl utils/kube-vip | ||
|
||
FROM kairos-${VARIANT} AS kairos-final | ||
ARG BASE_IMAGE | ||
ARG VARIANT | ||
ARG FAMILY | ||
ARG FLAVOR | ||
ARG FLAVOR_RELEASE | ||
ARG MODEL | ||
ARG VERSION | ||
ARG FRAMEWORK_VERSION | ||
ARG SECURITY_PROFILE | ||
LABEL org.opencontainers.image.authors="Kairos Maintainers <[email protected]>" | ||
LABEL org.opencontainers.image.licenses="Apache-2.0" | ||
LABEL org.opencontainers.image.url="https://github.com/kairos-io/kairos" | ||
LABEL org.opencontainers.image.source="https://github.com/kairos-io/kairos.git" | ||
LABEL io.kairos.base_image="${BASE_IMAGE}" | ||
LABEL io.kairos.variant="${VARIANT}" | ||
LABEL io.kairos.family="${FAMILY}" | ||
LABEL io.kairos.flavor="${FLAVOR}" | ||
LABEL io.kairos.flavor_release="${FLAVOR_RELEASE}" | ||
LABEL io.kairos.model="${MODEL}" | ||
LABEL io.kairos.version="${VERSION}" | ||
LABEL io.kairos.framework-version="${FRAMEWORK_VERSION}" | ||
LABEL io.kairos.security-profile="${SECURITY_PROFILE}" | ||
|
||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
RUN luet database get-all-installed --output /etc/kairos/versions.yaml | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,10 +133,34 @@ FROM base-kairos AS kairos-core | |
|
||
FROM base-kairos AS kairos-standard | ||
ARG K3S_VERSION | ||
LABEL io.kairos.k3s_version="${K3S_VERSION}" | ||
RUN luet install -y system/provider-kairos | ||
RUN luet install -y "k8s/k3s-$(which-init.sh)@${K3S_VERSION}" utils/edgevpn utils/k9s utils/nerdctl container/kubectl utils/kube-vip | ||
|
||
FROM kairos-${VARIANT} AS kairos-final | ||
ARG BASE_IMAGE | ||
ARG VARIANT | ||
ARG FAMILY | ||
ARG FLAVOR | ||
ARG FLAVOR_RELEASE | ||
ARG MODEL | ||
ARG VERSION | ||
ARG FRAMEWORK_VERSION | ||
ARG SECURITY_PROFILE | ||
LABEL org.opencontainers.image.authors="Kairos Maintainers <[email protected]>" | ||
LABEL org.opencontainers.image.licenses="Apache-2.0" | ||
LABEL org.opencontainers.image.url="https://github.com/kairos-io/kairos" | ||
LABEL org.opencontainers.image.source="https://github.com/kairos-io/kairos.git" | ||
LABEL io.kairos.base_image="${BASE_IMAGE}" | ||
LABEL io.kairos.variant="${VARIANT}" | ||
LABEL io.kairos.family="${FAMILY}" | ||
LABEL io.kairos.flavor="${FLAVOR}" | ||
LABEL io.kairos.flavor_release="${FLAVOR_RELEASE}" | ||
LABEL io.kairos.model="${MODEL}" | ||
LABEL io.kairos.version="${VERSION}" | ||
LABEL io.kairos.framework-version="${FRAMEWORK_VERSION}" | ||
LABEL io.kairos.security-profile="${SECURITY_PROFILE}" | ||
|
||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
RUN luet database get-all-installed --output /etc/kairos/versions.yaml | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -303,10 +303,34 @@ FROM base-kairos AS kairos-core | |
|
||
FROM base-kairos AS kairos-standard | ||
ARG K3S_VERSION | ||
LABEL io.kairos.k3s_version="${K3S_VERSION}" | ||
RUN luet install -y system/provider-kairos | ||
RUN luet install -y "k8s/k3s-$(which-init.sh)@${K3S_VERSION}" utils/edgevpn utils/k9s utils/nerdctl container/kubectl utils/kube-vip | ||
|
||
FROM kairos-${VARIANT} AS kairos-final | ||
ARG BASE_IMAGE | ||
ARG VARIANT | ||
ARG FAMILY | ||
ARG FLAVOR | ||
ARG FLAVOR_RELEASE | ||
ARG MODEL | ||
ARG VERSION | ||
ARG FRAMEWORK_VERSION | ||
ARG SECURITY_PROFILE | ||
LABEL org.opencontainers.image.authors="Kairos Maintainers <[email protected]>" | ||
LABEL org.opencontainers.image.licenses="Apache-2.0" | ||
LABEL org.opencontainers.image.url="https://github.com/kairos-io/kairos" | ||
LABEL org.opencontainers.image.source="https://github.com/kairos-io/kairos.git" | ||
LABEL io.kairos.base_image="${BASE_IMAGE}" | ||
LABEL io.kairos.variant="${VARIANT}" | ||
LABEL io.kairos.family="${FAMILY}" | ||
LABEL io.kairos.flavor="${FLAVOR}" | ||
LABEL io.kairos.flavor_release="${FLAVOR_RELEASE}" | ||
LABEL io.kairos.model="${MODEL}" | ||
LABEL io.kairos.version="${VERSION}" | ||
LABEL io.kairos.framework-version="${FRAMEWORK_VERSION}" | ||
LABEL io.kairos.security-profile="${SECURITY_PROFILE}" | ||
|
||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
RUN luet database get-all-installed --output /etc/kairos/versions.yaml | ||
|
||
|