This is an automated email from the ASF dual-hosted git repository. granthenke pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/kudu.git
commit ef8696ac436776cf52181e9d94afb3c9608c9efa Author: Grant Henke <[email protected]> AuthorDate: Mon Mar 9 09:57:45 2020 -0500 [docker] Use the buildkit when building images The docker buildkit is an opt in build engine that is faster and offers more advanced image building features. https://docs.docker.com/develop/develop-images/build_enhancements/ This patch sets `DOCKER_BUILDKIT=1` in the `docker-build.sh` file to enable the buildkit. Follow on patches will use some of the new features as well. Change-Id: Ib1bff68d65d0d4039efccabf7e1288163aafee0c Reviewed-on: http://gerrit.cloudera.org:8080/15390 Tested-by: Grant Henke <[email protected]> Reviewed-by: Alexey Serbin <[email protected]> --- docker/docker-build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker/docker-build.sh b/docker/docker-build.sh index f7ada2c..0eb8f53 100755 --- a/docker/docker-build.sh +++ b/docker/docker-build.sh @@ -104,6 +104,13 @@ TAG_LATEST=${TAG_LATEST:=1} TAG_HASH=${TAG_HASH:=0} DOCKER_CACHE_FROM=${DOCKER_CACHE_FROM:=""} +# Enabled the docker buildkit so we can use advanced features +# like skipping unused stages and mounting scripts that don't +# need to remain in the image along with an improvement on +# performance, storage management, feature functionality, and security. +# https://docs.docker.com/develop/develop-images/build_enhancements/ +export DOCKER_BUILDKIT=1 + VERSION=$(cat "$ROOT/version.txt") VCS_REF=$(git rev-parse --short HEAD || echo "")
