Skip to content

mathieu-benoit/deploy-backstage-with-score

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Backstage application is used as part of this blog post Deploy Backstage with Score, from local to Kubernetes.

Local with yarn

To start the app, run:

yarn install
yarn start

Then navigate to http://localhost:3000.

Local with docker/podman

By building a new container image

docker image build -t backstage:local .

docker run -it \
    -e APP_CONFIG_backend_database_client='better-sqlite3' \
    -e APP_CONFIG_backend_database_connection=':memory:' \
    -p 7007:7007 \
    backstage:local

By using the pre-built container image

docker run -it \
    -e APP_CONFIG_backend_database_client='better-sqlite3' \
    -e APP_CONFIG_backend_database_connection=':memory:' \
    -p 7007:7007 \
    docker pull ghcr.io/mathieu-benoit/backstage:latest

Then navigate to http://localhost:7007.

Local with score-compose

score-compose init \
    --no-sample \
    --patch-templates https://raw.githubusercontent.com/score-spec/community-patchers/refs/heads/main/score-compose/unprivileged.tpl \
    --provisioners https://raw.githubusercontent.com/score-spec/community-provisioners/refs/heads/main/dns/score-compose/10-dns-with-url.provisioners.yaml

By building a new container image

score-compose generate score.yaml \
    --build 'backstage={"context":".","tags":["backstage:local"]}'

By using the pre-built container image

score-compose generate score.yaml \
    --image ghcr.io/mathieu-benoit/backstage:latest
docker compose up -d

Then navigate to http://localhost:7007.

Local with score-k8s

score-k8s init \
    --no-sample \
    --patch-templates https://raw.githubusercontent.com/score-spec/community-patchers/refs/heads/main/score-k8s/unprivileged.tpl \
    --provisioners https://raw.githubusercontent.com/score-spec/community-provisioners/refs/heads/main/dns/score-k8s/10-dns-with-url.provisioners.yaml

By using the locally built container image

kind load docker-image backstage:local

score-k8s generate score.yaml \
    --image backstage:local

By using the pre-built container image

score-k8s generate score.yaml \
    --image ghcr.io/mathieu-benoit/backstage:latest
kubectl apply -f manifests.yaml

Then navigate to http://localhost:7007.

About

Deploy Backstage with Score via score-compose and score-k8s

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •