Skip to content

Commit

Permalink
Add 22.04 test, add dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
bennahugo committed Jan 31, 2024
1 parent 1aa8fbf commit 43d176a
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
File renamed without changes.
38 changes: 38 additions & 0 deletions .ci/ubuntu.22.04.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_PRIORITY critical
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 casacore-dev casacore-data

#####################################################################
## CASArest from source
#####################################################################
# BH: TODO - this should go to KERN once that is ready...
WORKDIR /opt
RUN 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

RUN mkdir -p /src/
ENV BUILD /src
ADD . /src/makems
RUN mkdir -p $BUILD/makems/LOFAR/build/gnu_opt
WORKDIR $BUILD/makems/LOFAR/build/gnu_opt
RUN cmake -DCMAKE_MODULE_PATH:PATH=$BUILD/makems/LOFAR/CMake \
-DUSE_LOG4CPLUS=OFF -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr ../..
RUN make -j 16
RUN make install

WORKDIR $BUILD/makems/test
RUN makems WSRT_makems.cfg
ENTRYPOINT makems
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LOFAR/build
4 changes: 3 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build on Ubuntu 20.04
run: docker build . --file docker.20.04 --tag makems2004:$(date +%s)
run: docker build . --file .ci/ubuntu.20.04.docker --tag makems2004:$(date +%s)
- name: Build on Ubuntu 22.04
run: docker build . --file .ci/ubuntu.22.04.docker --tag makems2204:$(date +%s)

0 comments on commit 43d176a

Please sign in to comment.