You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now Docker caches ADD in Dockerfiles, we can safely build on every fig up without builds taking ages.
There perhaps should also be an option in fig.yml to cache the build with a tag as it currently does. We should also document how to cache installation of code dependencies. E.g.:
This means pip install will only be run when requirements.txt changes. If pip install were after the last line, it would be run anytime any file changed.
One issue I'd worry about currently is if you rely on persisting data in containers that is generated outside of their build.
Most of the time you can circumvent this by storing that data in a shared volume, but I've run into issues doing so over a VM hosted docker daemon (aka docker-osx) with certain services.
For example, currently running a Postgres database, I can't run postgresql initdb (post build) into a shared volume, as the VM volume system doesn't allowed hardlinks (aka symlink for folders).
This might be an edge case. Maybe having a extra key in the fig.yml to prevent default rebuilds would allow the best of both worlds? e.g.
Activity
mauvm commentedon Feb 21, 2014
+1
cameronmaske commentedon Feb 21, 2014
One issue I'd worry about currently is if you rely on persisting data in containers that is generated outside of their build.
Most of the time you can circumvent this by storing that data in a shared volume, but I've run into issues doing so over a VM hosted docker daemon (aka
docker-osx) with certain services.For example, currently running a Postgres database, I can't run
postgresql initdb(post build) into a shared volume, as the VM volume system doesn't allowed hardlinks (aka symlink for folders).This might be an edge case. Maybe having a extra key in the fig.yml to prevent default rebuilds would allow the best of both worlds? e.g.
j0hnsmith commentedon Mar 6, 2014
+1
Merge pull request #12 from dnephin/fix_volumes_on_recreate
develar commentedon Mar 11, 2015
+1
dnephin commentedon Aug 24, 2015
I've proposed the opposite #693 and #1455
Merge pull request docker#12 from LK4D4/remove_binary
http: implement FailIfRegexp and FailIfNotRegexp