diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-03-29 14:12:28 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-03-29 16:40:40 +0000 |
commit | cffe1022b520fe7273ee949935a23eb202a9890e (patch) | |
tree | 14b76c809e51bd4d825337f1b642162118adfc21 /osmo-hnbgw-master | |
parent | 2e3a5c1c530306f3c9b10311edda606768fc83ed (diff) |
print branch name and git commit hash during docker container build
This is quite useful when looking at jenkins logs to know which exact
version was built at the time.
Change-Id: Id52c382b454e2beecf46820752aeff15b2c1a0ae
Diffstat (limited to 'osmo-hnbgw-master')
-rw-r--r-- | osmo-hnbgw-master/Dockerfile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/osmo-hnbgw-master/Dockerfile b/osmo-hnbgw-master/Dockerfile index c00d68b..068025b 100644 --- a/osmo-hnbgw-master/Dockerfile +++ b/osmo-hnbgw-master/Dockerfile @@ -31,6 +31,7 @@ ADD http://git.osmocom.org/osmo-iuh/patch?h=$OSMO_IUH_BRANCH /tmp/commit-osmo-mg RUN cd osmo-iuh && \ git fetch && git checkout -f -B $OSMO_IUH_BRANCH origin/$OSMO_IUH_BRANCH && \ + git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ autoreconf -fi && \ ./configure && \ make -j8 install && \ |