Spaces:
Sleeping
Sleeping
Avi Bissoondial commited on
Commit ·
8a00a9b
1
Parent(s): b57f58a
Azure add
Browse files- azure_build_and_start.sh +16 -0
- azure_clean.sh +7 -0
- azure_init.sh +11 -0
azure_build_and_start.sh
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#! /bin/bash
|
| 2 |
+
|
| 3 |
+
# Run the container on Azure
|
| 4 |
+
az containerapp create \
|
| 5 |
+
--name cs553-casestudy4-group13 \
|
| 6 |
+
--resource-group CS553 \
|
| 7 |
+
--environment managedenvironment-cs553 \
|
| 8 |
+
--image venkateshroshan/mlops-cs4:latest \
|
| 9 |
+
--ingress external \
|
| 10 |
+
--target-port 7860
|
| 11 |
+
|
| 12 |
+
# Get the URL
|
| 13 |
+
az containerapp show \
|
| 14 |
+
--name cs553-casestudy4-group13 \
|
| 15 |
+
--resource-group CS553 \
|
| 16 |
+
--query properties.configuration.ingress.fqdn
|
azure_clean.sh
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#! /bin/bash
|
| 2 |
+
|
| 3 |
+
# Build the container
|
| 4 |
+
az containerapp delete \
|
| 5 |
+
--name cs553-casestudy4-group13 \
|
| 6 |
+
--resource-group CS553 \
|
| 7 |
+
|
azure_init.sh
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#! /bin/bash
|
| 2 |
+
|
| 3 |
+
#This will initialize the azure resource group and environment
|
| 4 |
+
#Only needs to be ran once per azure environment
|
| 5 |
+
|
| 6 |
+
az group create --name CS553 --location eastus
|
| 7 |
+
|
| 8 |
+
az containerapp env create \
|
| 9 |
+
--name managedenvironment-cs553 \
|
| 10 |
+
--resource-group CS553 \
|
| 11 |
+
--location eastus
|