[libfabric-users] Docker containers and libfabric with shm provider
Hefty, Sean
sean.hefty at intel.com
Wed Jan 5 10:37:15 PST 2022
For your build, are you able to see the sockets provider?
From: Libfabric-users <libfabric-users-bounces at lists.openfabrics.org> On Behalf Of david at 3adesign.co.uk
Sent: Tuesday, December 21, 2021 12:38 PM
To: libfabric-users at lists.openfabrics.org
Subject: [libfabric-users] Docker containers and libfabric with shm provider
Hi,
>From what I’ve read docker and shm is supported but I’m finding that I cannot get it to work. fi_info returns -61, if I use the same build approach on a ubuntu host then I get sane looking results for fi_info
The docker file is not complex:
from ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y wget git-all m4 autoconf automake libtool flex build-essential pandoc net-tools \
iproute2 \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/ofiwg/libfabric.git
RUN cd /libfabric && ./autogen.sh && ./configure --prefix=/opt/libfabric --enable-shm=yes --enable-sockets --disable-tcp \
--disable-udp && make -j 4 && make install
I use the following make file to build and then run
REPO=registry.gitlab.com/vdi/docker-images
IMAGE_NAME=libfabric-docker:0.1
BUILD_ARG = --build-arg http_proxy=${http_proxy}
BUILD_ARG += --build-arg HTTP_PROXY=${HTTP_PROXY}
BUILD_ARG += --build-arg https_proxy=${https_proxy}
BUILD_ARG += --build-arg HTTPS_PROXY=${HTTPS_PROXY}
build-image:
docker build ${BUILD_ARG} -t ${REPO}/${IMAGE_NAME} .
test:
docker run -it --rm --network host ${REPO}/${IMAGE_NAME} bash
push:
@echo "=== Pushing Docker Image ${IMAGE_NAME} to ${REPO}"
docker push ${REPO}/${IMAGE_NAME}
make build-image
then
build test
Any ideas or suggestions?
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/libfabric-users/attachments/20220105/3955d895/attachment-0001.htm>
More information about the Libfabric-users
mailing list