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 11b9f6529a29b391e02a45957a74c507b8f5e8dd
Author: Grant Henke <[email protected]>
AuthorDate: Mon Feb 18 16:58:50 2019 -0600

    [docker] Use only the kudu binary in the kudu image
    
    This patch changes the docker image to only use
    the Kudu binary.
    
    This reduces the uploaded image size from 177 MB
    to 85 MB, and the downloaded/uncompressed image
    size from 467 MB to 224 MB.
    
    Change-Id: I406d18790b17307e9207a5fa67bd733d4689470d
    Reviewed-on: http://gerrit.cloudera.org:8080/12518
    Reviewed-by: Andrew Wong <[email protected]>
    Reviewed-by: Alexey Serbin <[email protected]>
    Tested-by: Grant Henke <[email protected]>
---
 docker/Dockerfile         | 6 +-----
 docker/kudu-entrypoint.sh | 4 ++--
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/docker/Dockerfile b/docker/Dockerfile
index 7ece98b..266c372 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -267,11 +267,7 @@ ARG DATA_DIR="/var/lib/kudu"
 
 # Copy the binaries.
 WORKDIR $INSTALL_DIR/bin
-COPY --from=build \
-  /kudu/build/latest/bin/kudu \
-  /kudu/build/latest/bin/kudu-master \
-  /kudu/build/latest/bin/kudu-tserver \
-  ./
+COPY --from=build /kudu/build/latest/bin/kudu ./
 # Add to the binaries to the path.
 ENV PATH=$INSTALL_DIR/bin/:$PATH
 
diff --git a/docker/kudu-entrypoint.sh b/docker/kudu-entrypoint.sh
index 6a0d93d..82cf6f9 100755
--- a/docker/kudu-entrypoint.sh
+++ b/docker/kudu-entrypoint.sh
@@ -97,7 +97,7 @@ if [[ "$1" == "master" ]]; then
   if [[ -n "$KUDU_MASTERS" ]]; then
     MASTER_ARGS="--master_addresses=$KUDU_MASTERS $MASTER_ARGS"
   fi
-  exec kudu-master ${MASTER_ARGS}
+  exec kudu master run ${MASTER_ARGS}
 elif [[ "$1" == "tserver" ]]; then
   mkdir -p "$SERVICE_DIR"
   wait_for_master_hosts
@@ -106,7 +106,7 @@ elif [[ "$1" == "tserver" ]]; then
   else
     TSERVER_ARGS="--tserver_master_addrs=localhost $TSERVER_ARGS"
   fi
-  exec kudu-tserver ${TSERVER_ARGS}
+  exec kudu tserver run ${TSERVER_ARGS}
 elif [[ "$1" == "help" ]]; then
   print_help
   exit 0

Reply via email to