Skip to content

Commit

Permalink
packaging: distros: centos: Disble simdutf stuffs on CentOS 7
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Oct 28, 2024
1 parent 19a0a1a commit df32358
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packaging/distros/centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ RUN sed -i -e "s/^mirrorlist=http:\/\/mirrorlist.centos.org/#mirrorlist=http:\/\

ARG FLB_OUT_PGSQL=On
ENV FLB_OUT_PGSQL=$FLB_OUT_PGSQL
ARG FLB_UNICODE_ENCODE=Off
ENV FLB_UNICODE_ENCODE=$FLB_UNICODE_ENCODE

# centos/7.arm64v8 base image
FROM arm64v8/centos:7 as centos-7.arm64v8-base
Expand All @@ -47,6 +49,8 @@ RUN sed -i -e "s/^mirrorlist=http:\/\/mirrorlist.centos.org/#mirrorlist=http:\/\
# There are no postgresql libraries available for this target
ARG FLB_OUT_PGSQL=Off
ENV FLB_OUT_PGSQL=$FLB_OUT_PGSQL
ARG FLB_UNICODE_ENCODE=Off
ENV FLB_UNICODE_ENCODE=$FLB_UNICODE_ENCODE

# Need larger page size
ARG FLB_JEMALLOC_OPTIONS="--with-lg-page=16 --with-lg-quantum=3"
Expand All @@ -73,6 +77,8 @@ RUN yum -y update && \

ARG FLB_OUT_PGSQL=On
ENV FLB_OUT_PGSQL=$FLB_OUT_PGSQL
ARG FLB_UNICODE_ENCODE=On
ENV FLB_UNICODE_ENCODE=$FLB_UNICODE_ENCODE

# centos/8.arm64v8 base image
FROM arm64v8/centos:8 as centos-8.arm64v8-base
Expand All @@ -97,6 +103,8 @@ RUN yum -y update && \

ARG FLB_OUT_PGSQL=On
ENV FLB_OUT_PGSQL=$FLB_OUT_PGSQL
ARG FLB_UNICODE_ENCODE=On
ENV FLB_UNICODE_ENCODE=$FLB_UNICODE_ENCODE

# Need larger page size
ARG FLB_JEMALLOC_OPTIONS="--with-lg-page=16 --with-lg-quantum=3"
Expand Down Expand Up @@ -134,6 +142,8 @@ RUN dnf -y install 'dnf-command(config-manager)' && dnf -y config-manager --set-

ARG FLB_OUT_PGSQL=On
ENV FLB_OUT_PGSQL=$FLB_OUT_PGSQL
ARG FLB_UNICODE_ENCODE=On
ENV FLB_UNICODE_ENCODE=$FLB_UNICODE_ENCODE

# Need larger page size
ARG FLB_JEMALLOC_OPTIONS="--with-lg-page=16 --with-lg-quantum=3"
Expand Down Expand Up @@ -177,6 +187,7 @@ RUN cmake3 -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_PREFIX" \
-DFLB_JEMALLOC_OPTIONS="$FLB_JEMALLOC_OPTIONS" \
-DFLB_JEMALLOC="${FLB_JEMALLOC}" \
-DFLB_CHUNK_TRACE="${FLB_CHUNK_TRACE}" \
-DFLB_UNICODE_ENCODE="${FLB_UNICODE_ENCODE}" \
../

VOLUME [ "/output" ]
Expand Down

0 comments on commit df32358

Please sign in to comment.