File: Centos8

package info (click to toggle)
wsclean 3.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,296 kB
  • sloc: cpp: 129,246; python: 22,066; sh: 360; ansic: 230; makefile: 185
file content (64 lines) | stat: -rw-r--r-- 1,544 bytes parent folder | download | duplicates (2)
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
63
64
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 \
    fftw-devel \
    gcc-c++ \
    git \
    gsl-devel \
    hdf5-devel \
    lapack-devel \
    lua-devel \
    make \
    python3 \
    python3-devel \
    libarchive
# Libarchive is not required by wsclean, but because of a RHEL8 issue needs to be manually installed to use cmake
# (See e.g. https://github.com/ComplianceAsCode/content/issues/7016 )

# casacore dependencies & compilation
RUN \
  yum -y install \
     bison \
     bzip2 \
     flex \
     gcc-gfortran \
     ncurses-devel \
     python3-libs \
     readline-devel \
     wcslib-devel \
     wget \
  && \
  mkdir /external && \
  cd /external && \
  git clone https://github.com/casacore/casacore.git && \
  cd /external/casacore && \
  git checkout v3.3.0 && \
  mkdir build && \
  cd build && \
  cmake .. -DBUILD_PYTHON=OFF -DBUILD_TESTING=OFF && \
  make -j`nproc` && \
  make install -j`nproc`

ADD . /src
WORKDIR /src

RUN \
  mkdir /build && \
  cd /build && \
  cmake ../src && \
  make -j`nproc` && \
  make install && \
  wsclean --version