aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-ggsn-master
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2019-04-25 13:56:14 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2019-04-25 13:56:14 +0200
commitb59a9ed8d4d00eab4193caa46a1f24d280478b96 (patch)
treedbf43cb07bac0ce5cbaf9cb5985974e91252d3c2 /osmo-ggsn-master
parenta7deb5d7a851fe0342e4377604b338a5e86ee1c8 (diff)
Add OSMO_*_BRANCH environment variables for build args
Previously we could only set OSMO_TTCN3_BRANCH as environment variable to build a test other than master. This patch adds environment variables for all osmo-*-master images which allow docker tests to be executed for an arbitrary commit. The origin/ prefix from the git checkout command is removed so the *_BRANCH variable doesn't have to contain branch names, but van also contain arbitrary commits. This shouldn't have any adverse effect as we only have one remote in the checkout. Change-Id: If3bc5fae07cf63c4fef68306be4c4328660bc869
Diffstat (limited to 'osmo-ggsn-master')
-rw-r--r--osmo-ggsn-master/Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/osmo-ggsn-master/Dockerfile b/osmo-ggsn-master/Dockerfile
index ca4f111..cf84d02 100644
--- a/osmo-ggsn-master/Dockerfile
+++ b/osmo-ggsn-master/Dockerfile
@@ -25,7 +25,7 @@ ARG OSMO_GGSN_BRANCH="master"
RUN git clone git://git.osmocom.org/osmo-ggsn.git
ADD http://git.osmocom.org/osmo-ggsn/patch/?h=$OSMO_GGSN_BRANCH /tmp/commit
RUN cd osmo-ggsn && \
- git fetch && git checkout -f -B $OSMO_GGSN_BRANCH origin/$OSMO_GGSN_BRANCH && \
+ git fetch && git checkout -f -B $OSMO_GGSN_BRANCH $OSMO_GGSN_BRANCH && \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure && \