Skip to content

Commit 29c4612

Browse files
pcaspersjenkins
authored andcommitted
Merge branch 'master' of gitlab.acadiasoft.net:qs/oreplus
1 parent 9c9bc8b commit 29c4612

2 files changed

Lines changed: 2 additions & 26 deletions

File tree

Docker/Dockerfile-multistage

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,12 @@
11
ARG 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

245
FROM debian:${debian_tag} as orebuild
256

267
ARG num_cores
278
ARG 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-
3210
COPY CMakeLists.txt /ore/CMakeLists.txt
3311
COPY .clang-format /ore/.clang-format
3412
COPY .gitignore /ore/.gitignore
@@ -54,7 +32,7 @@ COPY Tools ore/Tools
5432
COPY xsd ore/xsd
5533

5634
RUN 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

5937
RUN cd / \
6038
&& mkdir -p build_ore && cd build_ore \

Docker/docker-compose-multistage.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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}

0 commit comments

Comments
 (0)