Building LINSTOR Container images from source with Docker

Step-by-step instructions for building LINSTOR Container images from source on CentOS 7

Building LINSTOR® containers requires Docker features that don't exist in the CentOS 7 packaged Docker. Install docker-ce from Docker's repositories instead.

yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce -y
systemctl enable docker.service --now

Then, clone the linstor-server source code and build the images.

git clone --recursive https://github.com/LINBIT/linstor-server
cd linstor-server

# Patch MR: https://gitlab.at.linbit.com/linstor/linstor-server/-/merge_requests/177
sed -i 's/www\.linbit\.com/pkg\.linbit\.com/g' Dockerfile.*

# Build containers
docker build -t linstor-controller -f Dockerfile.controller .
docker build -t linstor-satellite -f Dockerfile.satellite .

You can then push the built images to a registry using Docker.

MDK – 06/24/21