Skip to content

Commit 293bce1

Browse files
majguoyiliuTo
authored andcommitted
add dev container config
Signed-off-by: Jianguo Ma <[email protected]>
1 parent 8cf2d40 commit 293bce1

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"image": "mcr.microsoft.com/devcontainers/java:1-21-bullseye",
3+
"features": {
4+
"ghcr.io/devcontainers/features/azure-cli:latest": {
5+
"extensions": "containerapp rdbms-connect serviceconnector-passwordless"
6+
}
7+
}
8+
}

asset-manager/README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,24 @@ Linux:
210210
scripts/deploy-to-azure.sh -ResourceGroupName <your resource group name> -Location <your resource group location, e.g., eastus2> -Prefix <your unique resource prefix>
211211
```
212212

213-
To clean up, run `cleanup-azure-resources.cmd` or `cleanup-azure-resources.sh` in the `scripts` directory.
213+
To clean up, run `scripts\cleanup-azure-resources.cmd -ResourceGroupName <your resource group name>` or `scripts/cleanup-azure-resources.sh -ResourceGroupName <your resource group name>` for Windows and Linux, respectively.
214+
215+
### Use GitHub Codespaces for Deployment
216+
217+
The deployment scripts can also be executed in GitHub Codespaces, which pre-installs the necessary dependencies. Follow the steps below to deploy the apps to Azure using GitHub Codespaces:
218+
219+
1. Open the repository in GitHub Codespaces by selecting on the **Code** button, selecting **Codespaces** tab, openining the existing codespace or selecting **Create codespace** for the target branch.
220+
1. The codespace will automatically open in the browser. Wait until it is ready.
221+
1. Navigate to the terminal in the codespace and run `az login` to sign in to Azure. Follow the instructions to complete the sign-in process.
222+
1. At the last step of the sign-in process, you will be asked to select a subscription and tenant. Select the appropriate subscription and tenant.
223+
1. Run the following commands in the terminal to deploy the apps to Azure:
224+
225+
```bash
226+
cd asset-manager && git pull
227+
scripts/deploy-to-azure.sh -ResourceGroupName <your resource group name> -Location <your resource group location, e.g., eastus2> -Prefix <your unique resource prefix>
228+
```
229+
230+
1. To clean up, run `scripts\cleanup-azure-resources.cmd -ResourceGroupName <your resource group name>` or `scripts/cleanup-azure-resources.sh -ResourceGroupName <your resource group name>` for Windows and Linux, respectively.
214231

215232
## Java Migration Copilot Workshop
216233

0 commit comments

Comments
 (0)