Grant Henke has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/15389 )
Change subject: [docker] Reduce docker image size ...................................................................... [docker] Reduce docker image size This patch reduces the Docker `kudu` image size by ~60 MB (295MB -> 235MB). It does this by moving the chown calls to before the files are copied and using the `—chown` flag when copying files. Before this change the chown command would effecively double the size due to how aufs layers work. I also removed some optional and unused packages from the runtime and dev images. Change-Id: I88238679912149d00ae3edc6a9d2d568f13aafca Reviewed-on: http://gerrit.cloudera.org:8080/15389 Tested-by: Kudu Jenkins Reviewed-by: Alexey Serbin <[email protected]> --- M docker/Dockerfile M docker/bootstrap-dev-env.sh M docker/bootstrap-runtime-env.sh 3 files changed, 31 insertions(+), 22 deletions(-) Approvals: Kudu Jenkins: Verified Alexey Serbin: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/15389 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I88238679912149d00ae3edc6a9d2d568f13aafca Gerrit-Change-Number: 15389 Gerrit-PatchSet: 2 Gerrit-Owner: Grant Henke <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Andrew Wong <[email protected]> Gerrit-Reviewer: Grant Henke <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120)
