Skip to content
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

Make slim versions of serving images #781

Closed
vishalbollu opened this issue Jan 23, 2020 · 4 comments · Fixed by #992
Closed

Make slim versions of serving images #781

vishalbollu opened this issue Jan 23, 2020 · 4 comments · Fixed by #992
Labels
enhancement New feature or request

Comments

@vishalbollu
Copy link
Contributor

Description

Serving images such as python-serve, python-serve-gpu have a lot of python packages and system libraries to make onboarding easy.

Have a slim version that only contains the python packages and system libraries to run Cortex serving.

Motivation

Having unnecessary libraries in docker images can increase storage costs and also network costs.

@vishalbollu vishalbollu added the enhancement New feature or request label Jan 23, 2020
@tthebst
Copy link
Contributor

tthebst commented Apr 29, 2020

Hi,

What's the reason for using conda inside ubuntu and not a python docker image?

Do I understand correctly that you want a seperate image? Or just a slimmer version of the existing?

@deliahu
Copy link
Member

deliahu commented Apr 29, 2020

Hi @tthebst, the intention of this is provide a base image that has all of the Cortex code in it, but without any of the "user" dependencies installed. Right now our containers ship with PyTorch, TensorFlow, Scikit Learn, XGboost installed, whereas a user probably only needs one of these. So if they are interested in building their own image from our "base" image and using that, or if they are ok pip installing their dependencies every time an API replica is created, they would want to use the "slim" base image. It would still be based on Ubuntu and still have conda, just wouldn't have the extra pip packages.

We are planning to add these images soon!

@tthebst
Copy link
Contributor

tthebst commented Apr 30, 2020

Okay I understand. So you would like just a slim image with just the dependencies needed for cortex, but still based on ubuntu and conda?

@deliahu
Copy link
Member

deliahu commented May 1, 2020

@tthebst yes that is correct. I just created a pull request for this: #992; we'll merge it soon and it will be in our next release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants