Installing BuildPiper #
This guide explains how to install BuildPiper (BP) v2.0-alpha on a virtual machine and run it as a non-root user.
BP runs as a set of Docker containers managed by Docker Compose. The setup creates a dedicated buildpiper user on the VM, and every BP component runs under that user instead of root.
What you will set up #
| Component | Container | Purpose |
|---|---|---|
| Frontend | frontend | The BuildPiper UI |
| Public API | publicapi | Platform API, the core of BP |
| Deploy API | deployapi | Handles deployments and manifests |
| Scheduled API | scheduledapi | Schedules asynchronous tasks |
| BP Runners | bp_agent | Runs build and deploy jobs |
| Database | db | MySQL, stores all platform data |
| Redis | redis | Cache and task queues |
1. Prerequisites #
1.1 Supported OS and hardware #
| Requirement | Value |
|---|---|
| Operating system | Ubuntu 20, 22, 24, RHEL 8, RHEL 9, or Amazon Linux 2023 |
| Minimum hard disk | 100 GB on /home/buildpiper/ |
| Minimum RAM | 16 GB |
| Minimum cores | 8 cores |
| Ulimit value in the Docker container | The ulimit is configured by default |
Note: This release (v2.0-alpha-rpm) is supported on RHEL 9, RHEL 8 and Amazon Linux 2023. The Ubuntu release (v2.0-alpha-debian) is for Ubuntu (amd64). Pick the release that matches your operating system in section 2.
Air-gapped environments need around 200 GB of disk space instead of 100 GB.
1.2 Required software and access #
These must be available on the VM:
| Requirement | Version or detail |
|---|---|
| Docker | 24.x or later |
| Docker Compose | v2.20+ (Compose V2 plugin) |
| Git | 2.40+ |
| gh (GitHub CLI) | Latest |
| curl | Latest |
| AWS CLI | v2 (latest v2.x) |
| HTOP | 3.3.0 |
| GitHub personal access token | Used to authenticate and download the release files |
| Internet connectivity | To download packages and Docker images |
1.3 Infrastructure sizing #
Use this reference as the base sizing for the BP components.
| Component | Base OS | Base VM configuration | The VM has | Parallel executors |
|---|---|---|---|---|
| BP Master VM | Ubuntu 20, 22, 24; RHEL 8, 9; Amazon Linux 2023 | 8 core / 16 GB | Docker containers for MySQL, Redis, Public API, Deploy API, async, sync, frontend and Scheduled API | 2 build and deploy workers for single architecture, 1 build and for multi-architecture |
| BP Agent VM | Ubuntu 20, 22, 24; RHEL 8, 9; Amazon Linux 2023 | 8 core / 16 GB | 1 bp-agent container | 6 build and deploy workers for single architecture, 4 for multi-architecture |
| BP Agent VM | Ubuntu 20, 22, 24; RHEL 8, 9; Amazon Linux 2023 | 16 core / 32 GB | 1 bp-agent container | 12 for single architecture, 8 for multi-architecture |
1.4 Ports to open #
| Port | Description | Used by |
|---|---|---|
| 80, 443 | BP HTTP/HTTPS port | BuildPiper frontend |
| 9123, 9124, 9125 | BP HTTPS port | Worker agent ports (scheduledapi, deployapi, bp_agent) |
| 9000–9005 | BP internal communication | BP health agent ports |
| 85 | MI HTTPS port | Maturity Insights inside port |
| 11434 | Olly endpoint (Ollama) | MCP server |
1.5 Whitelist the BP container repository #
BP images are pulled from the BP container repository, so this URL must be reachable from the VM:
https://registry.buildpiper.in
1.6 Component versions #
Each BP component has its own repository and production sample tag.
| Component | Git repository | Prod sample tag | Branch |
|---|---|---|---|
| Frontend | frontend-react | vindh-2.0.0_GA_hotfix2 | master |
| Public API | buildpiper_api | vindh_2.0.0_GA_hotfix5 | master |
| Deploy API | okts-rest-api | Vindh-2.0.0_GA | master |
| BP Runner | bp-agents | vindh_2.0.0_GA_hotfix3 | master |
| DB | — | Vindh-2.0.0_GA | master |
| Redis | — | Vindh-2.0.0_GA | master |
| MI Backend | maturity_dashboard | ERA-3.0 | master |
| MI Frontend | maturity-insights-frontend | ERA-3.0 | master |
| Olly Backend | — | drop1 | — |
| Olly MCP Server | — | 1.0 | — |
| Olly Frontend | — | drop3 | — |
The tags above are examples. Always get the current production-stable tags from the BP product team before you install or upgrade.
1.7 Shared storage (multi-agent setups) #
The recommended setup is to run the agents on separate virtual machines (VMs) from the controller. In this setup, an NFS (Network File System) is required to share the necessary files between the controller and the agents. You need three NFS volumes, mounted at:
/home/buildpiper/.codebase
/home/buildpiper/.common
/home/buildpiper/.log

