Skip to content
Snippets Groups Projects

Draft: Portable docker image

Open Jorrit Schaap requested to merge portable_docker_image into main
2 files
+ 6
11
Compare changes
  • Side-by-side
  • Inline

Files

+ 2
7
@@ -40,8 +40,8 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
@@ -40,8 +40,8 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
WORKDIR /src
WORKDIR /src
# By default, build non-portable code, for the oldest CPU that supports AVX2
# By default, build non-portable code, for the oldest CPU that supports AVX2
ARG PORTABLE=FALSE
ARG PORTABLE=TRUE
ARG TARGET_CPU=haswell
#ARG TARGET_CPU=haswell
# Do not use `pip` from the Debian repository, but fetch it from PyPA.
# 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
# This way, we are sure that the latest versions of `pip`, `setuptools`, and
@@ -70,7 +70,6 @@ RUN git -C casacore checkout ${CASACORE_COMMIT}
@@ -70,7 +70,6 @@ RUN git -C casacore checkout ${CASACORE_COMMIT}
RUN cmake \
RUN cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DPORTABLE=${PORTABLE} \
-DPORTABLE=${PORTABLE} \
-DTARGET_CPU=${TARGET_CPU} \
-H/src/casacore \
-H/src/casacore \
-B/src/casacore/build \
-B/src/casacore/build \
-G Ninja
-G Ninja
@@ -83,7 +82,6 @@ RUN git -C LofarStMan checkout ${LOFARSTMAN_COMMIT}
@@ -83,7 +82,6 @@ RUN git -C LofarStMan checkout ${LOFARSTMAN_COMMIT}
RUN cmake \
RUN cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DPORTABLE=${PORTABLE} \
-DPORTABLE=${PORTABLE} \
-DTARGET_CPU=${TARGET_CPU} \
-H/src/LofarStMan \
-H/src/LofarStMan \
-B/src/LofarStMan/build \
-B/src/LofarStMan/build \
-G Ninja
-G Ninja
@@ -100,7 +98,6 @@ RUN cmake \
@@ -100,7 +98,6 @@ RUN cmake \
-DBUILD_WITH_PYTHON=OFF \
-DBUILD_WITH_PYTHON=OFF \
-DBUILD_TESTING=OFF \
-DBUILD_TESTING=OFF \
-DPORTABLE=${PORTABLE} \
-DPORTABLE=${PORTABLE} \
-DTARGET_CPU=${TARGET_CPU} \
-H/src/EveryBeam \
-H/src/EveryBeam \
-B/src/EveryBeam/build \
-B/src/EveryBeam/build \
-G Ninja
-G Ninja
@@ -113,7 +110,6 @@ RUN git -C aoflagger checkout ${AOFLAGGER_COMMIT}
@@ -113,7 +110,6 @@ RUN git -C aoflagger checkout ${AOFLAGGER_COMMIT}
RUN cmake \
RUN cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DPORTABLE=${PORTABLE} \
-DPORTABLE=${PORTABLE} \
-DTARGET_CPU=${TARGET_CPU} \
-H/src/aoflagger \
-H/src/aoflagger \
-B/src/aoflagger/build \
-B/src/aoflagger/build \
-G Ninja
-G Ninja
@@ -140,7 +136,6 @@ RUN cmake \
@@ -140,7 +136,6 @@ RUN cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DBUILD_TESTING=OFF \
-DBUILD_TESTING=OFF \
-DPORTABLE=${PORTABLE} \
-DPORTABLE=${PORTABLE} \
-DTARGET_CPU=${TARGET_CPU} \
-DLIBDIRAC_PREFIX=/usr/local/ \
-DLIBDIRAC_PREFIX=/usr/local/ \
-DMETADATA_COMPRESSION_DEFAULT=True \
-DMETADATA_COMPRESSION_DEFAULT=True \
-H/src/DP3 \
-H/src/DP3 \
Loading