chore(docker): switch to org.opencontainers image labels

This commit is contained in:
Robert Kaussow 2020-12-31 13:40:10 +01:00
parent 8d4e1e71e2
commit 648887efcb
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
3 changed files with 21 additions and 18 deletions

View File

@ -1,10 +1,11 @@
FROM amd64/python:3.9-alpine
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>" \
org.label-schema.name="ansible-doctor" \
org.label-schema.vcs-url="https://github.com/thegeeklab/ansible-doctor" \
org.label-schema.vendor="Robert Kaussow" \
org.label-schema.schema-version="1.0"
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.title="ansible-doctor"
LABEL org.opencontainers.image.url="https://ansible-doctor.geekdocs.de/"
LABEL org.opencontainers.image.source="https://github.com/thegeeklab/ansible-doctor"
LABEL org.opencontainers.image.documentation="https://ansible-doctor.geekdocs.de/"
ENV PY_COLORS=1
@ -12,7 +13,7 @@ ADD dist/ansible_doctor-*.whl /
RUN apk update && \
pip install --upgrade --no-cache-dir pip && \
pip install --no-cache-dir ansible_doctor-*.whl && \
pip install --no-cache-dir $(find / -name "ansible_doctor-*.whl") && \
rm -f ansible_doctor-*.whl && \
rm -rf /var/cache/apk/* && \
rm -rf /root/.cache/

View File

@ -1,10 +1,11 @@
FROM arm32v7/python:3.9-alpine
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>" \
org.label-schema.name="ansible-doctor" \
org.label-schema.vcs-url="https://github.com/thegeeklab/ansible-doctor" \
org.label-schema.vendor="Robert Kaussow" \
org.label-schema.schema-version="1.0"
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.title="ansible-doctor"
LABEL org.opencontainers.image.url="https://ansible-doctor.geekdocs.de/"
LABEL org.opencontainers.image.source="https://github.com/thegeeklab/ansible-doctor"
LABEL org.opencontainers.image.documentation="https://ansible-doctor.geekdocs.de/"
ENV PY_COLORS=1
@ -12,7 +13,7 @@ ADD dist/ansible_doctor-*.whl /
RUN apk update && \
pip install --upgrade --no-cache-dir pip && \
pip install --no-cache-dir ansible_doctor-*.whl && \
pip install --no-cache-dir $(find / -name "ansible_doctor-*.whl") && \
rm -f ansible_doctor-*.whl && \
rm -rf /var/cache/apk/* && \
rm -rf /root/.cache/

View File

@ -1,10 +1,11 @@
FROM arm64v8/python:3.9-alpine
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>" \
org.label-schema.name="ansible-doctor" \
org.label-schema.vcs-url="https://github.com/thegeeklab/ansible-doctor" \
org.label-schema.vendor="Robert Kaussow" \
org.label-schema.schema-version="1.0"
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.title="ansible-doctor"
LABEL org.opencontainers.image.url="https://ansible-doctor.geekdocs.de/"
LABEL org.opencontainers.image.source="https://github.com/thegeeklab/ansible-doctor"
LABEL org.opencontainers.image.documentation="https://ansible-doctor.geekdocs.de/"
ENV PY_COLORS=1
@ -12,7 +13,7 @@ ADD dist/ansible_doctor-*.whl /
RUN apk update && \
pip install --upgrade --no-cache-dir pip && \
pip install --no-cache-dir ansible_doctor-*.whl && \
pip install --no-cache-dir $(find / -name "ansible_doctor-*.whl") && \
rm -f ansible_doctor-*.whl && \
rm -rf /var/cache/apk/* && \
rm -rf /root/.cache/