aboutsummaryrefslogtreecommitdiffstats
path: root/sua-test
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-08-19 21:09:49 +0200
committerHarald Welte <laforge@gnumonks.org>2017-08-19 21:09:49 +0200
commit32f8b870cdf11d81aced18e03c0a785b60c18847 (patch)
tree96546f1a95e82412a762866eb2bda0bb8a9f1611 /sua-test
parent58343d6c875feee95fd66567c59fda1bf62107a8 (diff)
Ensure docker cache fails if git repositories change
Diffstat (limited to 'sua-test')
-rw-r--r--sua-test/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/sua-test/Dockerfile b/sua-test/Dockerfile
index 8ee32b1..18939ae 100644
--- a/sua-test/Dockerfile
+++ b/sua-test/Dockerfile
@@ -7,8 +7,10 @@ COPY *.patch /tmp/
RUN git config --global user.email "nobody@localhost" && \
git config --global user.name "Docker Container"
-RUN cd /tmp && git clone https://github.com/nplab/sua-testtool && \
- cd sua-testtool && \
+RUN cd /tmp && git clone https://github.com/nplab/sua-testtool
+ADD http://git.osmocom.org/nplab/sua-testtool/commit /tmp/commit
+RUN cd /tmp/sua-testtool && \
+ git pull && \
git am /tmp/*.patch && \
cc -o run-sua-test run-sua-test.c && \
cp run-sua-test /usr/local/bin/