-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chatbot-rag-app: reduces docker image size #407
Conversation
Signed-off-by: Adrian Cole <[email protected]>
069ddd2
to
77cb93e
Compare
cc @anuraaga |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
notes
@@ -69,7 +69,7 @@ services: | |||
- XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY=fhjskloppd678ehkdfdlliverpoolfcr | |||
- SERVER_PUBLICBASEURL=http://127.0.0.1:5601 | |||
healthcheck: | |||
test: ["CMD-SHELL", "curl -s http://localhost:5601/api/status | grep -q 'All services are available'"] | |||
test: ["CMD-SHELL", "curl -s http://localhost:5601/api/status | grep -q 'available'"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
easier match, so keep it simple
@@ -165,8 +165,6 @@ pip-compile | |||
pip install -r requirements.txt | |||
# Add opentelemetry instrumentation for these dependencies | |||
edot-bootstrap >> requirements.txt | |||
# Missing dependency for langtrace vertexai instrumentation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in langtrace 3.3.28
RUN mkdir ./api | ||
RUN mkdir ./data | ||
|
||
RUN apt-get update && apt-get install -y \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
none of these are required
This reduces the chatbot-rag-app image size from 1.3GB to 820MB by eliminating ancillary packages.
This is more needed when we use k8s which doesn't share an image cache with docker, typically. When demo'ing we want the least download lag possible. Also, my network is not always very strong, so prefer smaller.
While at it, I did a little polishing, too.
Anecdotally, I tried to switch to alpine, but the amount of system packages needed resulted in a larger image than it is now!