Skip to content

Instantly share code, notes, and snippets.

@matt-dres
Created December 21, 2022 20:19
Show Gist options
  • Save matt-dres/3835cdf380a583514b727f919cbf98df to your computer and use it in GitHub Desktop.
Save matt-dres/3835cdf380a583514b727f919cbf98df to your computer and use it in GitHub Desktop.
Demo script showcasing local accelerator testing using `demo-magic`
#!/bin/bash
# Clone this repo to have access to the script in the next line: https://github.com/paxtonhare/demo-magic
. demo-magic/demo-magic.sh
source $(pwd)/.demo-env
clear
pei "cd application-accelerator-samples"
pei "ls -lah"
PROMPT_TIMEOUT=5
wait
pei "tanzu acc generate-from-local --help"
PROMPT_TIMEOUT=10
wait
pei "clear"
pei "tanzu acc generate-from-local \n --accelerator-path angular-frontend=angular-frontend \n --fragment-names tap-workload \n --server-url http://accelerator.${TAP_URL} \n --output-dir ontap-angular-frontend"
PROMPT_TIMEOUT=5
wait
pei "cd ontap-angular-frontend"
pei "ls -lah"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment