diff --git a/containers/v2-dockerfile-test-suite-python35 b/containers/v2-dockerfile-test-suite-python35 new file mode 100644 index 0000000000000000000000000000000000000000..790a8e417e23cce1b7508e0536736ddcc44640f1 --- /dev/null +++ b/containers/v2-dockerfile-test-suite-python35 @@ -0,0 +1,60 @@ +FROM continuumio/miniconda3 +LABEL name="bilby Base miniconda3" \ +maintainer="Gregory Ashton <gregory.ashton@ligo.org>" \ +date="20191114" + +RUN conda update -n base -c defaults conda + +ENV conda_env python35 + +RUN conda create -n ${conda_env} python=3.5 +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 + +# Install conda-forge-installable programs +RUN conda install -n ${conda_env} -c conda-forge black ligo-gracedb gwpy lalsuite ligo.skymap pytest-cov + +# Install pip-requirements +RUN pip install --upgrade pip +RUN pip install --upgrade setuptools coverage-badge + +# Install documentation requirements +RUN pip install sphinx numpydoc nbsphinx sphinx_rtd_theme sphinx-tabs autodoc + +RUN pip install corner lalsuite theano + +RUN pip install cpnest dynesty emcee nestle ptemcee pymc3 pymultinest kombine + +# Install pymultinest requirements +RUN apt-get install -y libblas3 libblas-dev liblapack3 liblapack-dev \ +libatlas3-base libatlas-base-dev cmake build-essential gfortran + +# Install pymultinest +RUN git clone https://github.com/farhanferoz/MultiNest.git \ +&& (cd MultiNest/MultiNest_v3.11_CMake/multinest && mkdir build && cd build && cmake .. && make) + +ENV LD_LIBRARY_PATH $HOME/MultiNest/MultiNest_v3.11_CMake/multinest/lib: + +# Install Polychord +RUN git clone https://github.com/PolyChord/PolyChordLite.git \ +&& (cd PolyChordLite && make pypolychord MPI= && python setup.py install) + +# Install PTMCMCSampler +RUN git clone https://github.com/jellis18/PTMCMCSampler.git \ +&& (cd PTMCMCSampler && python setup.py install) + +# 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 \ diff --git a/containers/v2-dockerfile-test-suite-python36 b/containers/v2-dockerfile-test-suite-python36 new file mode 100644 index 0000000000000000000000000000000000000000..0cf50ef7ec04aa9f6ffd560dbd88d23a2bbbd001 --- /dev/null +++ b/containers/v2-dockerfile-test-suite-python36 @@ -0,0 +1,60 @@ +FROM continuumio/miniconda3 +LABEL name="bilby Base miniconda3" \ +maintainer="Gregory Ashton <gregory.ashton@ligo.org>" \ +date="20191114" + +RUN conda update -n base -c defaults conda + +ENV conda_env python36 + +RUN conda create -n ${conda_env} python=3.6 +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 + +# Install conda-forge-installable programs +RUN conda install -n ${conda_env} -c conda-forge black ligo-gracedb gwpy lalsuite ligo.skymap pytest-cov + +# Install pip-requirements +RUN pip install --upgrade pip +RUN pip install --upgrade setuptools coverage-badge + +# Install documentation requirements +RUN pip install sphinx numpydoc nbsphinx sphinx_rtd_theme sphinx-tabs autodoc + +RUN pip install corner lalsuite theano + +RUN pip install cpnest dynesty emcee nestle ptemcee pymc3 pymultinest kombine + +# Install pymultinest requirements +RUN apt-get install -y libblas3 libblas-dev liblapack3 liblapack-dev \ +libatlas3-base libatlas-base-dev cmake build-essential gfortran + +# Install pymultinest +RUN git clone https://github.com/farhanferoz/MultiNest.git \ +&& (cd MultiNest/MultiNest_v3.11_CMake/multinest && mkdir build && cd build && cmake .. && make) + +ENV LD_LIBRARY_PATH $HOME/MultiNest/MultiNest_v3.11_CMake/multinest/lib: + +# Install Polychord +RUN git clone https://github.com/PolyChord/PolyChordLite.git \ +&& (cd PolyChordLite && make pypolychord MPI= && python setup.py install) + +# Install PTMCMCSampler +RUN git clone https://github.com/jellis18/PTMCMCSampler.git \ +&& (cd PTMCMCSampler && python setup.py install) + +# 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 \ diff --git a/containers/v2-dockerfile-test-suite-python37 b/containers/v2-dockerfile-test-suite-python37 new file mode 100644 index 0000000000000000000000000000000000000000..1ce4744cbfacf382712f7be497201a6116b46d91 --- /dev/null +++ b/containers/v2-dockerfile-test-suite-python37 @@ -0,0 +1,60 @@ +FROM continuumio/miniconda3 +LABEL name="bilby Base miniconda3" \ +maintainer="Gregory Ashton <gregory.ashton@ligo.org>" \ +date="20191114" + +RUN conda update -n base -c defaults conda + +ENV conda_env python37 + +RUN conda create -n ${conda_env} python=3.7 +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 + +# Install conda-forge-installable programs +RUN conda install -n ${conda_env} -c conda-forge black ligo-gracedb gwpy lalsuite ligo.skymap pytest-cov + +# Install pip-requirements +RUN pip install --upgrade pip +RUN pip install --upgrade setuptools coverage-badge + +# Install documentation requirements +RUN pip install sphinx numpydoc nbsphinx sphinx_rtd_theme sphinx-tabs autodoc + +RUN pip install corner lalsuite theano + +RUN pip install cpnest dynesty emcee nestle ptemcee pymc3 pymultinest kombine + +# Install pymultinest requirements +RUN apt-get install -y libblas3 libblas-dev liblapack3 liblapack-dev \ +libatlas3-base libatlas-base-dev cmake build-essential gfortran + +# Install pymultinest +RUN git clone https://github.com/farhanferoz/MultiNest.git \ +&& (cd MultiNest/MultiNest_v3.11_CMake/multinest && mkdir build && cd build && cmake .. && make) + +ENV LD_LIBRARY_PATH $HOME/MultiNest/MultiNest_v3.11_CMake/multinest/lib: + +# Install Polychord +RUN git clone https://github.com/PolyChord/PolyChordLite.git \ +&& (cd PolyChordLite && make pypolychord MPI= && python setup.py install) + +# Install PTMCMCSampler +RUN git clone https://github.com/jellis18/PTMCMCSampler.git \ +&& (cd PTMCMCSampler && python setup.py install) + +# 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 \ diff --git a/containers/v2-dockerfile-test-suite-python38 b/containers/v2-dockerfile-test-suite-python38 new file mode 100644 index 0000000000000000000000000000000000000000..f24152d921fffe3a3fd7a0f088cb5e9f043b1f24 --- /dev/null +++ b/containers/v2-dockerfile-test-suite-python38 @@ -0,0 +1,60 @@ +FROM continuumio/miniconda3 +LABEL name="bilby Base miniconda3" \ +maintainer="Gregory Ashton <gregory.ashton@ligo.org>" \ +date="20191114" + +RUN conda update -n base -c defaults conda + +ENV conda_env python38 + +RUN conda create -n ${conda_env} python=3.8 +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 + +# Install conda-forge-installable programs +RUN conda install -n ${conda_env} -c conda-forge black ligo-gracedb gwpy lalsuite ligo.skymap pytest-cov + +# Install pip-requirements +RUN pip install --upgrade pip +RUN pip install --upgrade setuptools coverage-badge + +# Install documentation requirements +RUN pip install sphinx numpydoc nbsphinx sphinx_rtd_theme sphinx-tabs autodoc + +RUN pip install corner lalsuite theano + +RUN pip install cpnest dynesty emcee nestle ptemcee pymc3 pymultinest kombine + +# Install pymultinest requirements +RUN apt-get install -y libblas3 libblas-dev liblapack3 liblapack-dev \ +libatlas3-base libatlas-base-dev cmake build-essential gfortran + +# Install pymultinest +RUN git clone https://github.com/farhanferoz/MultiNest.git \ +&& (cd MultiNest/MultiNest_v3.11_CMake/multinest && mkdir build && cd build && cmake .. && make) + +ENV LD_LIBRARY_PATH $HOME/MultiNest/MultiNest_v3.11_CMake/multinest/lib: + +# Install Polychord +RUN git clone https://github.com/PolyChord/PolyChordLite.git \ +&& (cd PolyChordLite && make pypolychord MPI= && python setup.py install) + +# Install PTMCMCSampler +RUN git clone https://github.com/jellis18/PTMCMCSampler.git \ +&& (cd PTMCMCSampler && python setup.py install) + +# 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 \