wunderio / image-fuzzy-alpine-devshell

https://quay.io/repository/wunder/fuzzy-alpine-devshell
GNU General Public License v3.0
0 stars 1 forks source link

Prebuild composer cache regarding drupal-composer/drupal-project #42

Closed aleksijohansson closed 8 years ago

aleksijohansson commented 8 years ago

Added installation of drupal-composer/drupal-project to part of the build of this image so that it prebuilds caches for it. This reduces the time of wundertools init by 50% and I think there should be no issues with outdated cache files when using this image down the line because composer should check if it's caches are up to date when actually using composer. This should make an impact on #38.

aleksijohansson commented 8 years ago

@james-nesbitt One thing to note is that this increases the size of the devshell image from 353.6M to 476.1M which is about 25% increase. 50% speed increase with wundertools init, 25% increase in image size. Is that something we want?

james-nesbitt commented 8 years ago

@aleksijohansson it is my opimion that we are not worried:

  1. devshell is the place to stack unoptimized stuff (so that it doesn't go into other images)
  2. devshell is easy to replace with an optimized image in other scenarios 3 performance is a bigger issue for us than size
  3. in most scenarios, 1 single image will be re-used for all commands (and will almost always be --rm)