Closed alexdunnjpl closed 1 year ago
@alexdunnjpl we pull the package from an artifactory in docker images to make them as thin as possible, it comes from a recommendation that @nutjob4life made I think. We can discuss that. In that case we would push the package on pypi with the cicd and pull it from there in the docker image.
Ah, gotcha - I may need to revert/alter that change then. Will wait for feedback from Sean
Hi @tloubrieu-jpl @alexdunnjpl. I think my recommendation was made for Java-based projects which would do things like:
FROM java
COPY . /usr/app/src
mvn install
… (which downloads 429 Maven plugins, which is huge)ENTRYPOINT whatever
.m2
repository at the endwhich results in gigabyte-sized images most of whose bytes are never actually executed at container time.
Python's a lot lighter weight and so doing pip install .
instead of pip install package-1.2.3 (from artifactory)
is a lot less of a concern.
(Besides: I often will do docker container exec
and actually edit source code in the image in order to debug things! 🤫)
Currently, requests is installed manually, package is manually installed, and repo is cloned from Github
💡 Description