Newer
Older
# Build a Docker image that contains pyCIF and all requirements.
FROM pycif/pycif-ci:0.2
# Install MPI
RUN apt-get update \
# && apt-get install -y mpich;
&& apt-get install -y libopenmpi-dev openmpi-bin libhdf5-openmpi-dev;
# Install NetCDF
RUN cd /tmp \
&& wget https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-fortran-4.5.3.tar.gz \
&& tar -xf netcdf-fortran-4.5.3.tar.gz \
&& cd netcdf-fortran-4.5.3 \
&& ./configure --prefix=${NCDIR} --disable-netcdf-4 \
&& make install;
COPY . /tmp/CIF
RUN cd /tmp/CIF/ \
&& python setup.py install
RUN cd /tmp/CIF/config_files/tuto_chimere/ \
&& python -m pycif config_chimere_fwd_academic_onespec.yml;