Skip to content

Commit

Permalink
Add labels at the end of the dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
nvtkaszpir committed Apr 30, 2024
1 parent 4e73ed3 commit 551c037
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
18 changes: 9 additions & 9 deletions Dockerfile.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@ ARG GIT_COMMIT
ARG AUTHORS=kaszpir@gmail.com
ARG URL=https://nvtkaszpir.github.io/prusa-connect-camera-script

LABEL org.opencontainers.image.base.name="${BASE_IMAGE}"
LABEL org.opencontainers.image.base.digest="${BASE_DIGEST}"
LABEL org.opencontainers.image.description="Linux shell script to send still camera images to Prusa Connect"
LABEL org.opencontainers.image.revision="${GIT_COMMIT}"
LABEL org.opencontainers.image.source="${GIT_SOURCE}"
LABEL org.opencontainers.image.url="${URL}"
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL org.opencontainers.image.authors="${AUTHORS}"

# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand Down Expand Up @@ -51,3 +42,12 @@ CMD [ "/app/prusa-connect-camera.sh" ]
# we assume we get a picture at least once per minute
HEALTHCHECK --interval=60s --timeout=3s \
CMD test $(find /dev/shm/ -mmin -1 | wc -l) -gt 0

LABEL org.opencontainers.image.base.name="${BASE_IMAGE}"
LABEL org.opencontainers.image.base.digest="${BASE_DIGEST}"
LABEL org.opencontainers.image.description="Linux shell script to send still camera images to Prusa Connect"
LABEL org.opencontainers.image.revision="${GIT_COMMIT}"
LABEL org.opencontainers.image.source="${GIT_SOURCE}"
LABEL org.opencontainers.image.url="${URL}"
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL org.opencontainers.image.authors="${AUTHORS}"
18 changes: 9 additions & 9 deletions Dockerfile.arm-v7
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@ ARG GIT_COMMIT
ARG AUTHORS=kaszpir@gmail.com
ARG URL=https://nvtkaszpir.github.io/prusa-connect-camera-script

LABEL org.opencontainers.image.base.name="${BASE_IMAGE}"
LABEL org.opencontainers.image.base.digest="${BASE_DIGEST}"
LABEL org.opencontainers.image.description="Linux shell script to send still camera images to Prusa Connect"
LABEL org.opencontainers.image.revision="${GIT_COMMIT}"
LABEL org.opencontainers.image.source="${GIT_SOURCE}"
LABEL org.opencontainers.image.url="${URL}"
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL org.opencontainers.image.authors="${AUTHORS}"

# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand Down Expand Up @@ -53,3 +44,12 @@ CMD [ "/app/prusa-connect-camera.sh" ]
# we assume we get a picture at least once per minute
HEALTHCHECK --interval=60s --timeout=3s \
CMD test $(find /dev/shm/ -mmin -1 | wc -l) -gt 0

LABEL org.opencontainers.image.base.name="${BASE_IMAGE}"
LABEL org.opencontainers.image.base.digest="${BASE_DIGEST}"
LABEL org.opencontainers.image.description="Linux shell script to send still camera images to Prusa Connect"
LABEL org.opencontainers.image.revision="${GIT_COMMIT}"
LABEL org.opencontainers.image.source="${GIT_SOURCE}"
LABEL org.opencontainers.image.url="${URL}"
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL org.opencontainers.image.authors="${AUTHORS}"
18 changes: 9 additions & 9 deletions Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@ ARG GIT_COMMIT
ARG AUTHORS=kaszpir@gmail.com
ARG URL=https://nvtkaszpir.github.io/prusa-connect-camera-script

LABEL org.opencontainers.image.base.name="${BASE_IMAGE}"
LABEL org.opencontainers.image.base.digest="${BASE_DIGEST}"
LABEL org.opencontainers.image.description="Linux shell script to send still camera images to Prusa Connect"
LABEL org.opencontainers.image.revision="${GIT_COMMIT}"
LABEL org.opencontainers.image.source="${GIT_SOURCE}"
LABEL org.opencontainers.image.url="${URL}"
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL org.opencontainers.image.authors="${AUTHORS}"

# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand Down Expand Up @@ -52,3 +43,12 @@ CMD [ "/app/prusa-connect-camera.sh" ]
# we assume we get a picture at least once per minute
HEALTHCHECK --interval=60s --timeout=3s \
CMD test $(find /dev/shm/ -mmin -1 | wc -l) -gt 0

LABEL org.opencontainers.image.base.name="${BASE_IMAGE}"
LABEL org.opencontainers.image.base.digest="${BASE_DIGEST}"
LABEL org.opencontainers.image.description="Linux shell script to send still camera images to Prusa Connect"
LABEL org.opencontainers.image.revision="${GIT_COMMIT}"
LABEL org.opencontainers.image.source="${GIT_SOURCE}"
LABEL org.opencontainers.image.url="${URL}"
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL org.opencontainers.image.authors="${AUTHORS}"

0 comments on commit 551c037

Please sign in to comment.