Skip to content

Commit

Permalink
fix arm
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico640 committed Apr 29, 2024
1 parent c0bdb34 commit b3b7989
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,13 @@ RUN apk add --no-cache --virtual .build-deps autoconf dpkg-dev dpkg file g++ gcc
# start siridb #
COPY --from=unms-siridb /etc/siridb/siridb.conf /etc/siridb/siridb.conf

ENV LIBCLERI_VERSION=1.0.2 \
SIRIDB_VERSION=2.0.51
ENV SIRIDB_VERSION=2.0.51

RUN set -x \
&& [ $TARGETARCH = "arm" ] && export LIBCLERI_VERSION=0.12.2 || export LIBCLERI_VERSION=1.0.2 \
&& apk add --no-cache --virtual .build-deps gcc make libuv-dev musl-dev pcre2-dev yajl-dev util-linux-dev \
&& mkdir -p /tmp/src && cd /tmp/src \
&& curl -SL https://github.com/cesbit/libcleri/archive/v${LIBCLERI_VERSION}.tar.gz | tar xvz \
&& curl -SL https://github.com/cesbit/libcleri/archive/$([[ $LIBCLERI_VERSION != 0* ]] && echo "v" )${LIBCLERI_VERSION}.tar.gz | tar xvz \
&& curl -SL https://github.com/siridb/siridb-server/archive/${SIRIDB_VERSION}.tar.gz | tar xvz \
&& cd /tmp/src/libcleri-${LIBCLERI_VERSION}/Release \
&& make all -j $(nproc) && make install \
Expand Down

0 comments on commit b3b7989

Please sign in to comment.