add/fix description to some images
This commit is contained in:
parent
ff20da92a8
commit
6e6d876b83
4
build.py
4
build.py
@ -217,6 +217,10 @@ class Distroless:
|
||||
elif value := dd.get("workingdir"):
|
||||
self.config_options.append(f"--workingdir={value}")
|
||||
|
||||
if labels := dd.get("label"):
|
||||
for k, v in labels.items():
|
||||
self.config_options.append(f"--label={k}={v}")
|
||||
|
||||
def render_arch_branch(self, arch, branch):
|
||||
def if_arches(arches, value, default=""):
|
||||
if arch in arches or not arches:
|
||||
|
@ -2,6 +2,11 @@ FROM {{ registry }}{{ branch }}/{{ alt_image }}:latest
|
||||
|
||||
MAINTAINER alt-cloud
|
||||
|
||||
LABEL org.opencontainers.image.title="base"
|
||||
LABEL org.opencontainers.image.description="Base image with localization and timezone packages"
|
||||
LABEL org.opencontainers.image.licenses="GPLv2"
|
||||
LABEL org.opencontainers.image.vendor="ALT Linux Team"
|
||||
|
||||
{{ install_packages("glibc-gconv-modules", "glibc-locales", "tzdata") }}
|
||||
|
||||
CMD ["bash"]
|
||||
|
@ -3,6 +3,7 @@ FROM {{ registry }}{{ branch }}/{{ alt_image }}:latest
|
||||
MAINTAINER alt-cloud
|
||||
|
||||
LABEL org.opencontainers.image.title="buildpack-deps-curl"
|
||||
LABEL org.opencontainers.image.description = "Transfer data environment"
|
||||
LABEL org.opencontainers.image.licenses="GPLv2"
|
||||
LABEL org.opencontainers.image.vendor="ALT Linux Team"
|
||||
|
||||
|
@ -4,6 +4,7 @@ MAINTAINER alt-cloud
|
||||
|
||||
LABEL org.opencontainers.image.title="buildpack-deps-scm"
|
||||
LABEL org.opencontainers.image.licenses="GPLv2"
|
||||
LABEL org.opencontainers.image.description = "Software configuration management environment"
|
||||
LABEL org.opencontainers.image.vendor="ALT Linux Team"
|
||||
|
||||
{{ install_packages(
|
||||
|
@ -3,6 +3,7 @@ FROM {{ registry }}{{ branch }}/buildpack-deps-scm:latest
|
||||
MAINTAINER alt-cloud
|
||||
|
||||
LABEL org.opencontainers.image.title="buildpack-deps"
|
||||
LABEL org.opencontainers.image.description = "Projects building environment"
|
||||
LABEL org.opencontainers.image.licenses="GPLv2"
|
||||
LABEL org.opencontainers.image.vendor="ALT Linux Team"
|
||||
|
||||
|
@ -19,3 +19,4 @@ packages = [
|
||||
"zlib",
|
||||
]
|
||||
timezone = "Europe/Moscow"
|
||||
label = {"org.opencontainers.image.title" = "distroless-base", "org.opencontainers.image.description" = "Base image for running dynamically linked programs", "org.opencontainers.image.licenses" = "GPLv2", "org.opencontainers.image.vendor" = "ALT Linux Team"}
|
||||
|
@ -37,3 +37,4 @@ packages = [
|
||||
"vim-console",
|
||||
]
|
||||
cmd = ["/bin/bash"]
|
||||
label = {"org.opencontainers.image.title" = "distroless-devel", "org.opencontainers.image.description" = "Base image for creating and debugging distroless images", "org.opencontainers.image.licenses" = "GPLv2", "org.opencontainers.image.vendor" = "ALT Linux Team"}
|
||||
|
@ -1,3 +1,4 @@
|
||||
from = "{{ registry }}{{ branch }}/distroless-base:latest"
|
||||
full-files = ["/usr/bin/gotop"]
|
||||
entrypoint = ["/usr/bin/gotop"]
|
||||
label = {"org.opencontainers.image.title" = "distroless-gotop", "org.opencontainers.image.description" = "Gotop image", "org.opencontainers.image.licenses" = "GPLv2", "org.opencontainers.image.vendor" = "ALT Linux Team"}
|
||||
|
@ -2,3 +2,4 @@ from = "scratch"
|
||||
file-lists = ["static.list"]
|
||||
user = "nonroot"
|
||||
workdir = "/home/nonroot"
|
||||
label = {"org.opencontainers.image.title" = "distroless-static", "org.opencontainers.image.description" = "Base image for running statically linked programs", "org.opencontainers.image.licenses" = "GPLv2", "org.opencontainers.image.vendor" = "ALT Linux Team"}
|
||||
|
@ -2,6 +2,6 @@ from = "{{ registry }}{{ branch }}/distroless-static:latest"
|
||||
|
||||
builder-install-packages = ["toybox"]
|
||||
files = ["/bin/toybox"]
|
||||
|
||||
entrypoint = ["/bin/toybox"]
|
||||
cmd = ["sh"]
|
||||
label = {"org.opencontainers.image.title" = "distroless-toybox", "org.opencontainers.image.description" = "Base image with toybox environment", "org.opencontainers.image.licenses" = "GPLv2", "org.opencontainers.image.vendor" = "ALT Linux Team"}
|
||||
|
@ -1,3 +1,4 @@
|
||||
from = "{{ registry }}{{ branch }}/distroless-static:latest"
|
||||
files = ["/bin/true"]
|
||||
cmd = ["/bin/true"]
|
||||
label = {"org.opencontainers.image.title" = "distroless-true", "org.opencontainers.image.description" = "True-command image for zero status returning", "org.opencontainers.image.licenses" = "GPLv2", "org.opencontainers.image.vendor" = "ALT Linux Team"}
|
||||
|
@ -2,11 +2,11 @@ FROM {{ registry }}{{ branch }}/{{ alt_image }}:latest
|
||||
|
||||
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"
|
||||
LABEL org.opencontainers.image.title="flannel-cni-plugin" \
|
||||
org.opencontainers.image.description="CNI network plugin that is powered by flannel" \
|
||||
org.opencontainers.image.source="https://github.com/flannel-io/cni-plugin" \
|
||||
org.opencontainers.image.licenses="Apache-2.0" \
|
||||
org.opencontainers.image.vendor="ALT Linux Team"
|
||||
|
||||
{{ install_packages("cni-plugin-flannel") }}
|
||||
|
||||
|
@ -1,5 +1,12 @@
|
||||
FROM {{ registry }}{{ branch }}/{{ alt_image }}:latest as installer
|
||||
|
||||
MAINTAINER alt-cloud
|
||||
|
||||
LABEL org.opencontainers.image.title="pause" \
|
||||
org.opencontainers.image.description="Simple pause image" \
|
||||
org.opencontainers.image.licenses="GPLv2" \
|
||||
org.opencontainers.image.vendor="ALT Linux Team"
|
||||
|
||||
{{ install_packages("kubernetes-pause") }}
|
||||
|
||||
FROM scratch
|
||||
|
Loading…
Reference in New Issue
Block a user