Skip to content

Commit

Permalink
docker: Add metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-richter committed Jan 8, 2018
1 parent c98d7d9 commit 77210ca
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ FROM ubuntu:16.04
MAINTAINER Andre Richter <[email protected]>

ARG DEBIAN_FRONTEND=noninteractive
ARG BUILD_DATE
ARG VCS_REF

LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/TUM-LIS/tum-dissertation-latex.git" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.schema-version="1.0"

RUN set -x; \
apt-get update -q -y; \
Expand Down
Binary file modified dissertation.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions hooks/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# $IMAGE_NAME var is injected into the build so the tag is correct.

docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
-t $IMAGE_NAME .

0 comments on commit 77210ca

Please sign in to comment.