Skip to content

Commit 44cc31f

Browse files
authored
Merge pull request #155 from zoidbergwill/master
Use new OCI labels instead of label-schema ones
2 parents 3cf2a25 + e901ac6 commit 44cc31f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docker/containerbuild.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,21 @@ mv /var/tmp/"$KSNAME"-docker.tar.xz $BUILDROOT/docker/
6363

6464
# Create a Dockerfile to go along with the rootfs.
6565

66+
BUILDDATE_RFC3339="$(date -d $BUILDDATE --rfc-3339=seconds)"
6667
cat << EOF > $BUILDROOT/docker/Dockerfile
6768
FROM scratch
6869
ADD $KSNAME-docker.tar.xz /
6970
70-
LABEL org.label-schema.schema-version="1.0" \\
71+
LABEL \\
72+
org.label-schema.schema-version="1.0" \\
7173
org.label-schema.name="CentOS Base Image" \\
7274
org.label-schema.vendor="CentOS" \\
7375
org.label-schema.license="GPLv2" \\
74-
org.label-schema.build-date="$BUILDDATE"
76+
org.label-schema.build-date="$BUILDDATE" \\
77+
org.opencontainers.image.title="CentOS Base Image" \\
78+
org.opencontainers.image.vendor="CentOS" \\
79+
org.opencontainers.image.licenses="GPL-2.0-only" \\
80+
org.opencontainers.image.created="$BUILDDATE_RFC3339"
7581
7682
CMD ["/bin/bash"]
7783
EOF

0 commit comments

Comments
 (0)