Developer Guide
This guide walks you step by step through setting up the development environment, building the project, running all required services locally, and verifying everything works.
The goal is that you can follow this guide from top to bottom without prior project knowledge.
1. Prerequisites
Before you start, make sure all required tools are installed and working.
1.1 Docker
Docker is required to run the demo application.
To install Docker, follow the steps for your distribution: https://docs.docker.com/engine/install
After installation, verify Docker is working:
systemctl status docker.service
Now initialize a Docker Swarm (required for deployment features):
docker swarm init
You should see a message that the node is now a swarm manager.
1.2 Java & Maven
To build the project you need the following tools:
- JDK 21
- Maven 3.9
Option A: Using mise-en-place (recommended)
To install mise-en-place, follow this guide: https://mise.jdx.dev/getting-started.html
Option B: Manual installation
Install the required tools from your distribution’s repositories or download them from the project pages. After installation, ensure that the tools are available in your PATH.
2. Clone Repositories
All components are split into multiple repositories. Clone all required repositories into the same parent directory:
git clone git@github.com:installr-io/installr.git
git clone git@github.com:installr-io/atrium.git
git clone git@github.com:installr-io/ipf.git
git clone git@github.com:installr-io/ic.git
git clone git@github.com:installr-io/demo-app.git
3. Build & Run installr
The installr repository contains the core backend service (installrd).
cd installr/
3.1 Install toolchain (if using mise)
mise trust
mise install
This installs the correct Java and Maven versions automatically.
3.2 Build the project
mvn clean install
3.3 Set up the local database
installrd uses a local H2 database to store installation metadata. The database is located at:
~/.installrd
Create the initial configuration and empty database:
cp -r ./installrd/src/main/non-packaged-resources/config/ ~/.installrd/
Now edit the ~/.installrd/config.yaml:
Required changes:
- Uncomment the deployer section
- Uncomment the repositories section
If these are not enabled, deployments will not work.
3.4 Create demo namespace
installrd uses namespaces to separate installations from each other:
mkdir -p ~/.installrd/namespaces/demo
touch ~/.installrd/namespaces/demo/config.yaml
This prepares a namespace where applications can be installed later.
For now ~/.installrd/namespaces/demo/config.yaml can be left empty.
3.5 Create dev certificates
installrd only accepts HTTPS requests with a client certificate (mTLS), also in dev mode. Create a CA, a server
certificate for localhost and an admin certificate with the same script as in production:
./installrd/src/main/non-packaged-resources/scripts/installrd-certs init
The script creates the CA in ~/.installrd/pki/, the server certificate in ~/.installrd/tls/ and an ic config
with the admin certificate in ~/.installrd/admin.yaml (used in step 7). The example config copied in 3.3 already
grants this certificate admin rights in ~/.installrd/config.yaml:
security:
admins:
- "CN=admin,O=installr.io"
See INSTALL.md, section “Set up Security”, for roles and certificates in general.
3.6 Start installrd
mvn -f installrd/pom.xml quarkus:dev
This starts installrd in dev mode on https://localhost:9316. Check the server certificate (/version is reachable
without a client certificate):
curl --cacert ~/.installrd/tls/ca.crt https://localhost:9316/version
If you prefer to run the binary, run
./installrd/target/installrd
Leave this terminal running.
4. Build & Run atrium
Open a new terminal.
cd atrium/
If you work with mise-en-place, run
mise trust
4.1 Build the project
mvn clean install
4.2 Set up the configuration
mkdir ~/.atrium/ && cp -r src/main/non-packaged-resources/config/* ~/.atrium/
This copies default configuration files.
4.3 Start atrium
mvn quarkus:dev
This starts atrium in dev mode.
Leave this terminal running, too.
5. Build ipf and ic
Open another terminal.
Now we build two required tooling components:
- ipf: The packaging tool
- ic: installrd’s command-line client
5.1 Build ipf
If you use mise-en-place, you know what to do ;)
cd ipf/
mvn clean install
5.2 Build ic
cd ../ic/
mvn clean install
6. Build and Package demo-app
cd ../demo-app/
Build the application and create an IPF package:
mvn clean package -Dquarkus.container-image.build ipf:package
What happens here:
- The application is compiled
- A container image is built
- An IPF package is generated
6.1 Push to local registry
mvn ipf:push
This uploads the package to the local atrium registry.
7. Install the Application
ic connects to installrd with a client certificate. installrd-certs init (see 3.5) created an ic config with
the admin certificate; use it as ~/.ic/config.yaml (or merge its local config into an existing one):
mkdir -p ~/.ic && install -m 600 ~/.installrd/admin.yaml ~/.ic/config.yaml
See the ic README for the config format.
Now we install the demo-app with ic:
../ic/target/ic install -n demo demo-app:0.1.0
Explanation:
-n demo→ installs into the demo namespacedemo-app:0.1.0→ package name and version
8. Test the Setup
Verify the application is running:
docker service ls
This should show the running Docker service demo-demo-app_srv.
curl http://127.0.0.1:8088
This should greet you with an HTML page saying: Hello 'installrd' World :)
Troubleshooting
Docker issues
- Ensure the Docker daemon is running
- Re-run
docker swarm initif needed
Port conflicts
- Make sure no other service is using port 8088
Build failures
- Verify Java and Maven versions
- Run
mvn clean installagain
Service not reachable
- Check terminal logs
- Ensure all services are running in parallel
Final Result
You now have:
- All services running locally
- A built and deployed demo application
- A working end-to-end development setup
You can now start developing, modifying, and testing changes locally.