Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Switch test to Kern 9 #77

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 5 additions & 59 deletions .ci/ubuntu22.04.docker
Original file line number Diff line number Diff line change
Expand Up @@ -2,67 +2,13 @@ FROM ubuntu:22.04
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_PRIORITY critical

RUN apt update
RUN apt install -y libblitz0-dev python3-dev libblas-dev liblapack-dev libqdbm-dev wcslib-dev \
# TODO: needed for now until kern 9 release
RUN apt update && apt install -y software-properties-common && apt-add-repository -s ppa:kernsuite/kern-dev

RUN apt update && apt install -y libblitz0-dev python3-dev libblas-dev liblapack-dev libqdbm-dev wcslib-dev \
libfftw3-dev python3-numpy libcfitsio-dev libboost-all-dev libboost-system-dev cmake g++ wget gfortran \
libncurses5-dev bison libbison-dev flex libreadline6-dev python3-pip rsync \
python3-virtualenv libgsl-dev

#####################################################################
## casa data from NRAO
#####################################################################
RUN mkdir -p /usr/share/casacore/data/
WORKDIR /usr/share/casacore/data/
RUN rsync -avz rsync://casa-rsync.nrao.edu/casa-data .

#####################################################################
## CASAcore from source
#####################################################################
RUN cd /opt && \
wget https://github.com/casacore/casacore/archive/v3.5.0.tar.gz && \
tar xvf v3.5.0.tar.gz && \
rm v3.5.0.tar.gz && \
mkdir casacore-3.5.0/build && \
cd /opt/casacore-3.5.0/build && \
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_DEPRECATED=OFF -DBUILD_PYTHON=OFF -DBUILD_PYTHON3=ON ../ && \
make -j 16 && \
make install && \
rm -r /opt/casacore-3.5.0 && \
ldconfig

#####################################################################
## CASArest from source
#####################################################################
RUN cd /opt && \
wget https://github.com/casacore/casarest/archive/v1.8.1.tar.gz && \
tar xvf v1.8.1.tar.gz && \
rm v1.8.1.tar.gz && \
cd /opt/casarest-1.8.1 && \
mkdir -p build && \
cd /opt/casarest-1.8.1/build && \
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ../ && \
make -j 16 && \
make install && \
rm -r /opt/casarest-1.8.1 && \
ldconfig

#####################################################################
## BUILD MAKEMS FROM SOURCE AND TEST
#####################################################################
WORKDIR /opt
RUN wget https://github.com/ska-sa/makems/archive/v1.5.5.tar.gz && \
tar xvf v1.5.5.tar.gz && \
rm v1.5.5.tar.gz && \
mkdir -p /opt/makems-1.5.5/LOFAR/build/gnu_opt && \
cd /opt/makems-1.5.5/LOFAR/build/gnu_opt && \
cmake -DCMAKE_MODULE_PATH:PATH=/opt/makems-1.5.5/LOFAR/CMake \
-DUSE_LOG4CPLUS=OFF -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr ../.. && \
make -j 16 && \
make install && \
cd /opt/makems-1.5.5/test && \
makems WSRT_makems.cfg && \
rm -r /opt/makems-1.5.5
python3-virtualenv libgsl-dev casacore-dev casarest casacore-data casacore-tools makems

#####################################################################
## BUILD MeqTrees from source
Expand Down