Skip to content
Snippets Groups Projects
Commit 80c3a3f6 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

build docker image with portable true, and no specific targetcpu

parent a3ec4741
No related branches found
No related tags found
1 merge request!18Draft: Portable docker image
......@@ -39,8 +39,8 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
WORKDIR /src
# By default, build non-portable code, for the oldest CPU that supports AVX2
ARG PORTABLE=FALSE
ARG TARGET_CPU=haswell
ARG PORTABLE=TRUE
#ARG TARGET_CPU=haswell
# Do not use `pip` from the Debian repository, but fetch it from PyPA.
# This way, we are sure that the latest versions of `pip`, `setuptools`, and
......@@ -69,7 +69,6 @@ RUN git -C casacore checkout ${CASACORE_COMMIT}
RUN cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DPORTABLE=${PORTABLE} \
-DTARGET_CPU=${TARGET_CPU} \
-H/src/casacore \
-B/src/casacore/build \
-G Ninja
......@@ -82,7 +81,6 @@ RUN git -C LofarStMan checkout ${LOFARSTMAN_COMMIT}
RUN cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DPORTABLE=${PORTABLE} \
-DTARGET_CPU=${TARGET_CPU} \
-H/src/LofarStMan \
-B/src/LofarStMan/build \
-G Ninja
......@@ -99,7 +97,6 @@ RUN cmake \
-DBUILD_WITH_PYTHON=OFF \
-DBUILD_TESTING=OFF \
-DPORTABLE=${PORTABLE} \
-DTARGET_CPU=${TARGET_CPU} \
-H/src/EveryBeam \
-B/src/EveryBeam/build \
-G Ninja
......@@ -112,7 +109,6 @@ RUN git -C aoflagger checkout ${AOFLAGGER_COMMIT}
RUN cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DPORTABLE=${PORTABLE} \
-DTARGET_CPU=${TARGET_CPU} \
-H/src/aoflagger \
-B/src/aoflagger/build \
-G Ninja
......@@ -139,7 +135,6 @@ RUN cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DBUILD_TESTING=OFF \
-DPORTABLE=${PORTABLE} \
-DTARGET_CPU=${TARGET_CPU} \
-DLIBDIRAC_PREFIX=/usr/local/ \
-DMETADATA_COMPRESSION_DEFAULT=True \
-H/src/DP3 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment