You don't need this plugin if you have docker 1.8.x +
Simply resets the mtime (modified time) metadata on your source files to a set datetime before building the image with docker. I made this to work around docker's caching system taking into account the modified time when checking if a file has changed or not. If the mtime changed, even if the file is exactly the same, the cache will be invalidated. This is annoying because git inherently modifies the mtime of all the files when you clone, pull, etc.
This plugin shouldn't be needed when version 1.8.0 of docker gets released and dokku makes the switch, but for now, here we go.
The solution is based off this StackOverflow question.
Here's the relevant Docker PR on the issue.
- dokku 0.4.0+
- docker 1.6.x
# on 0.3.x
cd /var/lib/dokku/plugins
git clone https://github.com/mixxorz/dokku-docker-reset-mtime.git reset-mtime
dokku plugins-install
# on 0.4.x
dokku plugin:install https://github.com/mixxorz/dokku-docker-reset-mtime.git reset-mtime
That's all folks.