-
Notifications
You must be signed in to change notification settings - Fork 56
Building Spire
The instructions provided below specify the steps to build SPIRE version 1.11.1 on Linux on IBM Z for the following distributions:
- RHEL (8.8, 8.10, 9.2, 9.4, 9.5)
- SLES 15 SP6
- Ubuntu (20.04, 22.04, 24.04, 24.10)
General Notes:
- When following the steps below please use a standard permission user unless otherwise specified.
- A directory
/<source_root>/
will be referred to in these instructions, this is a temporary writable directory anywhere you'd like to place it.
If you want to build SPIRE using manual steps, go to Step 2.
Use the following commands to build SPIRE using the build script. Please make sure you have wget
installed.
wget -q https://raw.githubusercontent.com/linux-on-ibm-z/scripts/master/Spire/1.11.1/build_spire.sh
# Build SPIRE
bash build_spire.sh [Provide -t option for executing build with tests -y install-without-confirmation]
In case of error, check logs
for more details or go to STEP 2 to follow manual build steps.
export SOURCE_ROOT=/<source_root>/
export PATCH_URL="https://raw.githubusercontent.com/linux-on-ibm-z/scripts/master/Spire/1.11.1/patch"
-
RHEL (8.8, 8.10)
sudo yum install -y curl wget git make gcc openssl-devel
-
RHEL (9.2, 9.4, 9.5)
sudo yum install --allowerasing -y curl wget git make gcc openssl-devel
-
SLES 15 SP6
sudo zypper install -y curl wget git-core make gcc openssl-devel which tar gzip awk
-
Ubuntu (20.04, 22.04, 24.04, 24.10)
sudo apt-get update sudo apt-get install -y curl wget git make gcc libssl-dev
cd $SOURCE_ROOT
git clone -b v1.11.1 https://github.com/spiffe/spire.git
cd spire/
curl -sSL $PATCH_URL/spire.patch | git apply -
make
Notes:
- Above command generates
spire-server
,spire-agent
andoidc-discovery-provider
binaries under$SOURCE_ROOT/spire/bin
folder. - Follow instructions provided here to get SPIRE running.
cd $SOURCE_ROOT/spire
make test
The information provided in this article is accurate at the time of writing, but on-going development in the open-source projects involved may make the information incorrect or obsolete. Please open issue or contact us on IBM Z Community if you have any questions or feedback.