From 450bcc57dce5176c2778b4134882ebc91a99dd4a Mon Sep 17 00:00:00 2001 From: Gabriel Briones Date: Fri, 20 Sep 2019 16:41:38 -0500 Subject: [PATCH] Avoid large bundle for stacks-dbrs-redis build The package libnuma is required for Redis stack, the bundle which has this package is os-testsuite-phoronix, however, the size is too large. In order to avoid downloading the whole bundle, the package can be downloaded from Clear Linux published RPMs, this will save network bandwidth and build time. Signed-off-by: Gabriel Briones --- stacks/dbrs/redis/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stacks/dbrs/redis/Dockerfile b/stacks/dbrs/redis/Dockerfile index 67b6704..695f467 100644 --- a/stacks/dbrs/redis/Dockerfile +++ b/stacks/dbrs/redis/Dockerfile @@ -1,7 +1,12 @@ FROM clearlinux AS build-redis MAINTAINER otc-swstacks@intel.com -RUN swupd bundle-add --quiet --no-progress git c-basic devpkg-ndctl os-testsuite-phoronix-server +RUN swupd bundle-add --quiet --no-progress git c-basic devpkg-ndctl curl package-utils + +RUN clr_ver=$(grep VERSION_ID /usr/lib/os-release | awk -F= '{print $2}') && \ + NUMA_DEV="https://cdn.download.clearlinux.org/releases/$clr_ver/clear/x86_64/os/Packages/numactl-dev-2.0.12-20.x86_64.rpm" && \ + NUMA_LIB="https://cdn.download.clearlinux.org/releases/$clr_ver/clear/x86_64/os/Packages/numactl-lib-2.0.12-20.x86_64.rpm" && \ + rpm -ihv --nodeps $NUMA_DEV $NUMA_LIB RUN useradd redis-user