1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
FROM centos:8
# Because Centos8 is EOL, we need to use the repos Vault where old things are archived:
RUN \
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
# Enable epel & power tools repositories
RUN yum -y install epel-release dnf-plugins-core && \
yum config-manager --set-enabled powertools
RUN yum -y install \
blas-devel \
boost-devel \
cfitsio-devel \
cmake libarchive \
fftw-devel \
gcc-c++ \
git \
gsl-devel \
gtkmm30-devel \
hdf5-devel \
lapack-devel \
libpng-devel \
lua-devel \
make \
python3 \
python3-devel
# casacore dependencies
RUN \
yum -y install \
bison \
bzip2 \
flex \
gcc-gfortran \
ncurses-devel \
python3-libs \
readline-devel \
wcslib-devel \
wget \
&& \
mkdir /external
RUN \
cd /external && \
git clone https://github.com/casacore/casacore.git --branch v3.3.0 --depth 1 && \
cd /external/casacore && \
mkdir build && \
cd build && \
cmake .. -DBUILD_PYTHON=OFF -DBUILD_TESTING=OFF && \
make -j`nproc --all` && \
make install -j`nproc --all`
ADD . /src
WORKDIR /src
RUN mkdir /build && cd /build && cmake ../src
RUN cd /build && make -j`nproc --all` && make install
RUN cd /build/python && echo "import aoflagger" | python3
|