-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from ratt-ru/issue-6
Fixes #6 . This adds support for building under GNU 11 and Ubuntu 22.04
- Loading branch information
Showing
8 changed files
with
90 additions
and
50 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
LOFAR/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters