Ensure docker cache fails if git repositories change

This commit is contained in:
Harald Welte 2017-08-19 21:09:49 +02:00
parent 58343d6c87
commit 32f8b870cd
5 changed files with 23 additions and 12 deletions

View File

@ -1,8 +1,11 @@
FROM debian-stretch-titan FROM debian-stretch-titan
RUN git clone git://git.osmocom.org/osmo-ttcn3-hacks.git && \ RUN mkdir /root/projects && (cd /root/projects && ln -sf / git)
mkdir /root/projects && (cd /root/projects && ln -sf / git) && \ RUN git clone git://git.osmocom.org/osmo-ttcn3-hacks.git
cd osmo-ttcn3-hacks/ggsn_tests && \
ADD http://git.osmocom.org/osmo-ttcn3-hacks/commit /tmp/commit
RUN cd osmo-ttcn3-hacks/ggsn_tests && \
git pull && \
./gen_links.sh && \ ./gen_links.sh && \
./regen_makefile.sh && \ ./regen_makefile.sh && \
make compile && \ make compile && \

View File

@ -2,8 +2,10 @@ FROM 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
cd m3ua-testtool && \ ADD http://git.osmocom.org/nplab/m3ua-testtool/commit /tmp/commit
RUN cd /tmp/m3ua-testtool && \
git pull && \
cc -o runm3uatest runm3uatest.c && \ cc -o runm3uatest runm3uatest.c && \
cp runm3uatest /usr/local/bin/ cp runm3uatest /usr/local/bin/

View File

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

View File

@ -15,8 +15,10 @@ 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
cd libosmo-sccp && \ ADD http://git.osmocom.org/libosmo-sccp/commit /tmp/commit
RUN cd libosmo-sccp && \
git pull && \
autoreconf -fi && \ autoreconf -fi && \
./configure && \ ./configure && \
make -j8 install && \ make -j8 install && \

View File

@ -7,8 +7,10 @@ COPY *.patch /tmp/
RUN git config --global user.email "nobody@localhost" && \ 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
cd sua-testtool && \ ADD http://git.osmocom.org/nplab/sua-testtool/commit /tmp/commit
RUN cd /tmp/sua-testtool && \
git pull && \
git am /tmp/*.patch && \ git am /tmp/*.patch && \
cc -o run-sua-test run-sua-test.c && \ cc -o run-sua-test run-sua-test.c && \
cp run-sua-test /usr/local/bin/ cp run-sua-test /usr/local/bin/