aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorQiu Yu <qiuyu@ebaysf.com>2015-04-28 12:33:10 +0800
committerQiu Yu <qiuyu@ebaysf.com>2015-04-28 12:33:10 +0800
commit6b159e78f52d0b5c9663c91f6f0a71caddeb1fd9 (patch)
treee7004f509548db36c5f7ddafd467d6fe35343130 /tools
parent476f9c4dea5918ab015f2ce005159d98e6b2a405 (diff)
downloadkolla-6b159e78f52d0b5c9663c91f6f0a71caddeb1fd9.tar.gz
kolla-6b159e78f52d0b5c9663c91f6f0a71caddeb1fd9.zip
Preserve file attributes when copying image dirs for build
Add "-a" to preserve file attributes so that unnecessary Docker image build can be avoided. Otherwise, build-all-docker-images will generate additional image layer due to timestamp change. Change-Id: I893fa0637937c521198f50b1bba203a27c9f00a3 Closes-Bug: 1449287
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build-all-docker-images2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build-all-docker-images b/tools/build-all-docker-images
index 5a10fb90b..74aa80fb8 100755
--- a/tools/build-all-docker-images
+++ b/tools/build-all-docker-images
@@ -7,7 +7,7 @@ TOPDIR=$(git rev-parse --show-toplevel)
WORKDIR=$(mktemp -d /tmp/kolla-workdir.XXXXXXXXXX)
# Remove $WORKDIR otherwise $TOPDIR is copied *inside* of it
rm -rf $WORKDIR
-cp -r "$TOPDIR" $WORKDIR
+cp -aL "$TOPDIR" $WORKDIR
DOCKERDIR="$WORKDIR/docker"
declare -A dependency