<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9265">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo-bts-master: add Dockerfile ARG for git repo branch to be built<br><br>This allows the user to build any non-master branches of the related<br>repositories, which is helpful for local testing before pushing changes<br>to git.<br><br>Change-Id: Ide8248cb508be27f2cff620d79df7eb50f309af1<br>---<br>M osmo-bts-master/Dockerfile<br>1 file changed, 4 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/65/9265/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/osmo-bts-master/Dockerfile b/osmo-bts-master/Dockerfile</span><br><span>index 9239fe2..3c2dbec 100644</span><br><span>--- a/osmo-bts-master/Dockerfile</span><br><span>+++ b/osmo-bts-master/Dockerfile</span><br><span>@@ -26,11 +26,13 @@</span><br><span> </span><br><span> WORKDIR   /tmp</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ARG   OSMO_BTS_BRANCH="master"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> RUN     git clone git://git.osmocom.org/osmo-bts.git</span><br><span style="color: hsl(0, 100%, 40%);">-ADD http://git.osmocom.org/osmo-bts/patch /tmp/commit-osmo-bts</span><br><span style="color: hsl(120, 100%, 40%);">+ADD http://git.osmocom.org/osmo-bts/patch?h=$OSMO_BTS_BRANCH /tmp/commit-osmo-bts</span><br><span> </span><br><span> RUN        cd osmo-bts && \</span><br><span style="color: hsl(0, 100%, 40%);">-        git fetch && git checkout -f -B master origin/master && \</span><br><span style="color: hsl(120, 100%, 40%);">+     git fetch && git checkout -f -B $OSMO_BTS_BRANCH origin/$OSMO_BTS_BRANCH && \</span><br><span>        autoreconf -fi && \</span><br><span>  ./configure --enable-trx && \</span><br><span>        make -j8 install</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9265">change 9265</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/9265"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: docker-playground </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ide8248cb508be27f2cff620d79df7eb50f309af1 </div>
<div style="display:none"> Gerrit-Change-Number: 9265 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: dexter <pmaier@sysmocom.de> </div>