-
Notifications
You must be signed in to change notification settings - Fork 305
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
Do not cache packages in images #1927
Conversation
Signed-off-by: Eduardo Apolinario <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1927 +/- ##
==========================================
+ Coverage 54.70% 54.73% +0.02%
==========================================
Files 306 306
Lines 22788 22811 +23
Branches 2255 3459 +1204
==========================================
+ Hits 12466 12485 +19
+ Misses 10166 10154 -12
- Partials 156 172 +16 ☔ View full report in Codecov by Sentry. |
@@ -8,7 +8,7 @@ ARG VERSION | |||
RUN apt-get update && apt-get install build-essential -y | |||
|
|||
RUN pip install prometheus-client |
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.
Missed one. Why is this separate anyway?
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.
since we don't want to add prometheus-client
to the default flytekit dependencies.
build-essential adds an insignificant overhead. It should only be needed for building wheels, and not needed in the final image. Also apt cache is not removed. We can clean this up in a subsequent PR. |
we need |
Signed-off-by: Eduardo Apolinario <[email protected]> Co-authored-by: Eduardo Apolinario <[email protected]>
TL;DR
Disable caching of packages in images
Type
Are all requirements met?
Complete description
Pass the
--no-cache-dir
flag in invocation ofpip install
in dockerfiles. This will have a bigger impact in the agent image, since currently we are using about ~800MB:Tracking Issue
https://github.com/flyteorg/flyte/issues/
Follow-up issue
NA
OR
https://github.com/flyteorg/flyte/issues/