Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

update runtime

Alexander111656a4dbcf
diff --git a/docker/prod/entrypoint-slim.sh b/docker/prod/entrypoint-slim.sh
index e69de29bb2d..96a4cee7173 100644
--- a/docker/prod/entrypoint-slim.sh
+++ b/docker/prod/entrypoint-slim.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+set -e
+set -o pipefail
+
+# Use jemalloc at runtime
+if [ "$USE_JEMALLOC" = "true" ]; then
+ export LD_PRELOAD=libjemalloc.so.2
+fi
+
+exec "$@"
diff --git a/docker/prod/setup/preinstall-common.sh b/docker/prod/setup/preinstall-common.sh
index 2ccd80fb43b..fd76a5b2b47 100755
--- a/docker/prod/setup/preinstall-common.sh
+++ b/docker/prod/setup/preinstall-common.sh
@@ -52,17 +52,9 @@ apt-get install -yq --no-install-recommends \
libclang-dev \
git
-# Use jemalloc as memory allocator
+# Install jemalloc
if [ "$USE_JEMALLOC" = "true" ]; then
apt-get install -yq libjemalloc2
- if [ "$ARCHITECTURE" = "x64" ]; then
- LIB_ARCH="x86_64"
- elif [ "$ARCHITECTURE" = "arm64" ]; then
- LIB_ARCH="aarch64"
- elif [ "$ARCHITECTURE" = "ppc64le" ]; then
- LIB_ARCH="powerpc64le"
- fi
- export LD_PRELOAD=/usr/lib/${LIB_ARCH}-linux-gnu/libjemalloc.so.2
fi
# Specifics for BIM edition