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
This commit is contained in:
parent
476f9c4dea
commit
6b159e78f5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user