Skip to content
Snippets Groups Projects
Commit a702a2c7 authored by Jennifer Rinker's avatar Jennifer Rinker
Browse files

changed docker setup to pass tests

parent 85fe396b
No related branches found
No related tags found
1 merge request!94Handle disabled mpi
# ================================================================== # ==================================================================
# Creating a simple docker image for TOPFARM testing and docs # Creating a simple docker image for TOPFARM testing and docs
# ================================================================== # ==================================================================
# set the base image
FROM continuumio/anaconda3:latest FROM continuumio/anaconda3:latest
MAINTAINER Jenni Rinker <rink@dtu.dk>
# define the maintainer # get list of update linux files and install lib for matplotlib
MAINTAINER Jennifer Rinker <rink@dtu.dk> # (anaconda3:5.0.0 image doesn't have the library)
RUN apt update && \
apt install libgl1-mesa-glx -y
# update the application repository list
RUN apt-get update \
&& apt-get install -y \
build-essential \
gcc \
gfortran
# create an "install" directory and make it the working directory # use conde to update itself and install packages not in the
RUN mkdir /install # anaconda3 image
WORKDIR /install RUN conda update -y conda &&\
conda install -y sphinx_rtd_theme && \
conda install -y pytest-cov && \
conda clean -y --all
# copy reqs file to /install and install everything # use pip to install openmdao (nocache to save space)
COPY ./requirements_simple.txt /install RUN pip install --no-cache-dir openmdao
RUN pip install --upgrade pip \
&& pip install -r /install/requirements_simple.txt
# WindIO for ???
-e git+https://github.com/FUSED-Wind/windIO.git#egg=windio
# OpenMDAO for optimization
-e git+https://github.com/OpenMDAO/OpenMDAO.git#egg=openmdao
# sphinx read-the-docs theme for documentation
sphinx_rtd_theme
# pytest-cov for coverage report
pytest-cov
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment