Created
December 21, 2022 20:19
-
-
Save matt-dres/3835cdf380a583514b727f919cbf98df to your computer and use it in GitHub Desktop.
Demo script showcasing local accelerator testing using `demo-magic`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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