Browse Source

added labels org.opencontainers.image.source & .title

Fabian Peter Hammerle 3 years ago
parent
commit
aa124bde95
2 changed files with 8 additions and 0 deletions
  1. 4 0
      CHANGELOG.md
  2. 4 0
      Dockerfile

+ 4 - 0
CHANGELOG.md

@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
 ## [Unreleased]
+### Added
+- image labels:
+  - `org.opencontainers.image.source` (repo url)
+  - `org.opencontainers.image.title`
 
 ## [3.0.0] - 2020-10-10
 ### Added

+ 4 - 0
Dockerfile

@@ -31,3 +31,7 @@ CMD ["tor", "-f", "/tmp/torrc"]
 HEALTHCHECK CMD \
     printf "AUTHENTICATE\nGETINFO network-liveness\nQUIT\n" | nc localhost 9051 \
         | grep -q network-liveness=up || exit 1
+
+# https://github.com/opencontainers/image-spec/blob/v1.0.1/annotations.md
+LABEL org.opencontainers.image.title="tor onion service" \
+    org.opencontainers.image.source="https://github.com/fphammerle/docker-onion-service"