30 lines
943 B
Docker
30 lines
943 B
Docker
FROM {{ registry }}{{ branch }}/{{ alt_image }}:latest
|
|
|
|
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"
|
|
|
|
{% if pkg_versions and "k8s/coredns" in pkg_versions %}
|
|
{% set version_parts = pkg_versions["k8s/coredns"].split('.') | length %}
|
|
{% else %}
|
|
{% set version_parts = 0 %}
|
|
{% endif %}
|
|
{% if branch in ["sisyphus"] and version_parts == 2 %}
|
|
ARG PKG_VERSION
|
|
|
|
{{ install_packages("coredns-for-kubernetes${PKG_VERSION}") }}
|
|
{% elif branch in ["sisyphus", "p11", "c10f2"] and version_parts == 3 %}
|
|
ARG PKG_VERSION
|
|
|
|
{{ install_packages("coredns${PKG_VERSION}") }}
|
|
{% else %}
|
|
{{ install_packages("coredns") }}
|
|
{% endif %}
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/coredns"]
|