diff --git a/docker/Dockerfile b/docker/Dockerfile index 4768ae6b1..ec9031915 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -7,7 +7,7 @@ RUN yum install -y https://download.postgresql.org/pub/repos/yum/10/redhat/rhel- RUN yum install -y postgresql10 RUN yum -y install epel-release && yum -y update && yum clean all -RUN yum -y install clang +RUN yum -y install clang jemalloc jemalloc-devel ADD zerotier-one /usr/local/bin/zerotier-one diff --git a/docker/main.sh b/docker/main.sh index d40bae71b..e96978f3c 100644 --- a/docker/main.sh +++ b/docker/main.sh @@ -41,7 +41,7 @@ echo "{ } " > /var/lib/zerotier-one/local.conf -# export ASAN_OPTIONS=detect_leaks=1 -# export ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer -# export MSAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer +export GLIBCXX_FORCE_NEW=1 +export GLIBCPP_FORCE_NEW=1 +export LD_PRELOAD="/usr/lib64/libjemalloc.so" exec /usr/local/bin/zerotier-one /var/lib/zerotier-one