Skip to content

Commit

Permalink
Add rockylinux Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasy-peak committed Nov 16, 2023
1 parent 9bfb61f commit 0f54edd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ bazel build --copt='-O0' --copt='-ggdb' ...
# Docker Compile Environment
```
git clone https://github.com/alibaba/async_simple.git
cd async_simple/docker/(ubuntu|centos7)
cd async_simple/docker/(ubuntu|centos7|rockylinux)
docker build . --no-cache -t async_simple:1.0
docker run -it --name async_simple async_simple:1.0 /bin/bash
```
Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ bazel build --copt='-O0' --copt='-ggdb' ...
# Docker 编译环境
```
git clone https://github.com/alibaba/async_simple.git
cd async_simple/docker/(ubuntu|centos7)
cd async_simple/docker/(ubuntu|centos7|rockylinux)
docker build . --no-cache -t async_simple:1.0
docker run -it --name async_simple async_simple:1.0 /bin/bash
```
Expand Down
19 changes: 19 additions & 0 deletions docker/rockylinux/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM rockylinux:9.2

WORKDIR /root

RUN dnf update -y \
&& dnf install -y cmake.x86_64 git.x86_64 clang.x86_64 libaio-devel.x86_64 gcc.x86_64 gcc-c++.x86_64

RUN git clone https://github.com/alibaba/async_simple.git
RUN cd async_simple \
&& mkdir clang_build && cd clang_build \
&& CXX=clang++ CC=clang cmake .. -DCMAKE_BUILD_TYPE=Release -DASYNC_SIMPLE_ENABLE_TESTS=OFF \
&& make -j 9

RUN cd async_simple \
&& mkdir gcc_build && cd gcc_build \
&& cmake .. -DCMAKE_BUILD_TYPE=Release \
&& make -j 9 && ctest

WORKDIR /root/async_simple

0 comments on commit 0f54edd

Please sign in to comment.