hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-18579 Enable core dump by default for docker
Date Fri, 08 Sep 2017 02:32:08 GMT
Repository: hbase
Updated Branches:
  refs/heads/HBASE-14850 b134b1e5f -> f6d6fcb64


HBASE-18579 Enable core dump by default for docker


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/f6d6fcb6
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/f6d6fcb6
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/f6d6fcb6

Branch: refs/heads/HBASE-14850
Commit: f6d6fcb642801474fde6f647250629068307f6b8
Parents: b134b1e
Author: tedyu <yuzhihong@gmail.com>
Authored: Thu Sep 7 19:31:59 2017 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Thu Sep 7 19:31:59 2017 -0700

----------------------------------------------------------------------
 hbase-native-client/bin/start-docker.sh     | 2 +-
 hbase-native-client/docker-files/Dockerfile | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/f6d6fcb6/hbase-native-client/bin/start-docker.sh
----------------------------------------------------------------------
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

http://git-wip-us.apache.org/repos/asf/hbase/blob/f6d6fcb6/hbase-native-client/docker-files/Dockerfile
----------------------------------------------------------------------
diff --git a/hbase-native-client/docker-files/Dockerfile b/hbase-native-client/docker-files/Dockerfile
index 1265b83..c8844ac 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


Mime
View raw message