File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11ARG debian_tag
22
3- # boost
4-
5- FROM debian:${debian_tag} as boost
6-
7- ARG boost_tag
8- ARG boost_dir
9- ARG boost_variant
10- ARG num_cores
11-
12- RUN apt-get update && apt-get upgrade -y \
13- && apt-get install -f -y build-essential wget libbz2-dev zlib1g-dev
14-
15- RUN wget https://boostorg.jfrog.io/artifactory/main/release/${boost_tag}/source/boost_${boost_dir}.tar.gz
16-
17- RUN tar xfz boost_${boost_dir}.tar.gz \
18- && cd boost_${boost_dir} \
19- && ./bootstrap.sh \
20- && ./b2 --without-python -j ${num_cores} link=shared runtime-link=shared variant=${boost_variant} install
21-
223# ore build
234
245FROM debian:${debian_tag} as orebuild
256
267ARG num_cores
278ARG cmake_build_type
289
29- COPY --from=boost /usr/local/include/boost /usr/local/include/boost
30- COPY --from=boost /usr/local/lib/libboost* /usr/local/lib
31-
3210COPY CMakeLists.txt /ore/CMakeLists.txt
3311COPY .clang-format /ore/.clang-format
3412COPY .gitignore /ore/.gitignore
@@ -54,7 +32,7 @@ COPY Tools ore/Tools
5432COPY xsd ore/xsd
5533
5634RUN apt-get update && apt-get upgrade -y \
57- && apt-get install -f -y build-essential libbz2-dev cmake ninja-build zlib1g-dev opencl-headers ocl-icd-opencl-dev
35+ && apt-get install -f -y build-essential libbz2-dev cmake ninja-build zlib1g-dev libboost-all-dev opencl-headers ocl-icd-opencl-dev
5836
5937RUN cd / \
6038 && mkdir -p build_ore && cd build_ore \
Original file line number Diff line number Diff line change @@ -8,7 +8,5 @@ services:
88 dockerfile : Docker/Dockerfile-multistage
99 args :
1010 - debian_tag=${DEBIAN_TAG}
11- - boost_tag=${BOOST_TAG}
12- - boost_dir=${BOOST_DIR}
13- - boost_variant=${BOOST_VARIANT}
1411 - num_cores=${NUM_CORES}
12+ - cmake_build_type=${CMAKE_BUILD_TYPE}
You can’t perform that action at this time.
0 commit comments