Skip to content

Commit 6fffd8b

Browse files
author
Marcus Sorensen
committed
dockerfile: allow customization of FLB_JEMALLOC_OPTIONS
Signed-off-by: Marcus Sorensen <msorensen@nvidia.com>
1 parent 1d24eca commit 6fffd8b

File tree

2 files changed

+5
-277
lines changed

2 files changed

+5
-277
lines changed

dockerfiles/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ ARG WAMR_BUILD_TARGET
7272
ARG EXTRA_CMAKE_FLAGS
7373
ENV EXTRA_CMAKE_FLAGS=${EXTRA_CMAKE_FLAGS}
7474

75+
# Optional: jemalloc configure flags (e.g., page size). Leave unset to keep defaults.
76+
ARG FLB_JEMALLOC_OPTIONS
77+
ENV FLB_JEMALLOC_OPTIONS=${FLB_JEMALLOC_OPTIONS}
78+
7579
# We do not want word splitting for EXTRA_CMAKE_FLAGS in case multiple are defined
7680
# hadolint ignore=SC2086
7781
RUN [ -n "${WAMR_BUILD_TARGET:-}" ] && EXTRA_CMAKE_FLAGS="$EXTRA_CMAKE_FLAGS -DWAMR_BUILD_TARGET=$WAMR_BUILD_TARGET"; \
@@ -89,6 +93,7 @@ RUN [ -n "${WAMR_BUILD_TARGET:-}" ] && EXTRA_CMAKE_FLAGS="$EXTRA_CMAKE_FLAGS -DW
8993
-DFLB_NIGHTLY_BUILD="$FLB_NIGHTLY_BUILD" \
9094
-DFLB_LOG_NO_CONTROL_CHARS=On \
9195
-DFLB_CHUNK_TRACE="$FLB_CHUNK_TRACE" \
96+
-DFLB_JEMALLOC_OPTIONS="$FLB_JEMALLOC_OPTIONS" \
9297
$EXTRA_CMAKE_FLAGS \
9398
..
9499

dockerfiles/Dockerfile.largepage

Lines changed: 0 additions & 277 deletions
This file was deleted.

0 commit comments

Comments
 (0)