Skip to content

Commit 27c1a5c

Browse files
authored
{Misc.} Add devcontainer environment variables (#32195)
1 parent b14f284 commit 27c1a5c

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.devcontainer/.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
AAZ_CLI_PATH=/workspaces/azure-cli
2+
AAZ_CLI_EXTENSION_PATH=/workspaces/azure-cli-extensions
3+
AAZ_SWAGGER_PATH=/workspaces/azure-rest-api-specs
4+
AAZ_PATH=/workspaces/aaz

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
"cpus": 16,
1414
"memory": "64gb",
1515
"storage": "128gb"
16-
}
16+
},
17+
"runArgs": ["--env-file", ".devcontainer/.env"],
1718
}

.devcontainer/init.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ if ! command -v aaz-dev &> /dev/null; then
6666
ELAPSED_TIME=$SECONDS
6767

6868
echo -e "\n${YELLOW}Elapsed time: $((ELAPSED_TIME / 60))m $((ELAPSED_TIME % 60))s.${NC}"
69-
echo -e "\n${GREEN}Finished setup! Please launch the codegen tool via:${NC}"
70-
echo -e "${GREEN}\$ aaz-dev run -c azure-cli -e azure-cli-extensions -s azure-rest-api-specs -a aaz${NC}\n"
69+
echo -e "\n${GREEN}Finished setup! Please launch the codegen tool via: aaz-dev run${NC}\n"
7170
else
72-
echo -e "\nPlease launch the codegen tool via:"
73-
echo -e "$ aaz-dev run -c azure-cli -e azure-cli-extensions -s azure-rest-api-specs -a aaz\n"
71+
echo -e "\nPlease launch the codegen tool via: aaz-dev run\n"
7472
fi

0 commit comments

Comments
 (0)