docker - How to Install Private Python Package as Part of Build -
i have large private python package finished creating. i'd install part of build process app in docker container (though isn't important). package source quite large, ideally i'd avoid downloading/keeping whole source.
right now, i've been passing around package source along app, unwieldy , temporary. what's better way? git submodule/subtree? i'm pretty new this.
if use github private repo have create ssh deploy key , add private key app folder builds.
pip install git+git://github.com/myuser/foo.git@v123
alternatively, can mount pip-cache folder host container , pip install folder. you'd have keep python packages in cache dir app.
pip install --no-index --find-links=/my/pip-cache/
you can install python packages pip-cache following command:
pre pip 9.0.1:
pip install --download pip-cache/ package1 package2
pip 9.0.1+ (thx comment @james hiew):
pip install download pip-cache/ package1 package2
Comments
Post a Comment