Skip to content
Snippets Groups Projects
Commit 1c7d6453 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

Merge branch 'ready_fix_docker' into 'master'

Adding the installation of Topfarm to the Dockerfile

See merge request !34
parents f22bf955 5464195f
No related branches found
No related tags found
1 merge request!94Handle disabled mpi
...@@ -90,15 +90,14 @@ RUN chmod +x /usr/bin/tini ...@@ -90,15 +90,14 @@ RUN chmod +x /usr/bin/tini
RUN apt-get clean \ RUN apt-get clean \
&& apt-get autoremove -y && apt-get autoremove -y
RUN apt-get install lazarus -y RUN apt-get install lazarus -y
#RUN mkdir /install RUN mkdir /install/source
#RUN mkdir /install/source RUN mkdir /install/FugaLib
#RUN mkdir /install/FugaLib WORKDIR /install
#WORKDIR /install COPY topfarm/cost_models/fuga/Colonel/source/*.pas /install/source/
#COPY topfarm/cost_models/fuga/Colonel/source/*.pas /install/source/ COPY topfarm/cost_models/fuga/Colonel/FugaLib/FugaLib.lpr /install/FugaLib/
#COPY topfarm/cost_models/fuga/Colonel/FugaLib/FugaLib.lpr /install/FugaLib/ COPY topfarm/cost_models/fuga/Colonel/FugaLib/FugaLib.lpi /install/FugaLib
#COPY topfarm/cost_models/fuga/Colonel/FugaLib/FugaLib.lpi /install/FugaLib
## Build ## Build
RUN lazbuild /install/FugaLib/FugaLib.lpi RUN lazbuild /install/FugaLib/FugaLib.lpi
...@@ -107,6 +106,19 @@ RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - ...@@ -107,6 +106,19 @@ RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get update -y && apt-get install -y nodejs RUN apt-get update -y && apt-get install -y nodejs
## Install TOPFARM
RUN mkdir /topfarm
COPY topfarm /topfarm/topfarm
COPY setup.py /topfarm/
WORKDIR /topfarm
RUN cp /install/FugaLib/libfugalib.so /topfarm/topfarm/cost_models/fuga/Colonel/FugaLib/FugaLib.so
RUN pip install -e .
# Install python library requirements to run the notebooks
WORKDIR /install
COPY docker/requirements2.txt /install
RUN pip install -r /install/requirements2.txt
#RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager \ #RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager \
# && jupyter labextension install jupyterlab_bokeh # && jupyter labextension install jupyterlab_bokeh
...@@ -121,3 +133,5 @@ CMD bash ...@@ -121,3 +133,5 @@ CMD bash
# --notebook-dir=/notebooks \ # --notebook-dir=/notebooks \
# --config=/install/jupyter_notebook_config.py \ # --config=/install/jupyter_notebook_config.py \
# --allow-root # --allow-root
#jupyter notebook --notebook-dir=/topfarm --allow-root --port=8898 --ip='*'
-e git+https://github.com/FUSED-Wind/windIO.git#egg=windio -e git+https://github.com/FUSED-Wind/windIO.git#egg=windio
-e git+https://github.com/OpenMDAO/OpenMDAO.git#egg=openmdao -e git+https://github.com/OpenMDAO/OpenMDAO.git#egg=openmdao
-e git+https://github.com/FUSED-Wind/FUSED-Wake.git#egg=fusedwake
bokeh==0.12.14 bokeh==0.12.14
ipywidgets ipywidgets
msgpack
pytest
pytest-cov
matplotlib
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