diff options
author | Steven Hardy <shardy@redhat.com> | 2017-06-29 17:05:31 +0100 |
---|---|---|
committer | Steven Hardy <shardy@redhat.com> | 2017-06-29 17:05:31 +0100 |
commit | f739fd0ccfb878e88672feb3fb4eb3a575461604 (patch) | |
tree | 585b9b32f34a239d947a98fd8d81f9bf45d71370 /docker | |
parent | 3b7de8a2514cf9b90ee7aec3365bfbf4547175ad (diff) |
Force mtime for tar used in container config md5sums
The checksum is changing each run because the mtime is different, so force
a specific date such that we only compare the directory contents.
Change-Id: I5ed2b50176f902d7af12b96e650b67b736d59a4a
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/docker-puppet.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/docker-puppet.py b/docker/docker-puppet.py index 430aa88b..4c193e49 100755 --- a/docker/docker-puppet.py +++ b/docker/docker-puppet.py @@ -221,7 +221,7 @@ def mp_puppet_config((config_volume, puppet_tags, manifest, config_image, volume # Write a checksum of the config-data dir, this is used as a # salt to trigger container restart when the config changes - tar cf - /var/lib/config-data/${NAME} | md5sum | awk '{print $1}' > /var/lib/config-data/${NAME}.md5sum + tar -c -f - /var/lib/config-data/${NAME} --mtime='1970-01-01' | md5sum | awk '{print $1}' > /var/lib/config-data/${NAME}.md5sum fi """) |