You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zg...@apache.org on 2019/03/12 12:46:44 UTC

[hbase] 116/133: HBASE-18579 Enable core dump by default for docker

This is an automated email from the ASF dual-hosted git repository.

zghao pushed a commit to branch HBASE-14850
in repository https://gitbox.apache.org/repos/asf/hbase.git

commit a6250b8b4aa430a11fb3168dab61c9a3f6cd05da
Author: tedyu <yu...@gmail.com>
AuthorDate: Mon Aug 14 07:06:23 2017 -0700

    HBASE-18579 Enable core dump by default for docker
---
 hbase-native-client/bin/start-docker.sh     | 2 +-
 hbase-native-client/docker-files/Dockerfile | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/hbase-native-client/bin/start-docker.sh b/hbase-native-client/bin/start-docker.sh
index 53325c1..391238d 100755
--- a/hbase-native-client/bin/start-docker.sh
+++ b/hbase-native-client/bin/start-docker.sh
@@ -55,7 +55,7 @@ fi;
 docker build -t hbase_native -f docker-files/Dockerfile .
 
 # After the image is built run the thing
-docker run -h="securecluster" -p 16050:16050/tcp \
+docker run --privileged=true -h="securecluster" -p 16050:16050/tcp \
          -v ${BASE_DIR}/..:/usr/src/hbase \
            -v ~/.m2:/root/.m2 \
          -it hbase_native /bin/bash
diff --git a/hbase-native-client/docker-files/Dockerfile b/hbase-native-client/docker-files/Dockerfile
index efd9a9d..ac3cb47 100644
--- a/hbase-native-client/docker-files/Dockerfile
+++ b/hbase-native-client/docker-files/Dockerfile
@@ -117,6 +117,8 @@ RUN cd /usr/src/ && \
   ctest && \
   make install
 
-ENTRYPOINT /usr/sbin/krb5kdc -P /var/run/krb5kdc.pid && /bin/bash
+RUN echo "enabled=1" >> /etc/default/apport
+
+ENTRYPOINT /usr/sbin/krb5kdc -P /var/run/krb5kdc.pid && echo "/tmp/core.%h.%e.%t" >> /proc/sys/kernel/core_pattern && sysctl -p && ulimit -c unlimited && /bin/bash
 
 WORKDIR /usr/src/hbase/hbase-native-client