Commit 8edfa4f0 authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles

prepare doker manylinux1

parent 50c9b012
FROM quay.io/pypa/manylinux1_x86_64
RUN yum install -y gcc-c++ make pcre-devel ccache wget \
cfitsio-devel zlib-devel
# Install SWIG 4.0.1 + cmake3.2.12 + hdf5-1.8.21
RUN \
cd /opt &&\
curl -L 'https://sourceforge.net/projects/swig/files/swig/swig-4.0.1/swig-4.0.1.tar.gz' \
--output swig-4.0.1.tar.gz &&\
tar xzf swig-4.0.1.tar.gz &&\
cd /opt/swig-4.0.1 &&\
./configure --prefix=/opt/usr &&\
make -j4 && make install &&\
cd /opt &&\
curl -L https://cmake.org/files/v3.2/cmake-3.2.3-Linux-x86_64.sh \
--output cmake-3.2.3-Linux-x86_64.sh &&\
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 &&\
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
# Install numpy minimum requirements for swig
# Install twin
RUN \
/opt/python/cp27-cp27m/bin/pip install numpy==1.8.2 twine &&\
/opt/python/cp27-cp27mu/bin/pip install numpy==1.8.2 twine &&\
/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
# 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
COPY --from=0 /opt/usr /opt/usr
COPY --from=0 /opt/python /opt/python
COPY --from=0 /opt/_internal /opt/_internal
ENV PATH /opt/usr/bin/:$PATH
#!/bin/bash
HDF5_ROOT=/usr/opt cmake . -DCMAKE_INSTALL_PREFIX=/usr
make -j 4
make install
......@@ -3,4 +3,4 @@
cd /
git clone https://gitlab.lam.fr/jclamber/unsio.git
cd /unsio
git checkout --track origin/saveheader
#git checkout --track origin/saveheader
......@@ -27,7 +27,7 @@ pip install python-unsio
```
## Usage
- example : load gas and stars component of an UNS compliant snapshot
- example : load gas and stars components of an UNS supported file format
```python
import unsio.input as uns_in
......
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