Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
Simplify deployment w/ .env and agnostic manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
toolboc committed Apr 25, 2020
1 parent a939db6 commit d7cfc5c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ machine-learning-notebooks/aml_config/config.json

# Edge development
**/config/deployment*.json
**/.env

camera-sdk/iotccsdk.egg-info/*
camera-sdk/dist/*
Expand Down
5 changes: 5 additions & 0 deletions samples/official/camera-tagging/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CONTAINER_REGISTRY_NAME=
LOCAL_STORAGE_ACCOUNT_KEY=jukoPNlrFwXR/eELSxryaw==
LOCAL_STORAGE_ACCOUNT_NAME=camerataggingmodulelocal
DESTINATION_STORAGE_NAME=camerataggingmodulecloud
CLOUD_STORAGE_CONNECTION_STRING=
24 changes: 12 additions & 12 deletions samples/official/camera-tagging/deployment.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"status": "running",
"restartPolicy": "always",
"settings": {
"image": "${MODULES.CameraTaggingModule}",
"image": "toolboc/camerataggingmodule:latest",
"createOptions": {
"ExposedPorts": {
"3000/tcp": {},
Expand Down Expand Up @@ -93,13 +93,13 @@
},
"env": {
"RTSP_IP": {
"value": "192.168.0.103"
"value": "wowzaec2demo.streamlock.net"
},
"RTSP_PORT": {
"value": "8900"
"value": "554"
},
"RTSP_PATH": {
"value": "live"
"value": "vod/mp4:BigBuckBunny_115k.mov"
},
"REACT_APP_SERVER_PORT": {
"value": "3003"
Expand All @@ -114,10 +114,10 @@
"value": "11002"
},
"REACT_APP_LOCAL_STORAGE_ACCOUNT_NAME": {
"value": "<local-storage-account-name>"
"value": "$LOCAL_STORAGE_ACCOUNT_NAME"
},
"REACT_APP_LOCAL_STORAGE_ACCOUNT_KEY": {
"value": "<local_storage_key>"
"value": "$LOCAL_STORAGE_ACCOUNT_KEY"
}
}
},
Expand All @@ -127,11 +127,11 @@
"status": "running",
"restartPolicy": "always",
"settings": {
"image": "mcr.microsoft.com/azure-blob-storage:1.2",
"image": "mcr.microsoft.com/azure-blob-storage:latest",
"createOptions": {
"Env":[
"LOCAL_STORAGE_ACCOUNT_NAME=<local-storage-account-name>",
"LOCAL_STORAGE_ACCOUNT_KEY=<key>"
"LOCAL_STORAGE_ACCOUNT_NAME=$LOCAL_STORAGE_ACCOUNT_NAME",
"LOCAL_STORAGE_ACCOUNT_KEY=$LOCAL_STORAGE_ACCOUNT_KEY"
],
"HostConfig":{
"Binds": ["/data/containerdata:/blobroot"],
Expand Down Expand Up @@ -166,10 +166,10 @@
"deviceToCloudUploadProperties": {
"uploadOn": true,
"uploadOrder": "OldestFirst",
"cloudStorageConnectionString": "<connection-string>",
"cloudStorageConnectionString": "$CLOUD_STORAGE_CONNECTION_STRING",
"storageContainersForUpload": {
"<source-local-storage-account-name>": {
"target": "<destination-storage-name>"
"$LOCAL_STORAGE_ACCOUNT_NAME": {
"target": "$DESTINATION_STORAGE_NAME"
}
},
"deleteAfterUpload": true
Expand Down

0 comments on commit d7cfc5c

Please sign in to comment.