NFS volumes mounted for .codebase, .common and .log
Add these mounts to /etc/fstab so they survive a reboot.
Microsoft Azure Storage: these volumes are often mounted by root. Update /etc/fstab so they mount as the buildpiper user instead.

fstab entries so the volumes mount as the buildpiper user
Confirm the volumes are mounted:
mount -a
systemctl daemon-reload
df -h

Verifying the mounted volumes with df -h
2. Install BuildPiper #
Choose the install path that matches the operating system of your VM. The steps in section 3 and after are the same for both.
| If your VM runs | Use |
|---|---|
| RHEL 8, RHEL 9 or Amazon Linux 2023 | 2A. Install on RHEL or Amazon Linux |
| Ubuntu (amd64) | 2B. Install on Ubuntu |
2A. Install on RHEL or Amazon Linux (RPM) #
Step 1: Authenticate with GitHub #
Authenticate with GitHub using your personal access token:
gh auth login --with-token < token
Or export the token as an environment variable:
export TOKEN=$(cat token)
Step 2: Clone the repository #
Set the release tag and clone the buildpiper-packaging repository:
export GIT_TAG="v2.0-alpha-rpm"
git clone https://$TOKEN@github.com/buildpiper/buildpiper-packaging.git -b $GIT_TAG
Step 3: Copy the OS level dependencies #
Copy the dependencies folder to your home directory. It holds all the dependencies BP needs.
cp -r buildpiper-packaging/deps ~/.
Step 4: Download the release files #
Create a directory for the Docker images:
mkdir docker-images
Download the Docker images (*.tar.gz):
gh release download v2.0-alpha-rpm
-R buildpiper/buildpiper-packaging
-p "*.tar.gz"
-D docker-images
Download the installation script:
gh release download v2.0-alpha-rpm
-R buildpiper/buildpiper-packaging
-p "buildpiper-install"
Download the BuildPiper package:
gh release download v2.0-alpha-rpm
-R buildpiper/buildpiper-packaging
-p "buildpiper-2.0-alpha.x86_64"
After the downloads, your home directory should look like this:
~/
├── buildpiper-packaging/
├── deps/
├── docker-images/
│ └── *.tar.gz
├── buildpiper-install
└── buildpiper-2.0-alpha.x86_64
Step 5: Run the installation script #
Make the installation script executable and run it:
chmod +x buildpiper-install
./buildpiper-install
Step 6: Check the dependencies #
Before you run BuildPiper, check that all the dependencies are present in the deps folder, and follow any instructions in it.
cd ~/deps
Step 7: Verify the installation #
Check that the buildpiper command is available:
buildpiper --version
Step 8: Clean up #
Remove the temporary files after the installation:
rm -rf buildpiper-packaging
rm token
2B. Install on Ubuntu (Debian) #
Step 1: Authenticate with GitHub #
Authenticate with GitHub using your personal access token:
gh auth login --with-token < token
Or export the token as an environment variable:
export TOKEN=$(cat token)
Step 2: Clone the repository #
Set the release tag and clone the buildpiper-packaging repository:
export GIT_TAG="v2.0-alpha-debian"
git clone https://$TOKEN@github.com/buildpiper/buildpiper-packaging.git -b $GIT_TAG
Step 3: Copy the dependencies #
Copy the deps folder to your home directory. It holds all the dependencies BP needs.
cp -r buildpiper-packaging/deps ~/.
Step 4: Download the release files #
Create a directory for the Docker images:
mkdir docker-images
Download the Docker images (*.tar.gz):
gh release download v2.0-alpha-debian
-R buildpiper/buildpiper-packaging
-p "*.tar.gz"
-D docker-images
Download the installation script:
gh release download v2.0-alpha-debian
-R buildpiper/buildpiper-packaging
-p "buildpiper-install"
Download the BuildPiper package:
gh release download v2.0-alpha-debian
-R buildpiper/buildpiper-packaging
-p "buildpiper-alpha-2.0_amd64.deb"
After the downloads, your home directory should look like this:
~/
├── buildpiper-packaging/
├── deps/
├── docker-images/
│ └── *.tar.gz
├── buildpiper-install
└── buildpiper-alpha-2.0_amd64.deb
Step 5: Run the installation script #
Make the installation script executable and run it:
chmod +x buildpiper-install
./buildpiper-install
Step 6: Check the dependencies #
Before you run BuildPiper, check that all the dependencies are present in the deps folder, and follow any instructions in it.
cd ~/deps
Step 7: Verify the installation #
Check that the buildpiper command is available:
buildpiper --version
Step 8: Clean up #
Remove the temporary files after the installation:
rm -rf buildpiper-packaging
rm token
3. Configure and start BuildPiper #
After the installation, follow these steps:
- 1
Switch to the buildpiper user.
- 2
Go to the deployment directory.
- 3
Configure BuildPiper for your environment.
- 4
Start the services with Docker Compose.
- 5
Check that the services are running.
- 6
Watch the logs.
Switch to the buildpiper user #
su - buildpiper
Go to the deployment directory #
cd /home/buildpiper/setup_toolkit
Configure BuildPiper #
Configure BuildPiper according to your needs.
Start the services #
docker compose up -d

