use jemalloc
Some checks failed
Gitea Actions Demo / lint (push) Successful in 24s
Gitea Actions Demo / test (push) Successful in 15s
Gitea Actions Demo / docker (push) Has been cancelled

This commit is contained in:
Ryan Cavicchioni 2025-04-30 21:51:49 -05:00
parent 16139755e5
commit 4fd8dd78ef
Signed by: ryanc
SSH Key Fingerprint: SHA256:KbXiwUnZnHFwFtt3Bytd+F3FN9pPHn1Z1cxMIE1TPbg
3 changed files with 7 additions and 1 deletions

View File

@ -5,7 +5,7 @@ WORKDIR /kubernaut
RUN <<EOT RUN <<EOT
apk update -q apk update -q
apk add bash apk add bash jemalloc
rm -rf /var/cache/apk rm -rf /var/cache/apk
gem update --system --no-document gem update --system --no-document
gem install -N bundler gem install -N bundler

View File

@ -5,6 +5,7 @@ WORKDIR /kubernaut
RUN <<EOT RUN <<EOT
apt-get update -qq apt-get update -qq
apt-get install --yes --no-install-recommends libjemalloc2
rm -rf /var/lib/apt/lists /var/cache/apt/archives rm -rf /var/lib/apt/lists /var/cache/apt/archives
gem update --system --no-document gem update --system --no-document
gem install -N bundler gem install -N bundler

View File

@ -7,4 +7,9 @@ ruby --version
printf "rubygems %s\n" "$(gem --version)" printf "rubygems %s\n" "$(gem --version)"
bundle version bundle version
if [ -z "${LD_PRELOAD+x}" ]; then
LD_PRELOAD="$(find /usr/lib -name libjemalloc.so.2 -print -quit)"
export LD_PRELOAD
fi
exec "${@}" exec "${@}"