Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v1] bench-run: refactoring perf docker image
@ 2020-04-21 12:39 Олег Пискунов
  2020-04-21 20:06 ` Alexander Tikhonov
  2020-04-30  9:50 ` Sergey Bronnikov
  0 siblings, 2 replies; 3+ messages in thread
From: Олег Пискунов @ 2020-04-21 12:39 UTC (permalink / raw)
  To: tarantool-patches; +Cc: Oleg Piskunov

[-- Attachment #1: Type: text/plain, Size: 2251 bytes --]



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

[-- Attachment #2: Type: text/html, Size: 2923 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Tarantool-patches] [PATCH v1] bench-run: refactoring perf docker image
  2020-04-21 12:39 [Tarantool-patches] [PATCH v1] bench-run: refactoring perf docker image Олег Пискунов
@ 2020-04-21 20:06 ` Alexander Tikhonov
  2020-04-30  9:50 ` Sergey Bronnikov
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Tikhonov @ 2020-04-21 20:06 UTC (permalink / raw)
  To: Олег
	Пискунов
  Cc: Oleg Piskunov, tarantool-patches

[-- Attachment #1: Type: text/plain, Size: 2501 bytes --]


Oleg, thanks for the patch, LGTM.

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

[-- Attachment #2: Type: text/html, Size: 4090 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Tarantool-patches] [PATCH v1] bench-run: refactoring perf docker image
  2020-04-21 12:39 [Tarantool-patches] [PATCH v1] bench-run: refactoring perf docker image Олег Пискунов
  2020-04-21 20:06 ` Alexander Tikhonov
@ 2020-04-30  9:50 ` Sergey Bronnikov
  1 sibling, 0 replies; 3+ messages in thread
From: Sergey Bronnikov @ 2020-04-30  9:50 UTC (permalink / raw)
  To: Олег
	Пискунов
  Cc: Oleg Piskunov, tarantool-patches

Hi, Oleg

LGTM

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

-- 
sergeyb@

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-30  9:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-21 12:39 [Tarantool-patches] [PATCH v1] bench-run: refactoring perf docker image Олег Пискунов
2020-04-21 20:06 ` Alexander Tikhonov
2020-04-30  9:50 ` Sergey Bronnikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox