-
Notifications
You must be signed in to change notification settings - Fork 32
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
simplify docker build #455
Conversation
Codecov ReportBase: 86.61% // Head: 86.61% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## develop #455 +/- ##
========================================
Coverage 86.61% 86.61%
========================================
Files 23 23
Lines 3018 3018
========================================
Hits 2614 2614
Misses 404 404 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@@ -63,10 +57,10 @@ ADD . $APPDIR | |||
# then we want to link the source (with the -e flag) and if we're in prod, we | |||
# want to delete the stuff in the /code folder to keep it simple. | |||
RUN if [ "$ENVIRONMENT" = "deployment" ] ; then\ | |||
pip install .[$ENVIRONMENT] ; \ | |||
pip install .[$ENVIRONMENT] --extra-index-url https://packages.dea.ga.gov.au/; \ |
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.
Does it make sense for an ODC repo to depend on DEA infra?
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.
Its being installed regardless, see requirement-docker.txt
, this pr is simplify removing that .txt
and put them together
The advantage of two-step install was that code changes don't need a full rebuild of all dependencies. Docker can cache the first step, containing all built dependencies. Then code changes only need to rerun the (very fast) second step to update your container during development. |
COPY
andpip install