Compare commits
1 Commits
main
...
feature/ga
| Author | SHA1 | Date | |
|---|---|---|---|
| dd052341b7 |
10
Dockerfile
10
Dockerfile
@ -22,12 +22,4 @@ USER appuser
|
||||
EXPOSE 8000
|
||||
HEALTHCHECK --interval=30s --timeout=3s CMD python -c "import urllib.request;urllib.request.urlopen('http://127.0.0.1:8000/health')"
|
||||
|
||||
# Tracing default OFF. k8s manifest me OTEL_SDK_DISABLED=false karke on hota hai,
|
||||
# taaki build/smoke test ke waqt export ki koshish na ho.
|
||||
ENV OTEL_SDK_DISABLED=true \
|
||||
OTEL_TRACES_EXPORTER=otlp \
|
||||
OTEL_METRICS_EXPORTER=none \
|
||||
OTEL_LOGS_EXPORTER=none \
|
||||
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
|
||||
|
||||
CMD ["opentelemetry-instrument", "gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "app.main:app"]
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "app.main:app"]
|
||||
|
||||
@ -18,3 +18,5 @@ def index():
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(host="0.0.0.0", port=8000)
|
||||
|
||||
# feature branch - sirf CI gates chalne chahiye, deploy NAHI
|
||||
|
||||
@ -1,5 +1,2 @@
|
||||
flask
|
||||
gunicorn
|
||||
opentelemetry-distro
|
||||
opentelemetry-exporter-otlp-proto-http
|
||||
opentelemetry-instrumentation-flask
|
||||
flask==3.0.3
|
||||
gunicorn==22.0.0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user