Use 'patch' not 'commit' from cgit for repo change detection

the 'commit' output contains a timestamp, so every second the
result will be different.  'patch' doesn't have this.
This commit is contained in:
Harald Welte 2017-08-19 21:56:07 +02:00
parent fc8eaf2bcf
commit 1649a01167
5 changed files with 5 additions and 6 deletions

View File

@ -3,7 +3,7 @@ FROM laforge/debian-stretch-titan
RUN mkdir /root/projects && (cd /root/projects && ln -sf / git) RUN mkdir /root/projects && (cd /root/projects && ln -sf / git)
RUN git clone git://git.osmocom.org/osmo-ttcn3-hacks.git RUN git clone git://git.osmocom.org/osmo-ttcn3-hacks.git
ADD http://git.osmocom.org/osmo-ttcn3-hacks/commit /tmp/commit ADD http://git.osmocom.org/osmo-ttcn3-hacks/patch /tmp/commit
RUN cd osmo-ttcn3-hacks/ggsn_tests && \ RUN cd osmo-ttcn3-hacks/ggsn_tests && \
git pull && \ git pull && \
./gen_links.sh && \ ./gen_links.sh && \

View File

@ -3,7 +3,7 @@ FROM laforge/sigtran-tests
MAINTAINER Harald Welte <laforge@gnumonks.org> MAINTAINER Harald Welte <laforge@gnumonks.org>
RUN cd /tmp && git clone https://github.com/nplab/m3ua-testtool RUN cd /tmp && git clone https://github.com/nplab/m3ua-testtool
ADD http://git.osmocom.org/nplab/m3ua-testtool/commit /tmp/commit ADD http://git.osmocom.org/nplab/m3ua-testtool/patch /tmp/commit
RUN cd /tmp/m3ua-testtool && \ RUN cd /tmp/m3ua-testtool && \
git pull && \ git pull && \
cc -o runm3uatest runm3uatest.c && \ cc -o runm3uatest runm3uatest.c && \

View File

@ -14,9 +14,8 @@ RUN apt-get update && apt-get install -y \
WORKDIR /tmp WORKDIR /tmp
ARG timestamp=invalid
RUN git clone git://git.osmocom.org/openggsn.git RUN git clone git://git.osmocom.org/openggsn.git
ADD http://git.osmocom.org/openggsn/commit/?h=laforge/osmo-ggsn /tmp/commit ADD http://git.osmocom.org/openggsn/patch/?h=laforge/osmo-ggsn /tmp/commit
RUN cd openggsn && \ RUN cd openggsn && \
git checkout -f laforge/osmo-ggsn && \ git checkout -f laforge/osmo-ggsn && \
autoreconf -fi && \ autoreconf -fi && \

View File

@ -16,7 +16,7 @@ RUN apt-get update && apt-get install -y \
WORKDIR /tmp WORKDIR /tmp
RUN git clone git://git.osmocom.org/libosmo-sccp.git RUN git clone git://git.osmocom.org/libosmo-sccp.git
ADD http://git.osmocom.org/libosmo-sccp/commit /tmp/commit ADD http://git.osmocom.org/libosmo-sccp/patch /tmp/commit
RUN cd libosmo-sccp && \ RUN cd libosmo-sccp && \
git pull && \ git pull && \
autoreconf -fi && \ autoreconf -fi && \

View File

@ -8,7 +8,7 @@ RUN git config --global user.email "nobody@localhost" && \
git config --global user.name "Docker Container" git config --global user.name "Docker Container"
RUN cd /tmp && git clone https://github.com/nplab/sua-testtool RUN cd /tmp && git clone https://github.com/nplab/sua-testtool
ADD http://git.osmocom.org/nplab/sua-testtool/commit /tmp/commit ADD http://git.osmocom.org/nplab/sua-testtool/patch /tmp/commit
RUN cd /tmp/sua-testtool && \ RUN cd /tmp/sua-testtool && \
git pull && \ git pull && \
git am /tmp/*.patch && \ git am /tmp/*.patch && \