HolmesProcessing / Holmes-Totem

Investigation Planner for fast running analysis with predictable execution time. For example, static analysis.
Apache License 2.0
29 stars 18 forks source link

Merged "apt-get update" and "apt-get install" lines in Dockerfiles to prevent caching issues #98

Closed Ma-Shell closed 8 years ago

Ma-Shell commented 8 years ago

Docker caches the images after each command. In this case, this can lead to caching issues, if Docker uses a cache from just between the "apt-get update"- and the "apt-get install"-line, since it might happen, that the package versions in apt's database from the cached image aren't available on the ubuntu-servers anymore.

This fix ensures, that the package-versions are always updated, just before they are installed.

webstergd commented 8 years ago

looks good. I requested 2 changes if you dont mind. It is a mistake on my part from awhile back. You just happened to highlight it.

Ma-Shell commented 8 years ago

Removed the commands, as requested

webstergd commented 8 years ago

you're the man. Danke