Skip to content

Commit d7bb653

Browse files
authored
Merge pull request #23 from wongcht/upgrade-blosc-to-blosc2
Upgrade blosc to blosc2
2 parents 601881a + 2da6b63 commit d7bb653

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎dockerfiles/Dockerfile‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -245,29 +245,29 @@ RUN mkdir /tmp/libgeotiff \
245245
&& make -j $(nproc) --silent && make install \
246246
&& rm -rf /tmp/libgeotiff
247247

248-
# Build blosc (needed for ZARR)
249-
ENV BLOSC_VERSION=1.21.6
250-
RUN mkdir /tmp/blosc \
251-
&& curl -sfL https://github.com/Blosc/c-blosc/archive/refs/tags/v${BLOSC_VERSION}.tar.gz | tar zxf - -C /tmp/blosc --strip-components=1 \
252-
&& cd /tmp/blosc \
248+
# Build blosc2 (needed for ZARR)
249+
ENV BLOSC2_VERSION=2.23.0
250+
RUN mkdir /tmp/blosc2 \
251+
&& curl -sfL https://github.com/Blosc/c-blosc2/archive/refs/tags/v${BLOSC2_VERSION}.tar.gz | tar zxf - -C /tmp/blosc2 --strip-components=1 \
252+
&& cd /tmp/blosc2 \
253253
&& cmake -G"Unix Makefiles" \
254254
-DCMAKE_INSTALL_PREFIX:PATH=$PREFIX \
255255
-DCMAKE_INSTALL_LIBDIR:PATH=lib \
256256
-DCMAKE_INSTALL_RPATH="$ORIGIN" \
257257
-DCMAKE_BUILD_TYPE=Release \
258258
-DCMAKE_C_FLAGS="-O2 -Wl,-S" \
259-
-DCMAKE_CXX_FLAGS="-O2 -Wl,-S" \
259+
-DBUILD_SHARED_LIBS=ON \
260260
-DBUILD_SHARED=ON \
261261
-DBUILD_STATIC=OFF \
262262
-DBUILD_BENCHMARKS=OFF \
263263
-DBUILD_FUZZERS=OFF \
264264
-DBUILD_TESTS=OFF \
265+
-DBUILD_EXAMPLES=OFF \
265266
-DPREFER_EXTERNAL_LZ4=ON \
266267
-DPREFER_EXTERNAL_ZLIB=ON \
267-
-DPREFER_EXTERNAL_ZSTD=ON \
268-
-DDEACTIVATE_SNAPPY=OFF . \
268+
-DPREFER_EXTERNAL_ZSTD=ON . \
269269
&& make -j $(nproc) --silent && make install && make clean \
270-
&& rm -rf /tmp/blosc
270+
&& rm -rf /tmp/blosc2
271271

272272
# libcrypto (for GPC access)
273273
RUN mkdir /tmp/cryptopp \

0 commit comments

Comments
 (0)