-
Notifications
You must be signed in to change notification settings - Fork 3
/
aktuellerStand.txt
24 lines (16 loc) · 1.18 KB
/
aktuellerStand.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#sending test-image to facedetectionapp
curl -X POST -F imageData=@56cf8f74-e15f-4d15-8547-aee511c2266e.jpg -F id=1002 https://facedetection-server.gentleriver-bc7d53da.westeurope.azurecontainerapps.io
# delete images with v1.*
docker images --format='{{.Repository}} {{.ID}} {{.Tag}}' | grep 'v1.' | cut -d' ' -f2 | xargs docker rmi -f
# delete app
az containerapp delete -g $RESOURCE_GROUP -n $CONTAINERAPPS_NAME -y &&\
az containerapp delete -g $RESOURCE_GROUP -n $CONTAINERAPPSSERVER_NAME -y &&\
az containerapp delete -g $RESOURCE_GROUP -n imageviewer -y
# listen to streaming log
watch -n 1 az containerapp logs show -g $RESOURCE_GROUP -n $CONTAINERAPPS_NAME
#alternative
id=$(az containerapp revision list -g MVPSession -n facedetection-app --query "[?properties.active].id" -o tsv)
az containerapp revision restart --revision facedetection-app --resource-group MVPSession --ids $id
# getting last used version of facedetection
alias lastFaceAppVersion=`docker images | grep -v facedetectionapp | grep amd | awk '{print $2}' | sort | tail -n1 | cut -d '-' -f2`
alias lastFaceServerVersion=`docker images | grep facedetectionapp | grep amd | awk '{print $2}' | sort | tail -n1 | cut -d '-' -f2`