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 e4964731d191f2be99e9f83421a67004a9b7ec41 Author: tedyu <[email protected]> AuthorDate: Thu Sep 7 19:31:59 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 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
