yaegashi / dx2devops-backstage-containerapp

Enterprise Backstage DevOps on Azure Container Apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dx2devops-backstage-containerapp

Introduction

This project integrates Backstage with Azure Container Apps using the Azure Developer CLI (AZD).

It includes @internal/plugin-auth-backend-module-azure-easyauth-provider which is an auth backend module based on Azure EasyAuth auth provider. The module is compatible with the new backend system introduced in Backstage v1.24.0 and later (see backstage/backstage#19476 for more details).

Local Development

Follow these steps to build and test the container locally:

$ docker compose build
$ docker compose up -d
$ xdg-open http://localhost:7007

Azure Deployment

First, register a Microsoft Entra ID (ME-ID) app for the user authentication (see doc).

You will need the following information from your app:

  • Tenant ID
  • Client ID
  • Client Secret

Then, deploy the Azure container app using Azure CLI (az) and Azure Developer CLI (azd):

$ azd auth login
$ azd env new <ENV-NAME>
$ azd env set MS_TENANT_ID <TENANT-ID>
$ azd env set MS_CLIENT_ID <CLIENT-ID>
$ azd env set MS_CLIENT_SECRET <CLIENT-SECRET>
$ azd provision               # Provision Azure container app resources
$ azd deploy                  # Build and deploy a container to the app

$ az login
$ ./update-redirect-uris.sh   # Update redirect URIs of the ME-ID app using az

Architecture

Solution overview

About

Enterprise Backstage DevOps on Azure Container Apps


Languages

Language:Bicep 66.7%Language:TypeScript 28.3%Language:Dockerfile 3.4%Language:HTML 1.0%Language:Shell 0.5%Language:JavaScript 0.1%