Skip to content

Commit 5fcced6

Browse files
author
naman-msft
committed
updated docs;
1 parent c3f1ab5 commit 5fcced6

File tree

3 files changed

+44
-7
lines changed

3 files changed

+44
-7
lines changed

scenarios/CreateContainerAppDeploymentFromSource/create-container-app-deployment-from-source.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -416,12 +416,7 @@ export COMPUTER_VISION_KEY=$(az cognitiveservices account keys list --name $MY_C
416416

417417
## Deploy the code into a Container App
418418

419-
Now that we've got our storage, database, and Computer Vision resources all set up, we are ready to deploy the application code. To do this, we're going to use Azure Container Apps to host a containerized build of our Next.js app. The `Dockerfile` is already created at the root of the repository, so all we need to do is run a single command to deploy the code. Before running this command, we first need to install the containerapp extension for the Azure CLI.
420-
421-
```bash
422-
az config set extension.dynamic_install_allow_preview=true
423-
az extension add --upgrade -n containerapp --debug
424-
```
419+
Now that we've got our storage, database, and Computer Vision resources all set up, we are ready to deploy the application code. To do this, we're going to use Azure Container Apps to host a containerized build of our Next.js app. The `Dockerfile` is already created at the root of the repository, so all we need to do is run a single command to deploy the code.
425420

426421
This command will create an Azure Container Registry resource to host our Docker image, an Azure Container App resource which runs the image, and an Azure Container App Environment resource for our image. Let's break down what we're passing into the command.
427422

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: batch/v1
2+
kind: Job
3+
metadata:
4+
name: oe-helloworld
5+
namespace: default
6+
spec:
7+
template:
8+
metadata:
9+
labels:
10+
app: oe-helloworld
11+
spec:
12+
containers:
13+
- name: oe-helloworld
14+
image: mcr.microsoft.com/acc/samples/oe-helloworld:latest
15+
resources:
16+
limits:
17+
sgx.intel.com/epc: "10Mi"
18+
requests:
19+
sgx.intel.com/epc: "10Mi"
20+
volumeMounts:
21+
- name: var-run-aesmd
22+
mountPath: /var/run/aesmd
23+
restartPolicy: "Never"
24+
volumes:
25+
- name: var-run-aesmd
26+
hostPath:
27+
path: /var/run/aesmd
28+
backoffLimit: 0

scenarios/metadata.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,21 @@
769769

770770
],
771771
"configurations": {
772-
"permissions": []
772+
"permissions": [],
773+
"configurableParams": [
774+
{
775+
"inputType": "textInput",
776+
"commandKey": "MY_RESOURCE_GROUP_NAME",
777+
"title": "Resource Group Name",
778+
"defaultValue": ""
779+
},
780+
{
781+
"inputType": "textInput",
782+
"commandKey": "MY_AZ_CLUSTER_NAME",
783+
"title": "AKS Cluster Name",
784+
"defaultValue": ""
785+
}
786+
]
773787
}
774788
},
775789
{

0 commit comments

Comments
 (0)