-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bfb61f
commit 0f54edd
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |