nuest / ten-simple-rules-dockerfiles

Ten Simple Rules for Writing Dockerfiles for Reproducible Data Science
https://doi.org/10.1371/journal.pcbi.1008316
Creative Commons Attribution 4.0 International
64 stars 15 forks source link

Discussion - Rule 5. Mount data and control code #12

Closed psychemedia closed 4 years ago

psychemedia commented 5 years ago

Typo: to reause code

Is there also a converse side to this: when should you use COPY / ADD? (Also, is it worth commenting on the difference between them?)

Does mounting also raise issues about how to mount local directories into a container, or persistent data volumes against a container? Discussion about whether linked data volumes introduce a "hidden state" problem in a running docker deployment environment?

if you have a "stable" published software library, install it from source from the source code repo or from the software repository (so that users find the project in the future)

How does the above relate to Rule 4 / installing known version packages. Should Rule 4 reference installing packages local to the Dockerfile, or from repositories that are not package manager repositories?