generated from honeycombio/.github
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Which problem is this PR solving? - Closes #72 ## Short description of the changes - add Dockerfile for flask app - update `opentelemetry-api`, `opentelemetry-sdk`, and `opentelemetry-exporter-otlp` from `1.14.0` to `1.16.0` to help deal with version conflicts - update `opentelemetry-instrumentation` and `opentelemetry-instrumentation-flask` from `0.36b0` to `0.37b0` to help deal with version conflicts - update `pylint` - add flask app to docker-compose - whitespace cleanup ## How to verify that this has the expected result Build the flask app, and locally `curl localhost:5000`: `cd smoke-tests && docker-compose up --build app-sdk-grpc-flask` --------- Co-authored-by: Robb Kidd <robbkidd@honeycomb.io> Co-authored-by: Emily Ashley <15912063+emilyashley@users.noreply.github.com>
- Loading branch information
1 parent
84a5dd2
commit cbbc998
Showing
8 changed files
with
978 additions
and
903 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM python:3.10-alpine | ||
|
||
WORKDIR /app | ||
|
||
RUN apk add --no-cache gcc musl-dev python3-dev libffi-dev openssl-dev cargo g++ | ||
|
||
ENV PYTHONFAULTHANDLER=1 \ | ||
PYTHONUNBUFFERED=1 \ | ||
PYTHONHASHSEED=random \ | ||
PIP_NO_CACHE_DIR=off \ | ||
PIP_DISABLE_PIP_VERSION_CHECK=on \ | ||
PIP_DEFAULT_TIMEOUT=100 \ | ||
POETRY_VERSION=1.3.2 | ||
|
||
# This project is poetic. | ||
RUN pip install "poetry==$POETRY_VERSION" | ||
# This image is single purpose, so we won't need to compartmentalize Py deps in virtualenvs. | ||
RUN poetry config virtualenvs.create false | ||
|
||
# Copy the distro into the image and install deps. | ||
COPY README.md pyproject.toml poetry.lock ./ | ||
COPY src/ ./src/ | ||
RUN poetry install | ||
|
||
# Copy the examples into the image and install deps. | ||
COPY examples/ ./examples/ | ||
RUN cd ./examples/hello-world-flask && poetry install | ||
|
||
# From this point forward, we're operating on the flask example. | ||
WORKDIR /app/examples/hello-world-flask | ||
CMD ["poetry", "run", "opentelemetry-instrument", "flask", "run", "--host", "0.0.0.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters