Skip to content

Commit

Permalink
OTEL-2058 Add multi-platform build instructions (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
krlv authored Sep 16, 2024
1 parent 0c397b6 commit d0beb2d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions apps/rest-services/java/calendar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,30 @@ docker compose -f deploys/docker/docker-compose-dd.yml up

As of now, in order for trace/log correlation to work the `trace_id` key needs to be manually added to the "Preprocessing for JSON logs" at <https://app.datadoghq.com/logs/pipelines>.

## Build multi-platform images

In order to build multi-platform container images, we will use the `docker buildx` command.

Calendar app with OTel SDK:

```shell
docker buildx build \
--platform linux/amd64,linux/arm64 \
--tag datadog/opentelemetry-examples:calendar-java-20240916 \
--file ./deploys/Dockerfile.otel \
--push .
```

Calendar app with DataDog SDK:

```shell
docker buildx build \
--platform linux/amd64,linux/arm64 \
--tag datadog/opentelemetry-examples:calendar-java-dd-20240916 \
--file ./deploys/Dockerfile.calendar.java.dd \
--push .
```

## Kubernetes

Install calendar in K8s with OTel SDK
Expand Down

0 comments on commit d0beb2d

Please sign in to comment.