https://prefect.io logo
m

Mitchell Bregman

10/14/2020, 6:35 PM
using Docker storage, i am looking to create a custom base image which extends upon prefect base image just adding a few additional internal python packages… any examples out there? is there a different way you suggest
pip install
some internal dependencies that live within a private pypi registry?
z

Zanie

10/14/2020, 6:52 PM
Hi @Mitchell Bregman! I don’t think there are any examples of extending the base image but you should be able to just use the docker
FROM
directive to create your own image as you would expect. As far as using
pip install
to reference a private pypi registry — perhaps take a look at this gist https://gist.github.com/Jaza/fcea493dd0ba6ebf09d3#configure-pip-to-use-private-pypi or use the
--index-url
option https://pip.pypa.io/en/stable/reference/pip_install/#cmdoption-index-url
🎉 1
m

Mitchell Bregman

10/14/2020, 6:53 PM
thank you! i had a similar line of thinking with regards to just extending and using
FROM
directive
b

Billy McMonagle

10/14/2020, 7:39 PM
You could build an image with your private packages and put that in a private registry (eg AWS ECR)... doing a private install from github is not super fun 😬