-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0fcce38
commit 4410eb3
Showing
3 changed files
with
108 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
FROM ubuntu:22.04 | ||
RUN export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get update \ | ||
&& apt-get install -y \ | ||
clang \ | ||
cmake \ | ||
flex \ | ||
bison \ | ||
libblas-dev \ | ||
liblapack-dev \ | ||
libcfitsio-dev \ | ||
wcslib-dev \ | ||
libfftw3-dev \ | ||
gfortran \ | ||
libncurses5-dev \ | ||
libreadline6-dev \ | ||
libhdf5-serial-dev \ | ||
libboost-dev \ | ||
libboost-python-dev \ | ||
libboost-test-dev \ | ||
libgsl-dev \ | ||
python-is-python3 \ | ||
python3-numpy \ | ||
wget \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | ||
# Install WSRT Measures (extra casacore data, for tests) | ||
# Note: The file on the ftp site is updated daily. When warnings regarding leap | ||
# seconds appear, ignore them or regenerate the docker image. | ||
&& wget -nv -O /WSRT_Measures.ztar ftp://ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar \ | ||
&& mkdir -p /usr/local/share/casacore/data \ | ||
&& cd /usr/local/share/casacore/data \ | ||
&& tar xfz /WSRT_Measures.ztar \ | ||
&& rm /WSRT_Measures.ztar | ||
ADD . /code | ||
RUN useradd -ms /bin/bash casacore \ | ||
&& chown casacore.casacore /code | ||
USER casacore | ||
RUN mkdir /code/build | ||
WORKDIR /code/build | ||
RUN cmake .. \ | ||
-DBUILD_TESTING=ON \ | ||
-DUSE_OPENMP=OFF \ | ||
-DUSE_HDF5=ON \ | ||
-DBUILD_PYTHON=OFF \ | ||
-DBUILD_PYTHON3=ON \ | ||
-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} \ | ||
-DDATA_DIR=/usr/local/share/casacore/data \ | ||
-DCMAKE_C_COMPILER=/usr/bin/clang \ | ||
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \ | ||
&& make -j`nproc` | ||
USER root | ||
RUN make install | ||
USER casacore |
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,52 @@ | ||
FROM ubuntu:22.04 | ||
RUN export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get update \ | ||
&& apt-get install -y \ | ||
gcc \ | ||
g++ \ | ||
cmake \ | ||
flex \ | ||
bison \ | ||
libblas-dev \ | ||
liblapack-dev \ | ||
libcfitsio-dev \ | ||
wcslib-dev \ | ||
libfftw3-dev \ | ||
gfortran \ | ||
libncurses5-dev \ | ||
libreadline6-dev \ | ||
libhdf5-serial-dev \ | ||
libboost-dev \ | ||
libboost-python-dev \ | ||
libboost-test-dev \ | ||
libgsl-dev \ | ||
python-is-python3 \ | ||
python3-numpy \ | ||
wget \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | ||
# Install WSRT Measures (extra casacore data, for tests) | ||
# Note: The file on the ftp site is updated daily. When warnings regarding leap | ||
# seconds appear, ignore them or regenerate the docker image. | ||
&& wget -nv -O /WSRT_Measures.ztar ftp://ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar \ | ||
&& mkdir -p /usr/local/share/casacore/data \ | ||
&& cd /usr/local/share/casacore/data \ | ||
&& tar xfz /WSRT_Measures.ztar \ | ||
&& rm /WSRT_Measures.ztar | ||
ADD . /code | ||
RUN useradd -ms /bin/bash casacore \ | ||
&& chown casacore.casacore /code | ||
USER casacore | ||
RUN mkdir /code/build | ||
WORKDIR /code/build | ||
RUN cmake .. \ | ||
-DBUILD_TESTING=ON \ | ||
-DUSE_OPENMP=OFF \ | ||
-DUSE_HDF5=ON \ | ||
-DBUILD_PYTHON=OFF \ | ||
-DBUILD_PYTHON3=ON \ | ||
-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} \ | ||
-DDATA_DIR=/usr/local/share/casacore/data \ | ||
&& make -j`nproc` | ||
USER root | ||
RUN make install | ||
USER casacore |