-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rockylinux Dockerfile && Update Dockerfile (#348)
* Update Dockerfile * Add rockylinux Dockerfile
- Loading branch information
1 parent
81d5648
commit cd12c24
Showing
5 changed files
with
51 additions
and
51 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
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 |
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 |
---|---|---|
@@ -1,16 +1,23 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ENV TZ=UTC | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
ENV LANG=en_US.UTF-8 \ | ||
LANGUAGE=en_US:en \ | ||
LC_ALL=en_US.UTF-8 | ||
|
||
WORKDIR /root | ||
|
||
RUN apt-get update -y \ | ||
&& apt-get install -y cmake git clang-13 libaio-dev libgtest-dev libgmock-dev gcc-11 g++-11 | ||
&& apt-get install -y cmake git clang-13 libaio-dev libgtest-dev libgmock-dev gcc-12 g++-12 \ | ||
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100 \ | ||
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100 \ | ||
&& update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-13 100 \ | ||
&& update-alternatives --install /usr/bin/clang clang /usr/bin/clang-13 100 | ||
|
||
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 \ | ||
&& make -j 9 && ctest | ||
|
||
RUN cd async_simple \ | ||
&& mkdir gcc_build && cd gcc_build \ | ||
&& cmake .. -DCMAKE_BUILD_TYPE=Release \ | ||
&& make -j 9 && ctest | ||
|
||
ENV ASYNC_SIMPLE_ROOT="/root/async_simple" | ||
RUN git clone https://github.com/alibaba/async_simple.git $ASYNC_SIMPLE_ROOT | ||
WORKDIR $ASYNC_SIMPLE_ROOT | ||
WORKDIR /root/async_simple |