Commit 217ab216 authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles

Update Dockerfiles with NEMO package

parent 6b515533
FROM quay.io/pypa/manylinux1_x86_64
RUN yum install -y gcc-c++ make pcre-devel ccache wget \
cfitsio-devel zlib-devel
zlib-devel tcsh
# Install SWIG 4.0.1 + cmake3.2.12 + hdf5-1.8.21
# Install SWIG 4.0.1 + cmake3.2.12 + hdf5-1.8.21 && cfitsio && CCfits && nemo
RUN \
cd /opt &&\
curl -L 'https://sourceforge.net/projects/swig/files/swig/swig-4.0.1/swig-4.0.1.tar.gz' \
......@@ -18,14 +18,33 @@ RUN \
chmod +x cmake-3.2.3-Linux-x86_64.sh &&\
./cmake-3.2.3-Linux-x86_64.sh --prefix=/opt/usr --skip-license &&\
rm -f cmake-3.2.3-Linux-x86_64.sh &&\
cd /opt &&\
cd &&\
curl -L https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.21/src/hdf5-1.8.21.tar.gz \
--output hdf5-1.8.21.tar.gz &&\
tar zxvf hdf5-1.8.21.tar.gz &&\
cd hdf5-1.8.21 &&\
./configure --prefix=/opt/usr --enable-cxx &&\
make -j 4 && make install &&\
rm -rf hdf5-1.8.21.tar.gz hdf5-1.8.21
rm -rf hdf5-1.8.21.tar.gz hdf5-1.8.21 &&\
cd &&\
curl -L http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-3.47.tar.gz --output cfitsio-3.47.tar.gz &&\
tar zxvf cfitsio-3.47.tar.gz &&\
cd cfitsio-3.47 &&\
./configure --prefix=/opt/usr --enable-cxx &&\
make -j 4 && make install &&\
rm -rf cfitsio-3.47.tar.gz cfitsio-3.47 &&\
cd &&\
curl -L http://heasarc.gsfc.nasa.gov/fitsio/ccfits/CCfits-2.5.tar.gz --output CCfits-2.5.tar.gz &&\
tar zxvf CCfits-2.5.tar.gz &&\
chown -R root:root CCfits &&\
cd CCfits &&\
./configure --with-cfitsio=/opt/usr --prefix=/opt/usr &&\
make && make install && cd .. && rm -rf CCfits CCfits-2.5.tar.gz &&\
cd /opt/usr &&\
curl -L https://teuben.github.io/nemo/install_nemo --output install_nemo &&\
chmod +x install_nemo &&\
export NO_ARCH_NATIVE=1 &&\
./install_nemo
# Install numpy minimum requirements for swig
......@@ -36,14 +55,15 @@ RUN \
/opt/python/cp34-cp34m/bin/pip install numpy==1.8.2 twine &&\
/opt/python/cp35-cp35m/bin/pip install numpy==1.9.0 twine &&\
/opt/python/cp36-cp36m/bin/pip install numpy==1.11.3 twine &&\
/opt/python/cp37-cp37m/bin/pip install numpy==1.14.5 twine
/opt/python/cp37-cp37m/bin/pip install numpy==1.14.5 twine &&\
/opt/python/cp38-cp38/bin/pip install numpy==1.17.3 twine
# trick to resize image
FROM quay.io/pypa/manylinux1_x86_64
RUN yum install -y gcc-c++ make pcre-devel ccache wget \
cfitsio-devel zlib-devel
cfitsio-devel zlib-devel tcsh
COPY --from=0 /opt/usr /opt/usr
COPY --from=0 /opt/python /opt/python
......
FROM quay.io/pypa/manylinux2010_x86_64
RUN yum install -y gcc-c++ make pcre-devel ccache wget \
hdf5-devel cmake3 cfitsio-devel zlib-devel
hdf5-devel cmake3 cfitsio-devel zlib-devel tcsh
# Install SWIG 4.0.1
# Install SWIG 4.0.1 && CCfits && nemo
RUN \
cd /opt &&\
curl -L 'https://sourceforge.net/projects/swig/files/swig/swig-4.0.1/swig-4.0.1.tar.gz' \
......@@ -12,7 +12,19 @@ RUN \
tar xzf swig-4.0.1.tar.gz &&\
cd /opt/swig-4.0.1 &&\
./configure --prefix=/opt/usr &&\
make -j4 && make install
make -j4 && make install &&\
wget http://heasarc.gsfc.nasa.gov/fitsio/ccfits/CCfits-2.5.tar.gz &&\
tar zxvf CCfits-2.5.tar.gz &&\
chown -R root:root CCfits &&\
cd CCfits &&\
./configure --with-cfitsio-include=/usr/include/cfitsio --prefix=/opt/usr &&\
make && make install && cd .. && rm -rf CCfits CCfits-2.4.tar.gz &&\
cd /opt/usr &&\
wget https://teuben.github.io/nemo/install_nemo &&\
chmod +x install_nemo &&\
export NO_ARCH_NATIVE=1 &&\
./install_nemo
# Install numpy minimum requirements for swig
# Install twin
......@@ -22,14 +34,15 @@ RUN \
/opt/python/cp34-cp34m/bin/pip install numpy==1.8.2 twine &&\
/opt/python/cp35-cp35m/bin/pip install numpy==1.9.0 twine &&\
/opt/python/cp36-cp36m/bin/pip install numpy==1.11.3 twine &&\
/opt/python/cp37-cp37m/bin/pip install numpy==1.14.5 twine
/opt/python/cp37-cp37m/bin/pip install numpy==1.14.5 twine &&\
/opt/python/cp38-cp38/bin/pip install numpy==1.17.3 twine
# trick to resize image
FROM quay.io/pypa/manylinux2010_x86_64
RUN yum install -y gcc-c++ make pcre-devel ccache wget \
hdf5-devel cmake3 cfitsio-devel zlib-devel
hdf5-devel cmake3 cfitsio-devel zlib-devel tcsh
COPY --from=0 /opt/usr /opt/usr
COPY --from=0 /opt/python /opt/python
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment