ttcn3 tests: split 'make deps' in separate RUN command

This avoids re-downlaoding all dependency repositories each time
osmo-ttcn3-hacks has received a change
This commit is contained in:
Harald Welte 2017-12-17 12:20:05 +00:00
parent 18569e9d2c
commit 58e97d1f0b
3 changed files with 15 additions and 0 deletions

View File

@ -2,8 +2,13 @@ FROM laforge/debian-stretch-titan
RUN git clone git://git.osmocom.org/osmo-ttcn3-hacks.git RUN git clone git://git.osmocom.org/osmo-ttcn3-hacks.git
RUN cd osmo-ttcn3-hacks && \
git checkout -f -B master origin/master && \
make deps
ADD http://git.osmocom.org/osmo-ttcn3-hacks/patch /tmp/commit ADD http://git.osmocom.org/osmo-ttcn3-hacks/patch /tmp/commit
RUN cd osmo-ttcn3-hacks && \ RUN cd osmo-ttcn3-hacks && \
git fetch && \
git checkout -f -B master origin/master && \ git checkout -f -B master origin/master && \
make ggsn_tests make ggsn_tests

View File

@ -3,8 +3,13 @@ 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
RUN cd osmo-ttcn3-hacks && \
git checkout -f -B master origin/master && \
make deps
ADD http://git.osmocom.org/osmo-ttcn3-hacks/patch /tmp/commit ADD http://git.osmocom.org/osmo-ttcn3-hacks/patch /tmp/commit
RUN cd osmo-ttcn3-hacks && \ RUN cd osmo-ttcn3-hacks && \
git fetch && \
git checkout -f -B master origin/master && \ git checkout -f -B master origin/master && \
make mgw make mgw

View File

@ -3,8 +3,13 @@ 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
RUN cd osmo-ttcn3-hacks && \
git checkout -f -B master origin/master && \
make deps
ADD http://git.osmocom.org/osmo-ttcn3-hacks/patch /tmp/commit ADD http://git.osmocom.org/osmo-ttcn3-hacks/patch /tmp/commit
RUN cd osmo-ttcn3-hacks && \ RUN cd osmo-ttcn3-hacks && \
git fetch && \
git checkout -f -B master origin/master && \ git checkout -f -B master origin/master && \
make sysinfo make sysinfo