kunickiaj / playhouse

https://backstage.frontside.services/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backstage

To start the Backstage app with Postgres via docker compose, run:

docker-compose up
yarn install
yarn dev

Running with simulation

We're using the Auth0 Simulator for local development.

It's automatically started by yarn dev.

Keep an eye for user information in the log output.

Log output with user information

Running with production config

Running with simulation should be used in most situations. However, there are times where using the production config is necessary to debug, e.g. specific Auth0 configuration issues.

With access to the Frontside 1Password vault and the 1Password CLI, you may inject the secrets into a .gitignored config file and use the yarn dev:config command to pick up these values.

op inject -i app-config.1password.yaml.tpl -o app-config-credentials.yaml

Running in minikube

TAG=whatever

yarn install
yarn tsc
yarn build
yarn build-image --tag backstage:$TAG

minikube start
eval $(minikube docker-env)
minikube image load backstage:$TAG

# TODO - need to modify the charts so that the following steps are automated but for now please do the following:
* πŸ’₯ comment out ./backstate/templates/certificate.yaml
* πŸ’₯ move ./backstage/templates/secrets.yaml to another directory
* πŸ’₯ comment out `volumeMounts` and `volumes`
* πŸ’₯ modify container command to exclude `app-config.production.yaml`

PG=whatever

helm upgrade --install min-postgres-chart ./charts/postgres \
  -f ./charts/postgres/Values.yaml \
  --set postgresUsername=$PG \
  --set postgresPassword=$PG

POSTGRES_SERVICE_PORT=5432 POSTGRES_USER=$PG POSTGRES_PASSWORD=$PG helm upgrade --install min-backstage-chart ./charts/backstage \
  -f ./charts/backstage/Values.yaml \
  --set backstageImage=backstage:$TAG \
  --set baseUrl=http://localhost:7007

kubectl port-forward svc/backstage 7007:80

About

https://backstage.frontside.services/


Languages

Language:TypeScript 92.8%Language:JavaScript 5.9%Language:HTML 0.6%Language:Smarty 0.3%Language:Dockerfile 0.3%