Grant Henke has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/12371 )

Change subject: [docker] Optimize kudu image size
......................................................................

[docker] Optimize kudu image size

This patch optimizes the docker kudu image size.

A runtime base image was created that installs only the
minimal runtime packages. Additionally the kudu binaries
were stripped to reduce their size. The Java and Python
libraries were also removed from the kudu image. A client
image can be created specifically for python/java as
needed and as a result those images can be much smaller
too.

This change reduces the kudu image from ~2GiB to
~325MiB. The base OS (xenial) is ~44MiB. The new
runtime base image is ~174MiB. The Kudu binaries
are ~148MB. In the future we could reduce the
binary size further by allowing the kudu master and
tserver to be started from the kudu binary.

Additionally the build script is updated to build/tag only
the kudu image by default and take a few more arguments.
These changes make the builds cleaner and reduce the
disk space used by tagged builds.

Change-Id: I2a1fdad54744a1680d362f59433e94749f35469f
Reviewed-on: http://gerrit.cloudera.org:8080/12371
Reviewed-by: Andrew Wong <[email protected]>
Tested-by: Kudu Jenkins
---
M .dockerignore
M docker/Dockerfile
M docker/README.adoc
R docker/bootstrap-dev-env.sh
A docker/bootstrap-runtime-env.sh
M docker/docker-build.sh
6 files changed, 227 insertions(+), 95 deletions(-)

Approvals:
  Andrew Wong: Looks good to me, approved
  Kudu Jenkins: Verified

--
To view, visit http://gerrit.cloudera.org:8080/12371
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I2a1fdad54744a1680d362f59433e94749f35469f
Gerrit-Change-Number: 12371
Gerrit-PatchSet: 3
Gerrit-Owner: Grant Henke <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Attila Bukor <[email protected]>
Gerrit-Reviewer: Grant Henke <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Todd Lipcon <[email protected]>

Reply via email to