marmelab / gaudi

Gaudi allows to share multi-component applications, based on Docker, Go, and YAML.
http://gaudi.io/
MIT License
563 stars 28 forks source link

any change in gaudi yml rebuilds all containers #76

Closed benjamine closed 10 years ago

benjamine commented 10 years ago

I built a simple yaml file, a nodejs server with redis and postgres db. I built. I added a volume: line on the node.js app, and next time I run gaudi the whole container was built from scratch, while actually there was no change to its Dockerfile, just a new volume mapping, which normally just requires to stop the container and run it again. For some reason the docker cache is getting clean when gaudi.yml changes?

benjamine commented 10 years ago

it seems that this is happening (at least to me) even if no change is done:

Retrieving templates ...
Changes detected in configuration file, rebuilding containers ...
Cleaning server ...
Cleaning redis ...
Cleaning database ...
Building gaudi/server ...
Pulling redis ...
Building gaudi/database ...
...

and the docker build is run with no cache, ie. all steps are executed again.

manuquentin commented 10 years ago

I've made the decision to rebuild all containers after a change on the config file, it avoids to forget to rebuild after each change.

I'll change this behavior to no rebuild after a change and let the user run gaudi rebuild after a signifiant change in the configuration file.

benjamine commented 10 years ago

cool, what is weird also is it seems that build is without the docker cache

manuquentin commented 10 years ago

Fixed in #80