mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-07-10 14:35:48 +00:00
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:
committed by
William Douglas
parent
ce42ce8daa
commit
450bcc57dc
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user