Skip to content

Commit 6550559

Browse files
committed
chore: streamline devcontainer features and update API base URL in api.http
1 parent 5efa11f commit 6550559

3 files changed

Lines changed: 16 additions & 38 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,13 @@
88
"service": "app",
99
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
1010
"features": {
11-
"ghcr.io/devcontainers/features/azure-cli:1": {
12-
"version": "latest"
13-
},
14-
"ghcr.io/devcontainers/features/dotnet:2": {
15-
"version": "9.0"
16-
},
17-
"ghcr.io/devcontainers-extra/features/kubectl-asdf:2": {
18-
"version": "latest"
19-
},
20-
"ghcr.io/devcontainers/features/github-cli:1": {
21-
"installDirectlyFromGitHubRelease": true,
22-
"version": "latest"
23-
},
24-
"ghcr.io/devcontainers/features/node:1": {
25-
"nodeGypDependencies": true,
26-
"installYarnUsingApt": true,
27-
"version": "lts",
28-
"pnpmVersion": "latest",
29-
"nvmVersion": "latest"
30-
},
31-
"ghcr.io/devcontainers/features/docker-in-docker:2": {
32-
"moby": true,
33-
"azureDnsAutoDetection": true,
34-
"installDockerBuildx": true,
35-
"installDockerComposeSwitch": true,
36-
"version": "latest",
37-
"dockerDashComposeVersion": "latest"
38-
}
11+
"ghcr.io/devcontainers/features/azure-cli:1": {},
12+
"ghcr.io/devcontainers/features/dotnet:2": {},
13+
"ghcr.io/devcontainers-extra/features/kubectl-asdf:2": {},
14+
"ghcr.io/devcontainers/features/github-cli:1": {},
15+
"ghcr.io/devcontainers/features/node:1": {},
16+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
17+
"ghcr.io/devcontainers/features/aws-cli:1": {}
3918
},
4019
"customizations": {
4120
"vscode": {

04-cloud/azure/iaas/01-db-vm/README-ubuntu-postgresql.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ az vm create \
4848
--vnet-name $VNET_NAME \
4949
--subnet $DB_SUBNET_NAME \
5050
--size $VM_SIZE \
51-
--nsg $DB_VM_NSG_NAME \
52-
--public-ip-address ""
51+
--nsg $DB_VM_NSG_NAME
5352

5453
echo -e "✅ Máquina virtual creada"
5554
```
@@ -208,16 +207,16 @@ postgresql://heroesadmin:Heroes@2024#@$DB_PRIVATE_IP:5432/heroes
208207

209208
```
210209
┌─────────────────────────────────────────────────────────┐
211-
│ Virtual Network
212-
210+
│ Virtual Network │
211+
│ │
213212
│ ┌────────────────────┐ ┌────────────────────┐ │
214213
│ │ API Subnet │ │ DB Subnet │ │
215-
│ │ 10.0.2.0/24 │ │ 10.0.1.0/24 │ │
214+
│ │ 192.168.2.0/24 │ │ 192.168.1.0/24 │ │
216215
│ │ │ │ │ │
217-
│ │ ┌──────────────┐ │ │ ┌──────────────┐ │ │
218-
│ │ │ API VM │ │───▶│ │ DB VM │ │ │
219-
│ │ │ │ │ │ │ Ubuntu │ │ │
220-
│ │ └──────────────┘ │ │ │ PostgreSQL │ │ │
216+
│ │ ┌──────────────┐ │ │ ┌──────────────┐ │ │
217+
│ │ │ API VM │ │───▶│ │ DB VM │ │ │
218+
│ │ │ │ │ │ │ Ubuntu │ │ │
219+
│ │ └──────────────┘ │ │ │ PostgreSQL │ │ │
221220
│ │ │ │ │ :5432 │ │ │
222221
│ └────────────────────┘ │ └──────────────┘ │ │
223222
│ │ (Sin IP pública) │ │

04-cloud/azure/iaas/02-api-vm/api.http

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#@base_url = http://tour-of-heroes-api-vm-<TU_NUMERO_RANDOM>.uksouth.cloudapp.azure.com/api/hero
2-
@base_url = http://tour-of-heroes-api-vm-3191.belgiumcentral.cloudapp.azure.com/api/hero
2+
@base_url = http://tour-of-heroes-api-vm-22782.austriaeast.cloudapp.azure.com/api/hero
33

44
GET {{base_url}} HTTP/1.1
55

0 commit comments

Comments
 (0)