This script is built to initialize an existing/new FM app with the correct settings for our demo application.
- Create an app matching the
APP_NAME
if it doesn't already exist - Creates the following environments if they don't exist:
Production
,Pre-Prod
,QA
,Dev
- Initializes the needed flags
- Initializes the custom properties
- Sets up the target groups
cp .env.sample .env
vi .env # Replace with your FM user id and desired app name
pnpm install
pnpm start
YOUR_EMAIL=
YOUR_APP_NAME=
YOUR_CD_PROJECT=
curl -s https://raw.githubusercontent.com/cb-demos/fm-initializer/main/k8s/fm-initializer.yaml | cat | sed s/REPLACE_EMAIL/$YOUR_EMAIL/g | sed s/REPLACE_APP_NAME/$YOUR_APP_NAME/g | sed s/REPLACE_CD_PROJECT/$YOUR_CD_PROJECT/g | kubectl create -f -