aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-bts-master/Dockerfile
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-03-29 14:12:28 +0100
committerHarald Welte <laforge@gnumonks.org>2019-03-29 16:40:40 +0000
commitcffe1022b520fe7273ee949935a23eb202a9890e (patch)
tree14b76c809e51bd4d825337f1b642162118adfc21 /osmo-bts-master/Dockerfile
parent2e3a5c1c530306f3c9b10311edda606768fc83ed (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-bts-master/Dockerfile')
-rw-r--r--osmo-bts-master/Dockerfile1
1 files changed, 1 insertions, 0 deletions
diff --git a/osmo-bts-master/Dockerfile b/osmo-bts-master/Dockerfile
index 69a8d4c..25d6d66 100644
--- a/osmo-bts-master/Dockerfile
+++ b/osmo-bts-master/Dockerfile
@@ -34,6 +34,7 @@ ADD http://git.osmocom.org/osmo-bts/patch?h=$OSMO_BTS_BRANCH /tmp/commit-osmo-bt
RUN cd osmo-bts && \
git fetch && git checkout -f -B $OSMO_BTS_BRANCH origin/$OSMO_BTS_BRANCH && \
+ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure --enable-trx && \
make -j8 install