Skip to content

Commit

Permalink
use jemalloc for all alpine runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
iyourshaw committed Feb 4, 2025
1 parent 46579ef commit 605763b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ RUN apk add --upgrade --no-cache \
COPY --from=builder /asn1_codec /asn1_codec
COPY --from=builder /build /build

# Use jemalloc
RUN apk add --upgrade --no-cache jemalloc
ENV LD_PRELOAD=/usr/lib/libjemalloc.so.2

# run ACM
RUN chmod 7777 /asn1_codec/run_acm.sh
CMD ["/asn1_codec/run_acm.sh"]
4 changes: 4 additions & 0 deletions Dockerfile.debug
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ RUN apk add --upgrade --no-cache \
librdkafka \
librdkafka-dev

# Use jemalloc
RUN apk add --upgrade --no-cache jemalloc
ENV LD_PRELOAD=/usr/lib/libjemalloc.so.2

# copy the built files from the builder
COPY --from=builder /asn1_codec /asn1_codec
COPY --from=builder /build /build
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ RUN apk add --upgrade --no-cache \
librdkafka \
librdkafka-dev

# Use jemalloc
RUN apk add --upgrade --no-cache jemalloc
ENV LD_PRELOAD=/usr/lib/libjemalloc.so.2

# install editors vim and nano
RUN apk update && apk add vim nano

Expand Down
4 changes: 4 additions & 0 deletions Dockerfile.standalone
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ RUN apk add --upgrade --no-cache \
librdkafka \
librdkafka-dev

# Use jemalloc
RUN apk add --upgrade --no-cache jemalloc
ENV LD_PRELOAD=/usr/lib/libjemalloc.so.2

# copy the built files from the builder
COPY --from=builder /asn1_codec /asn1_codec
COPY --from=builder /build /build
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile.testing
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ RUN apk add --upgrade --no-cache \
librdkafka \
librdkafka-dev

# Use jemalloc
RUN apk add --upgrade --no-cache jemalloc
ENV LD_PRELOAD=/usr/lib/libjemalloc.so.2

# copy the built files from the builder
COPY --from=builder /asn1_codec /asn1_codec
COPY --from=builder /build /build
Expand Down

0 comments on commit 605763b

Please sign in to comment.