Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Dockerfile.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ARG PYTHON_VERSION=3.12
FROM public.ecr.aws/docker/library/python:${PYTHON_VERSION}-slim

RUN apt-get update && apt-get install -y \
gcc \
g++ \
make \
git \
pkg-config \
default-libmysqlclient-dev \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app

RUN pip install --no-cache-dir --upgrade pip

CMD ["echo", "Container ready..."]
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,29 @@ You can find more documentation covering supported components and minimum versio

Bug reports and pull requests are welcome on GitHub at https://github.com/instana/python-sensor.

## More
## Run Tests with Docker
Docker compose file currently supports up to Python version 3.14.

Run tests for all Python versions:
- `docker compose --profile infra-general --profile tests-general up --build --abort-on-container-exit | grep python-sensor-test`

To run tests for a specific Python version using Docker, 3.12 for example:
- `docker compose --profile infra-general --profile py312 up --build --abort-on-container-exit | grep python-sensor-test`

Cassandra Tests:
- `docker compose --profile infra-cassandra --profile tests-cassandra up --build --abort-on-container-exit | grep python-sensor-test`

Want to instrument other languages? See our [Node.js], [Go], [Ruby] instrumentation or many other [supported technologies].
Kafka Tests:
- `docker compose --profile infra-kafka --profile tests-kafka up --build --abort-on-container-exit | grep python-sensor-test`

Gevent Tests:
- `docker compose --profile tests-gevent up --build --abort-on-container-exit | grep python-sensor-test`

AWS Tests:
- `docker compose --profile tests-aws up --build --abort-on-container-exit | grep python-sensor-test`

## More
Want to instrument other languages? See our [Node.js], [Go], [Ruby] instrumentation or many other [supported technologies].

<!-- Reference links -->
[Instana]: https://www.instana.com/ "IBM Instana Observability"
Expand Down
Loading
Loading