fabric-samples/full-stack-asset-transfer-guide/infrastructure/sample-network/scripts/frontend_build.sh
Josh Kneubuhl 4c656f6215 Import Full Stack Asset Transfer Guide at commit fb554befdbbeff9e69159b54fce0b811603f29c7
Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
2022-11-09 13:14:04 -05:00

16 lines
No EOL
470 B
Bash

function launch_frontend() {
pushd $WORKSHOP_PATH/applications/frontend
log "Install dependencies"
npm install
log "Generate dist"
ng build
log "Build docker"
docker build -t localhost:5000/frontend .
#build docker image and push to local registary
log "Push docker image to registry"
docker push localhost:5000/frontend
popd
# docker push localhost:5000/rest-api
# #deploy rest api image to k8s
kubectl -n $WORKSHOP_NAMESPACE apply -f scripts/frontend_deployment.yaml
}