Skip to content

Commit 38e64f4

Browse files
authored
Merge pull request #1 from Azure-Samples/main
update .devcontainer file (#68)
2 parents e95fb2f + 14931ee commit 38e64f4

File tree

5 files changed

+34
-1
lines changed

5 files changed

+34
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@
1111
"ghcr.io/devcontainers/features/node:1": {
1212
"version": "20"
1313
},
14+
"ghcr.io/devcontainers/features/java:1": {
15+
"version": "21",
16+
"installMaven": "true",
17+
"installGradle": "false"
18+
},
19+
"ghcr.io/devcontainers/features/docker-in-docker:2": {
20+
"version": 20,
21+
"moby": "false",
22+
"dockerDashComposeVersion": "v2"
23+
},
1424
"ghcr.io/devcontainers/features/azure-cli:1": {
1525
"version": "latest",
1626
"installBicep": true
@@ -24,7 +34,10 @@
2434
"vscode": {
2535
"extensions": [
2636
"ms-azuretools.azure-dev",
27-
"ms-azuretools.vscode-bicep"
37+
"ms-azuretools.vscode-bicep",
38+
"vscjava.vscode-java-pack",
39+
"ms-azuretools.vscode-docker"
40+
2841
]
2942
}
3043
},

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,19 @@
33
This repository contains code demonstrating how to enable OpenTelemetry features for GraalVM native images on Azure:
44
* [Spring Boot](./code/spring-boot-telemetry/README.md)
55
* [Quarkus](./code/quarkus-telemetry/README.md)
6+
7+
## Run the Code
8+
9+
Since native apps are built for the machine it runs on, make sure you execute this on a unix machine.
10+
Feel free to clone the repository locally when you are using Linux or MacOS.
11+
For Windows further adjustments might be neccessary.
12+
13+
### We recommend to use CodeSpaces.
14+
15+
To ensure the machine type you're running on, fork the repository and then select `Create a codespace on main` by clicking on the `+` icon.
16+
17+
![Create CodeSpace Screenshot](./docs/assets/create-codespace.png)
18+
19+
The [.devcontainer file](.devcontainer/devcontainer.json) holds all dependencies needed to run the code 'locally' on a linux machine.
20+
21+
The first start might take a few minutes. Every restart is consiberably fast.

code/quarkus-telemetry/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ In these projects it will automatically download and start a PostgreSQL DB.
1717

1818
> **_NOTE:_** Quarkus now ships with a Dev UI, which is available in dev mode only at http://localhost:8080/q/dev/.
1919
20+
Using CodeSpaces, please make sure to add the Port 8080 for the vegetables or 8081 for superheros application in the `PORTS` section. Open the included `Simple Browser` by clicking on the `Preview in Editor` icon.
21+
22+
![Screenshot Add Port and Open in Simple Browser](/docs/assets/quarkus-add-port-open-browser.png)
23+
2024
## Packaging and running the application
2125

2226
The application can be packaged using:

docs/assets/create-codespace.png

74.7 KB
Loading
412 KB
Loading

0 commit comments

Comments
 (0)