Service Configuration

3 min read

Service Configuration #

Overview

This guide covers the essential configuration details required to onboard a new service onto BuildPiper. It explains how to configure basic service details, associate environments, manage CI/CD settings, and configure database management. It also outlines the key fields, configuration requirements, and best practices to help ensure a smooth onboarding process aligned with your development and deployment workflows.

1. Service Configuration Overview #

There are certain details that a platform team user should be aware of while onboarding a new service onto BuildPiper. The platform supports multiple service architectures and build strategies, allowing teams to align onboarding with their existing development practices.

Swipe horizontally to view all columns →
Capability Description
Flexible Build Strategies Choose between “Build once and promote” for Docker-based workflows or “Build for every environment” depending on your release model.
Multi-Architecture Build Support Build container images for multiple CPU architectures, including AMD64 (x86_64) and ARM64, using a single pipeline. BuildPiper supports architecture-specific images and multi-architecture images that automatically select the appropriate architecture when pulled. For more details, refer to the BuildPiper Multi-Architecture Build Guide.

The end-to-end service configuration flow in BuildPiper is shown below.

Service Configuration screenshot 1

Figure 1: Service Configuration Flow

2. Configuration Fields #

The following fields are required when onboarding a new service through the BuildPiper UI.

Swipe horizontally to view all columns →
Field Name Mandatory Configuration Guide
Service Name Yes A unique identifier for the microservice (e.g., payment-gateway). Use alphanumeric characters and hyphens only.
Service Type Yes Select the service architecture from the dropdown: microservice (containerised), VM-based (legacy/standalone), or Android (mobile builds).
Business Functions No Specify the business vertical, functional role, or business category this service belongs to (e.g., “Order Processing”).
How do you build? Yes Build once and promote: The same artifact/image moves through all environments (Dev → QA → Stage → UAT → Prod). Build for every environment: A new artifact is compiled specifically for each environment.

3. Workflow: Onboarding a Service via BP-UI #

The BuildPiper workflow to onboard a service is detailed below.

Service Configuration screenshot 2

Figure 2: Navigation to Service Overview

  1. 1

    Login to BuildPiper.

  2. 2

    Switch to User Portal.

  3. 3

    Click Application.

  4. 4

    Select the application.

  5. 5

    Open Service Overview.

  6. 6

    Click + ADD SERVICE.

  7. 7

    Fill in the service details and click Save to onboard the service.

Note: The BP Service onboarding page is accessible inside the User Portal.

CLI option: Besides the BP-UI, you can also onboard and configure a service from the command line using BPCTL, the BuildPiper CLI. This is useful for scripting and automating service onboarding.

4. Strategic Considerations for Onboarding Services #

Keep these two best practices in mind to simplify tracking and avoid environment-drift issues.

Swipe horizontally to view all columns →
Best Practice Description
Naming Consistency It is best practice to match the service name with your Git repository name to simplify tracking across the CI/CD pipeline.
Build Strategy “Build once and promote” is the industry standard for Docker-based workflows. It ensures the exact code tested in lower environments reaches production, reducing “it worked in Dev but not in Prod” scenarios.

5. Add Service #

Reference screenshots showing the service onboarding flow inside BuildPiper.

Service Configuration screenshot 3

Figure 3: Onboarding a sample service by providing relevant details

6. Add Environment #

After the service is added, you have to decide in which environments build and deployment will be done for this service (dev, QA, Prod etc). Accordingly add those environments to service and for each environment define corresponding Build and Deploy configurations.

Note: If you follow the Build Once, Promote approach, you may not need to configure build details for every environment, as the same build artifact is promoted across environments.

Service Configuration screenshot 4

Figure 4: Environment Basic Details

Swipe horizontally to view all columns →
Field Name Mandatory Description
Select Environment Yes The target environment (e.g., Dev, QA, Prod) to link to this service and configure for build and deployment. Use + ADD ENVIRONMENT to link another environment.
Select Registry Configuration No Push Registry Only: Push the built container images to a single configured registry. Pull and Push Registries: Pull base images from one registry and push the resulting built images to a separate registry.
Select Push Registry Yes The container registry where the Docker image built for this environment is pushed (e.g., ot-horbor).
Image Name Yes Repository path of the image in the push registry (e.g., ot-payment/prod/bp-prod).
Allow Manual Build Yes Allows users to trigger builds manually for the selected environment from the BuildPiper dashboard. Automated build triggers remain available.
Allow Manual Deploy Yes Allows users to initiate deployments manually to the selected environment. Automated deployment triggers remain available.
Do you want to push data for insights? No Enable this option to send build and deployment data to Maturity Insights for tracking and analysis. Disabled by default.
Select Job Template (version) Yes Choose the Job Template version that fits your workflow: Version 2 for standard pipelines, or Version 3 for more flexibility.
Select Job Template No The predefined workflow template that defines how this service is built, tested and deployed in this environment (e.g., OT-DEMO-MS-V2, marked as Default Template).

Read more: Environment Configuration