Backstage Workshop
April 11, 2025 ยท View on GitHub
1. Prerequisites
Configure npmrc file with the following content, available in home directory.
- Windows
a.%USERPROFILE%.npmrc (eg: C:\Users\username.npmrc) - Linux a.~/.npmrc (eg: /home/username/.npmrc)
- Mac a.~/.npmrc (eg: /Users/username/.npmrc)
- Content of the npmrc file. a. Add the following content to the npmrc file.
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
registry=https://registry.npmjs.org/
strict-ssl=false
@digital-ai:registry=https://registry.npmjs.org
Setup of Digital-ai Deploy , Digital-ai Release and Backstage using script available under docker directory.
1. Prerequisites
a. Install docker and docker-compose.
b. Run the below command from the root directory of the backstage.
cd backstage-with-new-backend
yarn install
b. Backstage Setup Instructions
This section outlines how to configure and run the Backstage application. Please follow the instructions carefully.
Running Backstage
Before you run the Backstage application, you need to update the docker/dai-backstage_up.sh file according to your desired method of execution:
-
To run the backstage in docker with the github auth , dai-release and dai-deploy plugin:
- Refer the docker/README.md for more details.
- Set the value of
START_BACKSTAGE_IN_DOCKERtotrue.
-
To start Backstage from a script:
- Set the value of
BACKSTAGE_MANUAL_INSTALLtofalse.
- Set the value of
-
To start Backstage manually:
- Set the value of
BACKSTAGE_MANUAL_INSTALLtotrue. - You will find the
.envfile in thebacstage-new-backenddirectory.
- Set the value of
# Set Network, Environment variables and start the services.
export NETWORK_NAME=dai-backstage
export DAI_RELEASE_IMAGE=xebialabs/xl-release:24.3
export DAI_DEPLOY_IMAGE=xebialabs/xl-deploy:24.3
export DAI_BACKSTAGE_IMAGE=xebialabsunsupported/dai-backstage-docker:1.0.1
export DAI_DEPLOY_USERNAME=admin
export DAI_DEPLOY_PASSWORD=admin
export GITHUB_TOKEN=<GITHUB_TOKEN>
export AUTH_GITHUB_CLIENT_ID=<AUTH_GITHUB_CLIENT_ID>
export AUTH_GITHUB_CLIENT_SECRET=<AUTH_GITHUB_CLIENT_SECRET>
export START_BACKSTAGE_IN_DOCKER=false
export BACKSTAGE_MANUAL_INSTALL = true
- Run the following command to start the deploy, release and backstage
cd docker
./dai-backstage_up.sh
eg: We are starting the release and deploy with a script and updating the environment file in the backstage-new-backend directory.

- Start the Backstage application using the following command:
cd ../backstage-with-new-backend
LOG_LEVEL=debug NODE_OPTIONS=--no-node-snapshot yarn dev:env
- View the Digital-ai Deploy - Active Deployment in Backstage app.

- View the Digital-ai Deploy - Archive Deployment in Backstage app.

- View the Digital-ai Release - Active Release in Backstage app.
- View Digital-ai Release - Template in Backstage app.

- View Digital-ai Release - Workflow in Backstage app.

Setup backstage using New backend system and connect to existing Deploy and Release instance.
1. Run the following command from root directory
cd backstage-with-new-backend
3. Run the following command to start the backstage app with deploy plugin installed.
yarn install
4. Create the .env file and update the values for the environment variables like below.
[ishwarya@ishwarya-Precision-5480 backstage-with-new-backend]* update_readme $ cat .env
GITHUB_TOKEN=ghp_vC2ZE2Xzklr6UbegqWIwle8OvAfeBR01De4Aey
DAI_RELEASE_INSTANCE1_NAME=dai-release-instance
DAI_RELEASE_INSTANCE1_TOKEN=
DAI_RELEASE_INSTANCE1_HOST=http://172.29.0.2:5516
DAI_DEPLOY_HOST=http://172.29.0.3:4516
DAI_DEPLOY_USERNAME=admin
DAI_DEPLOY_PASSWORD=admin
DAI_DEPLOY_AUTH_TOKEN=Basic YWRtaW46YWRtaW4=
- Run the following command to start the backstage app.
LOG_LEVEL=debug NODE_OPTIONS=--no-node-snapshot yarn dev:env
- Open your browser at http://localhost:3000 to access the backstage with the default plugins[dai-release, dai-deploy] installed.
Documentation Links
Digital.ai Deploy:
Digital.ai Release: