Browse Source

Fix: git commit id labels on images

1) Use OCI Image Specs for labels instead of custom 'commit-id=xxxxx'
   or legacy "Label Schema"
2) Fix missing git commit id labels on images (.revision)
3) Add human-readable title (.title) of the image, URL (.url), and
   a few other properties (annotations) according to the latest Specs

Change-Id: I63c39512ad04f36f63ddb27f0cfd5ef34b7d3467
changes/44/604244/1
Roman Gorshunov 9 months ago
parent
commit
ba432cffe6
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      Dockerfile

+ 7
- 0
Dockerfile View File

@@ -1,5 +1,12 @@
1 1
 FROM ubuntu:16.04
2 2
 
3
+LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode'
4
+LABEL org.opencontainers.image.url='https://airshipit.org'
5
+LABEL org.opencontainers.image.documentation='https://airship-berth.readthedocs.org'
6
+LABEL org.opencontainers.image.source='https://git.openstack.org/openstack/airship-berth'
7
+LABEL org.opencontainers.image.vendor='The Airship Authors'
8
+LABEL org.opencontainers.image.licenses='Apache-2.0'
9
+
3 10
 RUN apt-get update && apt-get install -y qemu-kvm dnsmasq bridge-utils mkisofs curl jq wget iptables
4 11
 RUN apt-get clean
5 12
 RUN rm -f /var/lib/apt/lists/* || true

Loading…
Cancel
Save