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
No known key found for this signature in database
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 FROM amd64/python:3.9-alpine
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>" \ LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
org.label-schema.name="ansible-doctor" \ LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
org.label-schema.vcs-url="https://github.com/thegeeklab/ansible-doctor" \ LABEL org.opencontainers.image.title="ansible-doctor"
org.label-schema.vendor="Robert Kaussow" \ LABEL org.opencontainers.image.url="https://ansible-doctor.geekdocs.de/"
org.label-schema.schema-version="1.0" 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 ENV PY_COLORS=1
@ -12,7 +13,7 @@ ADD dist/ansible_doctor-*.whl /
RUN apk update && \ RUN apk update && \
pip install --upgrade --no-cache-dir pip && \ 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 -f ansible_doctor-*.whl && \
rm -rf /var/cache/apk/* && \ rm -rf /var/cache/apk/* && \
rm -rf /root/.cache/ rm -rf /root/.cache/

View File

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

View File

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