From 1aa473607c06c6e9c4fcd1dd8dd7e8ee3d735f34 Mon Sep 17 00:00:00 2001 From: Nadezhda Fedorova Date: Fri, 19 Apr 2024 15:50:27 +0300 Subject: [PATCH] add labels to dockerfiles --- org/alt/apache2/Dockerfile.template | 6 ++++++ org/alt/buildpack-deps-curl/Dockerfile.template | 6 +++++- org/alt/buildpack-deps-scm/Dockerfile.template | 3 +++ org/alt/buildpack-deps/Dockerfile.template | 4 ++++ org/alt/devel/Dockerfile.template | 5 +++++ org/alt/distroless-builder/Dockerfile.template | 5 +++++ org/alt/etcd/Dockerfile.template | 6 ++++++ org/alt/gitea/Dockerfile.template | 6 ++++++ org/alt/nginx/Dockerfile.template | 6 ++++++ org/alt/node/Dockerfile.template | 6 ++++++ org/alt/prometheus/Dockerfile.template | 6 ++++++ org/alt/python/Dockerfile.template | 6 ++++++ org/alt/registry/Dockerfile.template | 6 ++++++ org/alt/ruby/Dockerfile.template | 6 ++++++ org/alt/systemd/Dockerfile.template | 6 ++++++ org/alt/unit/Dockerfile.template | 6 ++++++ org/k8s/cert-manager-cainjector/Dockerfile.template | 6 ++++++ org/k8s/cert-manager-controller/Dockerfile.template | 6 ++++++ org/k8s/cert-manager-webhook/Dockerfile.template | 6 ++++++ org/k8s/coredns/Dockerfile.template | 6 ++++++ org/k8s/etcd/Dockerfile.template | 6 ++++++ org/k8s/flannel-cni-plugin/Dockerfile.template | 6 ++++++ org/k8s/flannel/Dockerfile.template | 6 ++++++ org/k8s/trivy-node-collector/Dockerfile.template | 6 ++++++ 24 files changed, 136 insertions(+), 1 deletion(-) diff --git a/org/alt/apache2/Dockerfile.template b/org/alt/apache2/Dockerfile.template index 49125d8..8569660 100644 --- a/org/alt/apache2/Dockerfile.template +++ b/org/alt/apache2/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="apache2" +LABEL org.opencontainers.image.description="The most widely used Web server on the Internet" +LABEL org.opencontainers.image.source="http://httpd.apache.org" +LABEL org.opencontainers.image.licenses="Apache-2.0" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages("apache2") }} EXPOSE 80 diff --git a/org/alt/buildpack-deps-curl/Dockerfile.template b/org/alt/buildpack-deps-curl/Dockerfile.template index 5f7bd63..2bbeceb 100644 --- a/org/alt/buildpack-deps-curl/Dockerfile.template +++ b/org/alt/buildpack-deps-curl/Dockerfile.template @@ -2,9 +2,13 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="buildpack-deps-curl" +LABEL org.opencontainers.image.licenses="GPLv2" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages( "ca-certificates", "curl", "gnupg", "wget" -) }} \ No newline at end of file +) }} diff --git a/org/alt/buildpack-deps-scm/Dockerfile.template b/org/alt/buildpack-deps-scm/Dockerfile.template index 0726d7d..544e8de 100644 --- a/org/alt/buildpack-deps-scm/Dockerfile.template +++ b/org/alt/buildpack-deps-scm/Dockerfile.template @@ -2,6 +2,9 @@ FROM {{ registry }}{{ organization }}/buildpack-deps-curl:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="buildpack-deps-scm" +LABEL org.opencontainers.image.licenses="GPLv2" +LABEL org.opencontainers.image.vendor="ALT Linux Team" {{ install_pakages( "git", diff --git a/org/alt/buildpack-deps/Dockerfile.template b/org/alt/buildpack-deps/Dockerfile.template index e5f311b..2c62c87 100644 --- a/org/alt/buildpack-deps/Dockerfile.template +++ b/org/alt/buildpack-deps/Dockerfile.template @@ -2,6 +2,10 @@ FROM {{ registry }}{{ organization }}/buildpack-deps-scm:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="buildpack-deps" +LABEL org.opencontainers.image.licenses="GPLv2" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages( "ImageMagick", "autoconf", diff --git a/org/alt/devel/Dockerfile.template b/org/alt/devel/Dockerfile.template index d088619..d046a06 100644 --- a/org/alt/devel/Dockerfile.template +++ b/org/alt/devel/Dockerfile.template @@ -2,6 +2,11 @@ FROM {{ registry }}{{ organization }}/base:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="devel" +LABEL org.opencontainers.image.description="This image is only for devel or testing purposes" +LABEL org.opencontainers.image.licenses="GPLv2" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + # install editor {{ install_pakages("vim-console") }} diff --git a/org/alt/distroless-builder/Dockerfile.template b/org/alt/distroless-builder/Dockerfile.template index ebfc620..7764fe6 100644 --- a/org/alt/distroless-builder/Dockerfile.template +++ b/org/alt/distroless-builder/Dockerfile.template @@ -2,6 +2,11 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="distroless-builder" +LABEL org.opencontainers.image.description="This images is using to build tarball for distroless images" +LABEL org.opencontainers.image.licenses="GPLv2" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + RUN echo %_excludedocs 1 >> /etc/rpm/macros RUN rpm -qalds | awk '/^normal/{print $2}' | xargs rm -rf {{ install_pakages("python3", "glibc-utils", "apt-repo") }} diff --git a/org/alt/etcd/Dockerfile.template b/org/alt/etcd/Dockerfile.template index 86ff4d5..94197ab 100644 --- a/org/alt/etcd/Dockerfile.template +++ b/org/alt/etcd/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="etcd" +LABEL org.opencontainers.image.description="Distributed reliable key-value store for the most critical data of a distributed system" +LABEL org.opencontainers.image.source="https://github.com/etcd-io/etcd" +LABEL org.opencontainers.image.licenses="Apache-2.0" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages("etcd") }} VOLUME /data diff --git a/org/alt/gitea/Dockerfile.template b/org/alt/gitea/Dockerfile.template index c7cf615..eebc0b7 100644 --- a/org/alt/gitea/Dockerfile.template +++ b/org/alt/gitea/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="gitea" +LABEL org.opencontainers.image.description="Git with a cup of tea, painless self-hosted git service" +LABEL org.opencontainers.image.source="https://github.com/go-gitea/gitea" +LABEL org.opencontainers.image.licenses="MIT" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages("gitea", "openssh-server", "gosu") }} ENV USER gitea diff --git a/org/alt/nginx/Dockerfile.template b/org/alt/nginx/Dockerfile.template index f36c0ed..33f7480 100644 --- a/org/alt/nginx/Dockerfile.template +++ b/org/alt/nginx/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="nginx" +LABEL org.opencontainers.image.description="Fast HTTP server, extremely useful as an Apache frontend" +LABEL org.opencontainers.image.source="https://nginx.org/" +LABEL org.opencontainers.image.licenses="BSD" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages("nginx", "apache2-html", "tzdata") }} RUN cd /etc/nginx/sites-enabled.d && ln -s ../sites-available.d/default.conf . diff --git a/org/alt/node/Dockerfile.template b/org/alt/node/Dockerfile.template index 55fe54e..afc0c29 100644 --- a/org/alt/node/Dockerfile.template +++ b/org/alt/node/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ organization }}/buildpack-deps:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="node" +LABEL org.opencontainers.image.description="Evented I/O for V8 Javascript" +LABEL org.opencontainers.image.source="https://github.com/nodejs/node" +LABEL org.opencontainers.image.licenses="MIT" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + RUN groupadd --gid 1000 node \ && useradd --uid 1000 --gid node --shell /bin/bash --create-home node diff --git a/org/alt/prometheus/Dockerfile.template b/org/alt/prometheus/Dockerfile.template index 8a38c39..db8115f 100644 --- a/org/alt/prometheus/Dockerfile.template +++ b/org/alt/prometheus/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="prometheus" +LABEL org.opencontainers.image.description="Prometheus monitoring system and time series database" +LABEL org.opencontainers.image.source="https://github.com/prometheus/prometheus" +LABEL org.opencontainers.image.licenses="Apache-2.0" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages("prometheus") }} WORKDIR /var/lib/prometheus diff --git a/org/alt/python/Dockerfile.template b/org/alt/python/Dockerfile.template index 18cf132..1e08950 100644 --- a/org/alt/python/Dockerfile.template +++ b/org/alt/python/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ organization }}/base:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="python" +LABEL org.opencontainers.image.description="Python 3 and tools needed for development" +LABEL org.opencontainers.image.source="https://github.com/python/cpython" +LABEL org.opencontainers.image.licenses="Python" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages( "python3-module-pip", "python3-module-setuptools", diff --git a/org/alt/registry/Dockerfile.template b/org/alt/registry/Dockerfile.template index d536d3d..88483dc 100644 --- a/org/alt/registry/Dockerfile.template +++ b/org/alt/registry/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="registry" +LABEL org.opencontainers.image.description="The Docker toolset to pack, ship, store, and deliver content" +LABEL org.opencontainers.image.source="https://github.com/docker/distribution" +LABEL org.opencontainers.image.licenses="Apache-2.0" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages("docker-registry") }} RUN ln -sf /usr/bin/docker-registry /bin/registry diff --git a/org/alt/ruby/Dockerfile.template b/org/alt/ruby/Dockerfile.template index 1fdacf7..9fc7b48 100644 --- a/org/alt/ruby/Dockerfile.template +++ b/org/alt/ruby/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="ruby" +LABEL org.opencontainers.image.description="Interactive Ruby Shell" +LABEL org.opencontainers.image.source="https://github.com/ruby/ruby" +LABEL org.opencontainers.image.licenses="BSD-2-Clause or Ruby" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages("irb") }} CMD ["irb"] diff --git a/org/alt/systemd/Dockerfile.template b/org/alt/systemd/Dockerfile.template index 2c1d961..dff43d6 100644 --- a/org/alt/systemd/Dockerfile.template +++ b/org/alt/systemd/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ organization }}/base:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="systemd" +LABEL org.opencontainers.image.description="Systemd System V init tools" +LABEL org.opencontainers.image.source="https://github.com/systemd/systemd" +LABEL org.opencontainers.image.licenses="LGPLv2.1+" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + ENV container docker {{ install_pakages("systemd-sysvinit") }} diff --git a/org/alt/unit/Dockerfile.template b/org/alt/unit/Dockerfile.template index b033b9c..619c45a 100644 --- a/org/alt/unit/Dockerfile.template +++ b/org/alt/unit/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="unit" +LABEL org.opencontainers.image.description="NGINX Unit is a lightweight and versatile web-server" +LABEL org.opencontainers.image.source="https://github.com/nginx/unit" +LABEL org.opencontainers.image.licenses="Apache-2.0" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + RUN apt-get update && \ apt-get install -y unit curl tzdata; \ rm -f /var/cache/apt/archives/*.rpm \ diff --git a/org/k8s/cert-manager-cainjector/Dockerfile.template b/org/k8s/cert-manager-cainjector/Dockerfile.template index 11a8a87..2c974ad 100644 --- a/org/k8s/cert-manager-cainjector/Dockerfile.template +++ b/org/k8s/cert-manager-cainjector/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="cert-manager-cainjector" +LABEL org.opencontainers.image.description="Cainjector component for automatic provisioning and managing TLS certificates in Kubernetes" +LABEL org.opencontainers.image.source="https://github.com/cert-manager/cert-manager" +LABEL org.opencontainers.image.licenses="Apache-2.0" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages("cert-manager") }} RUN groupadd -r -g 1000 cert-manger && useradd --no-log-init -r -u 1000 -g cert-manger cert-manger diff --git a/org/k8s/cert-manager-controller/Dockerfile.template b/org/k8s/cert-manager-controller/Dockerfile.template index 9da49b9..cda0240 100644 --- a/org/k8s/cert-manager-controller/Dockerfile.template +++ b/org/k8s/cert-manager-controller/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="cert-manager-controller" +LABEL org.opencontainers.image.description="Controller component for automatic provisioning and managing TLS certificates in Kubernetes" +LABEL org.opencontainers.image.source="https://github.com/cert-manager/cert-manager" +LABEL org.opencontainers.image.licenses="Apache-2.0" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages("cert-manager") }} RUN groupadd -r -g 1000 cert-manger && useradd --no-log-init -r -u 1000 -g cert-manger cert-manger diff --git a/org/k8s/cert-manager-webhook/Dockerfile.template b/org/k8s/cert-manager-webhook/Dockerfile.template index 70c1000..76deec1 100644 --- a/org/k8s/cert-manager-webhook/Dockerfile.template +++ b/org/k8s/cert-manager-webhook/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="cert-manager-webhook" +LABEL org.opencontainers.image.description="Webhook component for automatic provisioning and managing TLS certificates in Kubernetes" +LABEL org.opencontainers.image.source="https://github.com/cert-manager/cert-manager" +LABEL org.opencontainers.image.licenses="Apache-2.0" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages("cert-manager") }} RUN groupadd -r -g 1000 cert-manger && useradd --no-log-init -r -u 1000 -g cert-manger cert-manger diff --git a/org/k8s/coredns/Dockerfile.template b/org/k8s/coredns/Dockerfile.template index 833253b..d841020 100644 --- a/org/k8s/coredns/Dockerfile.template +++ b/org/k8s/coredns/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="coredns" +LABEL org.opencontainers.image.description="CoreDNS is a DNS server that chains plugins" +LABEL org.opencontainers.image.source="https://github.com/coredns/coredns" +LABEL org.opencontainers.image.licenses="Apache-2.0" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages("coredns") }} ENTRYPOINT ["/usr/bin/coredns"] diff --git a/org/k8s/etcd/Dockerfile.template b/org/k8s/etcd/Dockerfile.template index 86ff4d5..94197ab 100644 --- a/org/k8s/etcd/Dockerfile.template +++ b/org/k8s/etcd/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="etcd" +LABEL org.opencontainers.image.description="Distributed reliable key-value store for the most critical data of a distributed system" +LABEL org.opencontainers.image.source="https://github.com/etcd-io/etcd" +LABEL org.opencontainers.image.licenses="Apache-2.0" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages("etcd") }} VOLUME /data diff --git a/org/k8s/flannel-cni-plugin/Dockerfile.template b/org/k8s/flannel-cni-plugin/Dockerfile.template index b033a46..97a81ea 100644 --- a/org/k8s/flannel-cni-plugin/Dockerfile.template +++ b/org/k8s/flannel-cni-plugin/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="flannel-cni-plugin" +LABEL org.opencontainers.image.description="CNI network plugin that is powered by flannel" +LABEL org.opencontainers.image.source="https://github.com/flannel-io/cni-plugin" +LABEL org.opencontainers.image.licenses="Apache-2.0" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages("cni-plugin-flannel") }} RUN cp /usr/libexec/cni/flannel /flannel diff --git a/org/k8s/flannel/Dockerfile.template b/org/k8s/flannel/Dockerfile.template index 52b32ae..62fc522 100644 --- a/org/k8s/flannel/Dockerfile.template +++ b/org/k8s/flannel/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="flannel" +LABEL org.opencontainers.image.description="Network fabric for containers" +LABEL org.opencontainers.image.source="https://github.com/flannel-io/flannel" +LABEL org.opencontainers.image.licenses="Apache-2.0" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages( "iproute2", "net-tools", diff --git a/org/k8s/trivy-node-collector/Dockerfile.template b/org/k8s/trivy-node-collector/Dockerfile.template index c96b9a6..d8e1b4a 100644 --- a/org/k8s/trivy-node-collector/Dockerfile.template +++ b/org/k8s/trivy-node-collector/Dockerfile.template @@ -2,6 +2,12 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud +LABEL org.opencontainers.image.title="trivy-node-collector" +LABEL org.opencontainers.image.description="Open source collector who collect Node information (fs and process data) and output in a table/json format" +LABEL org.opencontainers.image.source="https://github.com/aquasecurity/k8s-node-collector" +LABEL org.opencontainers.image.licenses="Apache-2.0" +LABEL org.opencontainers.image.vendor="ALT Linux Team" + {{ install_pakages( "k8s-trivy-node-collector" ) }}