Skip to content

ConSol/TestContainersDemoSB

Repository files navigation

SpringBoot TestContainers Demo

This Demo consists of 2 parts:

  • SpringBoot + Testcontainers (LocalStack)
  • SpringBoot + Testcontainers (LocalStack + OTEL Collector + Clickhouse)

SpringBoot + Testcontainers (LocalStack)

Checkout tag NO_OTEL, e.g. using

git checkout NO_OTEL

The test can be executed by running command

mvn clean install

in the command line or be started within an IDE.

SpringBoot + Testcontainers (LocalStack + OTEL Collector + Clickhouse)

Checkout branch OTEL, e.g. using

git checkout OTEL

The test only finishes successfully if following ENV variables are set:

JAVA_TOOL_OPTIONS="-javaagent:opentelemetry-javaagent.jar"
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf;
OTEL_EXPORTER_OTLP_TIMEOUT=60000
OTEL_INSTRUMENTATION_MICROMETER_ENABLED=true;
OTEL_SERVICE_NAME="Testcontainers"

There is a run.sh script exporting mentioned ENV variables. Following command starts the script:

./run.sh

The test can also be started from an IDE but then the ENV variables have to be configured within the run configuration.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy