-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build inside docker #114
Comments
I finally implemented working Dockerfile.
UPDATE:
|
Finally, I come to this version: FROM madduci/docker-linux-cpp
RUN apt update
RUN apt upgrade -y
RUN apt install -y cmake curl git
RUN cd / && curl -L https://boostorg.jfrog.io/artifactory/main/release/1.72.0/source/boost_1_72_0.tar.gz | tar zx
# BOOOST.BOOTSTRAP!!!
# Y U CANNO SPECIFY VERSION FOR CLANG++ ???!!!
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 90 --slave /usr/bin/clang++ clang++ /usr/bin/clang++-12
RUN cd /boost_1_72_0 && ./bootstrap.sh -with-toolset=clang \
&& ./b2 && ./b2 install
RUN git clone --recursive https://github.com/objectcomputing/mFAST.git /mFAST && sleep 0
RUN mkdir /mFAST/build
RUN cd /mFAST/build \
&& cmake -DBOOST_ROOT=/boost_1_72_0 \
-DBoost_INCLUDE_DIR=/boost_1_72_0 \
-DCMAKE_C_COMPILER=/usr/bin/clang-12 \
-DCMAKE_CXX_COMPILER=/usr/bin/clang++-12 \
-DBUILD_SHARED_LIBS=ON \
.. \
&& make
RUN cd /mFAST/build && make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible to build it with docker?
I tried
Dockerfile:
On make I get following error:
Which docker image and which clang++ or g++ version is it better to use?
If possible with std-c++20 or at least std-c++17
The text was updated successfully, but these errors were encountered: