update non-pipeline run bash scripts

This commit is contained in:
Rebecca McFadden 2019-08-01 21:13:22 -07:00
parent e2d1c94447
commit 733923410c
6 changed files with 43 additions and 5 deletions

View File

@ -1,3 +1,9 @@
#!/bin/bash
IMAGE=<your_registry>.azurecr.io/kubeflow/deploy
while getopts "r:" option;
do
case "$option" in
r ) REGISTRY_NAME=${OPTARG};;
esac
done
IMAGE=${REGISTRY_NAME}.azurecr.io/deploy
docker build -t $IMAGE . && docker run -it $IMAGE

View File

@ -1,4 +1,12 @@
#!/bin/bash
while getopts "n:w:g:" option;
do
case "$option" in
n ) DEPLOYMENT_NAME=${OPTARG};;
w ) WORKSPACE=${OPTARG};;
g ) RESOURCE_GROUP=${OPTARG};;
esac
done
echo "test the deployment with a burrito image"
az ml service run -n ${DEPLOYMENT_NAME} -d '{ "image": "https://www.exploreveg.org/files/2015/05/sofritas-burrito.jpeg" }' -w ${WORKSPACE} -g ${RESOURCE_GROUP}
echo "test the deployment with a taco image"

View File

@ -1,3 +1,9 @@
#!/bin/bash
IMAGE=<your_registry>.azurecr.io/kubeflow/preprocess
while getopts "r:" option;
do
case "$option" in
r ) REGISTRY_NAME=${OPTARG};;
esac
done
IMAGE=${REGISTRY_NAME}.azurecr.io/preprocess
docker build -t $IMAGE . && docker run -it $IMAGE

View File

@ -1,3 +1,9 @@
#!/bin/bash
IMAGE=<your_registry>.azurecr.io/kubeflow/profile
while getopts "r:" option;
do
case "$option" in
r ) REGISTRY_NAME=${OPTARG};;
esac
done
IMAGE=${REGISTRY_NAME}.azurecr.io/profile
docker build -t $IMAGE . && docker run -it $IMAGE

View File

@ -1,3 +1,9 @@
#!/bin/bash
IMAGE=<your_registry>.azurecr.io/kubeflow/register
while getopts "r:" option;
do
case "$option" in
r ) REGISTRY_NAME=${OPTARG};;
esac
done
IMAGE=${REGISTRY_NAME}.azurecr.io/register
docker build -t $IMAGE . && docker run -it $IMAGE

View File

@ -1,3 +1,9 @@
#!/bin/bash
IMAGE=<your_registry>.azurecr.io/kubeflow/training
while getopts "r:" option;
do
case "$option" in
r ) REGISTRY_NAME=${OPTARG};;
esac
done
IMAGE=${REGISTRY_NAME}.azurecr.io/training
docker build -t $IMAGE . && docker run -it $IMAGE