All components running after docker-compose up -d
Check that the services are running #
docker compose ps
Watch the logs #
docker compose logs -f
After the first start #
Log in to the BP UI #
Open the BuildPiper UI in a browser and log in with the default credentials provided by the BP team. Change the password right after the first login.
Load the environment master data #
Once publicapi is up, load the environment master data:
docker exec -it publicapi bash
python manage.py loaddata api/settings/metadata/environment_master.json
Restart the components #
Restart publicapi, scheduledapi, and deployapi so they pick up the loaded data.
4. Configure System Settings #
System Settings are the global settings that apply across BuildPiper. Open them from the BP UI dashboard.
4.1 User domain #
Set the user domain to your BP API URL.

User Domain setting in BP System Settings
If no domain mapping exists yet, you can use the IP address instead:
http://<IP_ADDRESS>:9001
4.2 URL whitelisting #
If the whitelist field is empty, BP blocks authentication requests to every external domain by default. Add the third-party authentication domains your teams need:
["github.com", "gitlab.com", "bitbucket.com", "bitbucket.org", "buildpiper.atlassian.net"]

Third-party whitelisted domains
4.3 Agent Monitoring #
Once BP is installed and the Platform API, BP Runner (agent), and frontend components are up, enable the Agent Monitoring feature so BP reports the health of each agent.
This is covered in its own guide: Agent Monitoring.
5. Configure notifications #
The notification setup is covered in its own guide: Configure Notifications.
6. Notes and known constraints #
When you update client-side tags, check whether matching changes are needed in the Docker Compose file.
During a tag upgrade, do not change the secret_key or the fernet_key by accident.
If you are migrating from a root setup to a non-root setup, move the .kube config files from the old directory to /home/buildpiper/.kube before BP goes live.
All api.json copies must stay in sync. After editing one, copy it to the other location and compare the checksums.