Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.06 KB

building-from-source.md

File metadata and controls

23 lines (17 loc) · 1.06 KB

Building CVMFS CSI from source

There are pre-built container images available from cvmfsplugin repo at CERN registry (docker pull registry.cern.ch/magnum/cvmfsplugin). If however you need to build CVMFS CSI from source, you can follow this guide.

CVMFS CSI is written in Go. Make sure you have Go compiler and other related build tools installed before continuing.

Clone github.com/cvmfs-contrib/cvmfs-csi repository:

git clone https://github.com/cvmfs-contrib/cvmfs-csi.git
cd cvmfs-csi

There are different build targets available in the provided Makefile. To build only the CVMFS CSI executable, run following command:

make

After building successfully, the resulting executable file can be found in bin/csi-cvmfsplugin.

You can also build container images. By default, Docker is used for building. To build a container image using e.g. Podman, run following command:

TARGETS=linux/amd64 IMAGE_BUILD_TOOL=podman make image