Skip to content

Commit

Permalink
Update base image dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
beef9999 committed Oct 20, 2024
1 parent 69b5df4 commit 6751c1b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.linux.x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ jobs:
fstack:
runs-on: ubuntu-latest
container:
image: ghcr.io/beef9999/photon-ut-fstack:latest
image: ghcr.io/alibaba/photon-ut-fstack:latest
options: --cpus 4 --privileged
steps:
- uses: actions/checkout@v4
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/images/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM almalinux:8

RUN dnf install -y git cmake gcc-c++ openssl-devel libcurl-devel libaio-devel sudo zstd wget && \
dnf install -y epel-release 'dnf-command(config-manager)' && \
dnf config-manager --set-enabled powertools && \
dnf install -y gtest-devel gmock-devel fuse-devel libgsasl-devel e2fsprogs-devel && \
dnf install -y gcc-toolset-9-gcc-c++ gcc-toolset-10-gcc-c++ gcc-toolset-11-gcc-c++ gcc-toolset-12-gcc-c++ && \
dnf install -y redis && \
dnf clean all && rm -rf /var/cache/yum && \
wget https://github.com/gflags/gflags/archive/refs/tags/v2.1.2.tar.gz -O - | tar -xvz && \
cd gflags-2.1.2 && export CXXFLAGS="-fPIC" && cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=1 -DBUILD_STATIC_LIBS=1 . && make -j 8 && make install && \
cd .. && rm -rf gflags-2.1.2 && ln -s libgflags.so.2.1.2 /usr/local/lib/libgflags.so.2.1 && \
wget https://github.com/axboe/liburing/archive/refs/tags/liburing-2.3.tar.gz -O - | tar -xvz && \
cd liburing-liburing-2.3 && export CFLAGS="-fPIC -O3 -Wall -Wextra -fno-stack-protector" && ./configure && make -C src -j $(nprocs) && make install && cd .. && rm -rf liburing-liburing-2.3 && \
wget https://github.com/cpp-redis/cpp_redis/archive/refs/tags/4.3.1.tar.gz -O - | tar -xvz && \
cd cpp_redis-4.3.1 && cmake -B build -DCMAKE_BUILD_TYPE=Release -DUSE_CUSTOM_TCP_CLIENT=on; cmake --build build --config Release -j -t install && cd .. && rm -rf cpp_redis-4.3.1

ENV LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64:/usr/lib:/usr/lib64:/lib:/lib64

0 comments on commit 6751c1b

Please sign in to comment.