Skip to content
Snippets Groups Projects

AST-1553 Remove IDG from Ubuntu 20 build; Add Ubuntu 24 build

Merged AST-1553 Remove IDG from Ubuntu 20 build; Add Ubuntu 24 build
All threads resolved!
Merged Maik Nijhuis requested to merge ast-1553-use-ubuntu-24 into master
All threads resolved!
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
+ 81
0
FROM ubuntu:24.04
# TODO: needs to be bumped before next DP3 release
# ENV IDG_VERSION=0.8
ENV EVERYBEAM_VERSION=v0.5.8
ENV IDG_VERSION=9ce6fa88b9d746d8d7146c474992aba9b98eb41f
ENV AOFLAGGER_VERSION=b1256de90b00a5a83477274390decd6671cdcd38
RUN export DEBIAN_FRONTEND="noninteractive" && \
apt-get update && \
apt-get install -y \
bison \
build-essential \
casacore-dev \
casacore-tools \
clang-format-14 \
cmake \
doxygen \
flex \
gcovr \
gfortran \
git \
libarmadillo-dev \
libboost-date-time-dev \
libboost-filesystem-dev \
libboost-program-options-dev \
libboost-python-dev \
libboost-system-dev \
libboost-test-dev \
libcfitsio-dev \
libfftw3-dev \
libgtkmm-3.0-dev \
libhdf5-serial-dev \
liblua5.3-dev \
libpng-dev \
ninja-build \
pkg-config \
pybind11-dev \
python3-dev \
python3-h5py \
python3-numpy \
python3-pip \
python3-pytest \
python3-sphinx \
python3-sphinx-rtd-theme \
wcslib-dev \
wget \
&& \
rm -rf /var/lib/apt/lists/*
# Build aoflagger3
RUN mkdir /aoflagger && cd /aoflagger \
&& git clone https://gitlab.com/aroffringa/aoflagger.git src \
&& ( cd src/ && git checkout ${AOFLAGGER_VERSION} ) \
&& mkdir build && cd build \
&& cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr ../src \
&& ninja install \
&& cd / && rm -rf aoflagger
# Build IDG
# (PORTABLE: it may run on a different node than where it was compiled)
RUN mkdir /idg && cd /idg \
&& git clone https://git.astron.nl/RD/idg.git src \
&& ( cd src/ && git checkout ${IDG_VERSION} ) \
&& mkdir build && cd build \
&& cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DPORTABLE=ON ../src \
&& ninja install \
&& cd / && rm -rf idg
# Build EveryBeam
RUN mkdir /everybeam && cd /everybeam \
&& git clone https://git.astron.nl/RD/EveryBeam.git src \
&& ( cd src/ && git checkout ${EVERYBEAM_VERSION} ) \
&& mkdir build && cd build \
&& cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr ../src -DPYTHON_EXECUTABLE=/usr/bin/python3 \
&& ninja install \
&& cd / && rm -rf everybeam
# Install WSRT Measures (extra casacore data, for integration tests)
# Note: The file on the ftp site is updated daily. When warnings regarding leap
# seconds appear, ignore them or regenerate the docker image.
RUN wget -nv -O /WSRT_Measures.ztar ftp://ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar \
&& cd /var/lib/casacore/data \
&& tar xfz /WSRT_Measures.ztar \
&& rm /WSRT_Measures.ztar
Loading