<HTML><BODY><div><div><br>Fix docker image for perf testing:<br>- Disable caching for second stage docker file creation<br>  for correct Tarantool and bench-run version checkout.<br>- bench-run repository creation moved from dockerfile<br>  of the first stage to the second.</div><div> </div><div>Close #4870<br>---</div><div> </div><div>Github: https://github.com/tarantool/bench-run/tree/opiskunov/gh-4870-refactor-docker-perf<br>Issue: https://github.com/tarantool/tarantool/issues/4870</div><div> </div><div> dockerfiles/ubuntu_benchs | 3 ---<br> dockerfiles/ubuntu_tnt    | 3 +++<br> targets.mk                | 2 +-<br> 3 files changed, 4 insertions(+), 4 deletions(-)</div><div> </div><div>diff --git a/dockerfiles/ubuntu_benchs b/dockerfiles/ubuntu_benchs<br>index fd9acb4..f5389f4 100644<br>--- a/dockerfiles/ubuntu_benchs<br>+++ b/dockerfiles/ubuntu_benchs<br>@@ -70,6 +70,3 @@ WORKDIR /opt/linkbench<br> RUN luarocks install \<br>     https://raw.githubusercontent.com/tarantool/gperftools/master/rockspecs/gperftools-scm-1.rockspec \<br>     --local >build.log 2>&1 || ( cat build.log && false )<br>-<br>-# benchmarks runners<br>-RUN git clone https://github.com/tarantool/bench-run.git /opt/bench-run<br>diff --git a/dockerfiles/ubuntu_tnt b/dockerfiles/ubuntu_tnt<br>index 361e9d6..1704508 100644<br>--- a/dockerfiles/ubuntu_tnt<br>+++ b/dockerfiles/ubuntu_tnt<br>@@ -8,6 +8,9 @@ RUN ( cmake . -DENABLE_DIST=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo >build.log 2>&1<br>     && make -j >>build.log 2>&1 && make install >>build.log 2>&1 ) || \<br>     ( cat build.log && false )</div><div> </div><div>+# benchmarks runners<br>+RUN git clone https://github.com/tarantool/bench-run.git /opt/bench-run<br>+<br> # cbench<br> RUN git clone https://github.com/tarantool/cbench.git /opt/cbench<br> WORKDIR /opt/cbench<br>diff --git a/targets.mk b/targets.mk<br>index 6cf36b6..581b722 100644<br>--- a/targets.mk<br>+++ b/targets.mk<br>@@ -21,7 +21,7 @@ prepare:<br>        docker push ${IMAGE_PERF}<br>        # build Tarantool and benchmarks with depends on Tarantool sources<br>        ${DOCKERFILE_BUILD} --build-arg image_from=${IMAGE_PERF} \<br>-               -t ${IMAGE_PERF_BUILT} -f bench-run/dockerfiles/ubuntu_tnt .<br>+               -t ${IMAGE_PERF_BUILT} --no-cache -f bench-run/dockerfiles/ubuntu_tnt .<br>        docker push ${IMAGE_PERF_BUILT}</div><div> </div><div> # #####################################################<br>--<br>1.8.3.1</div><div> </div></div></BODY></HTML>