FROM containers.ligo.org/docker/base:conda LABEL name="bilby CI testing" \ maintainer="Gregory Ashton <gregory.ashton@ligo.org>" RUN conda update -n base -c defaults conda ENV conda_env python{python_major_version}{python_minor_version} RUN conda create -n ${{conda_env}} python={python_major_version}.{python_minor_version} RUN echo "source activate ${{conda_env}}" > ~/.bashrc ENV PATH /opt/conda/envs/${{conda_env}}/bin:$PATH RUN /bin/bash -c "source activate ${{conda_env}}" RUN conda info RUN python --version # Install conda-installable programs RUN conda install -n ${{conda_env}} -y matplotlib numpy scipy pandas astropy flake8 RUN conda install -n ${{conda_env}} -c anaconda coverage configargparse future RUN conda install -n ${{conda_env}} -c conda-forge black pytest-cov deepdish arviz # Install pip-requirements RUN pip install --upgrade pip RUN pip install --upgrade setuptools coverage-badge parameterized # Install documentation requirements RUN pip install sphinx numpydoc nbsphinx sphinx_rtd_theme sphinx-tabs autodoc # Install dependencies and samplers RUN pip install corner healpy cython tables RUN conda install -n ${{conda_env}} -c conda-forge dynesty emcee nestle ptemcee RUN conda install -n ${{conda_env}} -c conda-forge pymultinest ultranest RUN conda install -n ${{conda_env}} -c conda-forge cpnest kombine dnest4 zeus-mcmc RUN conda install -n ${{conda_env}} -c conda-forge pytorch RUN conda install -n ${{conda_env}} -c conda-forge theano-pymc RUN conda install -n ${{conda_env}} -c conda-forge pymc3 RUN pip install nessai # Install Polychord RUN apt-get update --allow-releaseinfo-change RUN apt-get install -y build-essential RUN apt-get install -y libblas3 libblas-dev RUN apt-get install -y liblapack3 liblapack-dev RUN apt-get install -y libatlas3-base libatlas-base-dev RUN apt-get install -y gfortran RUN git clone https://github.com/PolyChord/PolyChordLite.git \ && (cd PolyChordLite && python setup.py --no-mpi install) # Install PTMCMCSampler RUN git clone https://github.com/jellis18/PTMCMCSampler.git \ && (cd PTMCMCSampler && python setup.py install) # Install GW packages RUN conda install -n ${{conda_env}} -c conda-forge python-lalsimulation RUN pip install ligo-gracedb gwpy ligo.skymap # Add the ROQ data to the image RUN mkdir roq_basis \ && cd roq_basis \ && wget https://git.ligo.org/lscsoft/ROQ_data/raw/master/IMRPhenomPv2/4s/B_linear.npy \ && wget https://git.ligo.org/lscsoft/ROQ_data/raw/master/IMRPhenomPv2/4s/B_quadratic.npy \ && wget https://git.ligo.org/lscsoft/ROQ_data/raw/master/IMRPhenomPv2/4s/fnodes_linear.npy \ && wget https://git.ligo.org/lscsoft/ROQ_data/raw/master/IMRPhenomPv2/4s/fnodes_quadratic.npy \ && wget https://git.ligo.org/lscsoft/ROQ_data/raw/master/IMRPhenomPv2/4s/params.dat