File tree Expand file tree Collapse file tree
web-app-cosmosdb-mongodb-api/python/src/static
web-app-cosmosdb-nosql-api/python/src/static
web-app-managed-identity/python/src/static
web-app-postgresql-flexible-server/python
web-app-sql-database/python/src/static Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "permissions" : {
3+ "additionalDirectories" : [
4+ " /home/paolo/localstack/localstack-pro/localstack-pro-azure"
5+ ],
6+ "allow" : [
7+ " Read(/home/paolo/localstack/localstack-pro/localstack-pro-azure/**)" ,
8+ " Edit(/home/paolo/localstack/localstack-pro/localstack-pro-azure/**)" ,
9+ " Write(/home/paolo/localstack/localstack-pro/localstack-pro-azure/**)" ,
10+ " Bash(cd /home/paolo/localstack/localstack-pro/localstack-pro-azure:*)" ,
11+ " Bash(/home/paolo/localstack/localstack-pro/localstack-pro-azure/**)"
12+ ]
13+ }
14+ }
Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ get_docker_container_port_mapping() {
6666}
6767
6868call_web_app () {
69+ # Web app port
70+ local web_app_port=8000
71+
6972 # Get the web app name
7073 echo " Getting web app name..."
7174 web_app_name=$( az webapp list --query ' [0].name' --output tsv)
@@ -125,9 +128,9 @@ call_web_app() {
125128 exit 1
126129 fi
127130
128- # Get the mapped host port for web app HTTP trigger (internal port 80 )
129- echo " Getting the host port mapped to internal port 80 in container [$container_name ]..."
130- host_port=$( get_docker_container_port_mapping " $container_name " " 80 " )
131+ # Get the mapped host port for web app HTTP trigger (internal port 8000 )
132+ echo " Getting the host port mapped to internal port $web_app_port in container [$container_name ]..."
133+ host_port=$( get_docker_container_port_mapping " $container_name " " $web_app_port " )
131134
132135 if [ $? -eq 0 ] && [ -n " $host_port " ]; then
133136 echo " Mapped host port [$host_port ] retrieved successfully for container [$container_name ]"
@@ -155,7 +158,7 @@ call_web_app() {
155158 if [ -n " $container_ip " ]; then
156159 # Call the web app via the container IP address
157160 echo " Calling web app [$web_app_name ] via container IP address [$container_ip ]..."
158- curl -s " http://$container_ip /" 1> /dev/null
161+ curl -s " http://$container_ip : $web_app_port /" 1> /dev/null
159162
160163 if [ $? == 0 ]; then
161164 echo " Web app call via container IP address [$container_ip ] succeeded."
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments