diff --git a/docker/Dockerfile_simple b/docker/Dockerfile_simple index f0f0899cb0381852538ec2f04475a1c9eda66a13..0dcd669b6c7f5ba4d296c0e1901692d24a8803ed 100644 --- a/docker/Dockerfile_simple +++ b/docker/Dockerfile_simple @@ -1,25 +1,22 @@ # ================================================================== # Creating a simple docker image for TOPFARM testing and docs # ================================================================== - -# set the base image FROM continuumio/anaconda3:latest +MAINTAINER Jenni Rinker <rink@dtu.dk> + -# define the maintainer -MAINTAINER Jennifer Rinker <rink@dtu.dk> +# get list of update linux files and install lib for matplotlib +# (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 -RUN mkdir /install -WORKDIR /install +# use conde to update itself and install packages not in the +# anaconda3 image +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 -COPY ./requirements_simple.txt /install -RUN pip install --upgrade pip \ - && pip install -r /install/requirements_simple.txt +# use pip to install openmdao (nocache to save space) +RUN pip install --no-cache-dir openmdao diff --git a/docker/requirements_simple.txt b/docker/requirements_simple.txt deleted file mode 100644 index 08567130e95692a8c41a0c4bd5dc2a315b75c3e2..0000000000000000000000000000000000000000 --- a/docker/requirements_simple.txt +++ /dev/null @@ -1,8 +0,0 @@ -# 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