Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions images/Dockerfile.bottlecap.alpine.compile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ ENV PATH="${PATH}:/root/.cargo/bin"

# Build the binary
ENV RUSTFLAGS="-Cpanic=abort"
# tikv-jemallocator uses the `_rjem_` symbol prefix, so the runtime MALLOC_CONF
# env var is ignored. Tune jemalloc at compile time instead: a single arena
# reduces metadata mapped at init and lowers RSS (the extension is not
# allocation-throughput-bound, so arena contention is a non-issue here).
ENV JEMALLOC_SYS_WITH_MALLOC_CONF="narenas:1"

WORKDIR /tmp/dd/bottlecap
RUN --mount=type=cache,target=/root/.cargo/git \
Expand Down
5 changes: 5 additions & 0 deletions images/Dockerfile.bottlecap.compile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ ENV PATH="${PATH}:/root/.cargo/bin"

# Build the binary
ENV RUSTFLAGS="-Cpanic=abort"
# tikv-jemallocator uses the `_rjem_` symbol prefix, so the runtime MALLOC_CONF
# env var is ignored. Tune jemalloc at compile time instead: a single arena
# reduces metadata mapped at init and lowers RSS (the extension is not
# allocation-throughput-bound, so arena contention is a non-issue here).
ENV JEMALLOC_SYS_WITH_MALLOC_CONF="narenas:1"
ENV AWS_LC_FIPS_SYS_CC=clang
ENV AWS_LC_FIPS_SYS_CXX=clang++

Expand Down
Loading