[libfabric-users] Docker containers and libfabric with shm provider
david at 3adesign.co.uk
david at 3adesign.co.uk
Tue Dec 21 12:38:18 PST 2021
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/20211221/a55b9d9d/attachment-0001.htm>
More information about the Libfabric-users
mailing list