Skip to content

Commit f598877

Browse files
chatbot-rag-app: removes unnecessary parts of Docker build (#406)
Signed-off-by: Adrian Cole <adrian.cole@elastic.co>
1 parent 72835b0 commit f598877

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

example-apps/chatbot-rag-app/Dockerfile

+1-8
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ EXPOSE 4000
2424
# Default to disabling instrumentation, can be overridden to false in
2525
# docker invocations to reenable.
2626
ENV OTEL_SDK_DISABLED=true
27+
ENTRYPOINT [ "opentelemetry-instrument" ]
2728

28-
# TODO remove custom entrypoint when EDOT Python >0.7.0 is released.
29-
RUN echo 'if [ "${OTEL_SDK_DISABLED:-true}" == "false" ]; \
30-
then \
31-
opentelemetry-instrument $@; \
32-
else \
33-
exec $@; \
34-
fi' > entrypoint.sh
35-
ENTRYPOINT [ "bash", "-eu", "./entrypoint.sh" ]
3629
CMD [ "python", "api/app.py" ]

example-apps/chatbot-rag-app/k8s-manifest.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
initContainers:
2525
- name: create-index
2626
image: &image ghcr.io/elastic/elasticsearch-labs/chatbot-rag-app:latest
27-
command: &command [ "bash", "-eu", "./entrypoint.sh" ] # match image
27+
command: &command [ "opentelemetry-instrument" ] # match image
2828
args: [ "flask", "create-index" ]
2929
# This recreates your configmap based on your .env file:
3030
# kubectl create configmap chatbot-rag-app-env --from-env-file=.env

example-apps/chatbot-rag-app/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -531,4 +531,4 @@ opentelemetry-instrumentation-sqlalchemy==0.51b0
531531
opentelemetry-instrumentation-system-metrics==0.51b0
532532
opentelemetry-instrumentation-tortoiseorm==0.51b0
533533
opentelemetry-instrumentation-urllib3==0.51b0
534-
elastic-opentelemetry-instrumentation-openai==0.6.0
534+
elastic-opentelemetry-instrumentation-openai==0.6.1

0 commit comments

Comments
 (0)