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 <gabriel.briones.sayeg@intel.com>
This commit is contained in:
Gabriel Briones
2019-09-20 16:41:38 -05:00
committed by William Douglas
parent ce42ce8daa
commit 450bcc57dc
+6 -1
View File
@@ -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