build: add redis-plus-plus
This commit is contained in:
1 parent
68d8bfef21
commit
ebf0867db6
2 files changed
+46
-4
No files matched your search
+18
-2
@@ -1,6 +1,6 @@
|
||||
FROM docker.io/rockylinux/rockylinux:9
|
||||
|
||||
RUN dnf install --assumeyes \
|
||||
RUN dnf install --assumeyes --enablerepo=crb \
|
||||
autoconf \
|
||||
automake \
|
||||
bzip2 \
|
||||
@@ -13,6 +13,7 @@ RUN dnf install --assumeyes \
|
||||
git \
|
||||
libtool \
|
||||
make \
|
||||
ninja-build \
|
||||
patch \
|
||||
perl-core \
|
||||
pkgconf-pkg-config \
|
||||
@@ -185,7 +186,13 @@ RUN git clone --branch=liburing-2.15 --depth=1 https://github.com/axboe/liburing
|
||||
&& cd .. \
|
||||
&& rm -rf src
|
||||
|
||||
RUN git clone --branch=libaio-0.3.113 --depth=1 https://pagure.io/libaio.git src \
|
||||
RUN curl --fail --location --output libaio.tar.gz \
|
||||
https://releases.pagure.org/libaio/libaio-0.3.113.tar.gz \
|
||||
&& echo "2c44d1c5fd0d43752287c9ae1eb9c023f04ef848ea8d4aafa46e9aedb678200b libaio.tar.gz" \
|
||||
| sha256sum --check - \
|
||||
&& mkdir src \
|
||||
&& tar --extract --gzip --file=libaio.tar.gz --directory=src --strip-components=1 \
|
||||
&& rm libaio.tar.gz \
|
||||
&& make --directory=src --jobs="$(nproc)" ENABLE_SHARED=0 \
|
||||
&& make --directory=src ENABLE_SHARED=0 prefix=/usr/local install \
|
||||
&& rm -rf src
|
||||
@@ -538,6 +545,15 @@ RUN git clone --branch=v2.15.3 --depth=1 https://gitlab.gnome.org/GNOME/libxml2.
|
||||
&& cmake --build build --parallel "$(nproc)" --target install \
|
||||
&& rm -rf build src
|
||||
|
||||
RUN git clone --branch=1.3.15 --depth=1 https://github.com/sewenew/redis-plus-plus.git src \
|
||||
&& cmake -S src -B build -DCMAKE_BUILD_TYPE=Release \
|
||||
-DREDIS_PLUS_PLUS_BUILD_SHARED=OFF \
|
||||
-DREDIS_PLUS_PLUS_BUILD_STATIC=ON \
|
||||
-DREDIS_PLUS_PLUS_BUILD_STATIC_WITH_PIC=ON \
|
||||
-DREDIS_PLUS_PLUS_BUILD_TEST=OFF \
|
||||
&& cmake --build build --parallel "$(nproc)" --target install \
|
||||
&& rm -rf build src
|
||||
|
||||
RUN cp --archive /usr/local/lib/. /usr/local/lib64/
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
Reference in new issue
Block a user