Prepare Your Development Environment
March 10, 2026 ยท View on GitHub
Note
This document outlines the development dependencies required to build the RP code.
Warning
Failure to complete all prerequisites in Local RP Development Setup will cause failures
Install Local RP Dependencies
Complete all steps located in Local RP Development Setup
Getting Started
Setting up your ARO-RP development environment.
- Clone the repository
git clone https://github.com/Azure/ARO-RP.git - Go to project
cd /path/to/ARO-RP - Configure
pyenvPython versionpyenv local 3.10.0 pyenv rehash python --version - Make environment
make pyenv - Login to Azure
Warning
This will install the
azclient. However, if the install fails you can attempt a re-install with:source pyenv/bin/activate pip install azure-cliaz login - Configure
git- Set pre-commit hook
make init-contrib- Set GitHub username globally
git config --global github.user "<USERNAME>"Tip
Your GitHub username can optionally be set locally to this repository
git config github.user "<USERNAME>"
Getting Started With Docker Compose
- Install optional dependencies
- Check the
env.examplefile and copy it to create your owncp env.example env - Source the
envfile. ./env - Run VPN, RP, and Portal services using Docker Compose
docker compose up \ vpn \ rp \ portal
Bash Helpers
How to use ARO-RP Makefile
See Makefile Usage
Troubleshooting
| Issue | Resolution |
|---|---|
Error ./env:.:11: no such file or directory: secrets/env. | Run SECRET_SA_ACCOUNT_NAME=rharosecretsdev make secrets to resolve. |
az -v does not return aro as a dependency. | Ensure the environment file parameters are correctly set, following the env.example file. |
Git commit fails due to branch naming error: There is something wrong with your branch name... | Ensure the branch name follows the required pattern: ^${USERNAME}\/(ARO-[0-9]{4,}[a-z0-9._-]*|hotfix-[a-z0-9._-]+|gh-issue-[0-9]+[a-z0-9._-]*)$ If the PR is not tied to a Jira ticket, GitHub issue, or hotfix, use --no-verify with git commit to bypass the check. |