Skip to content
Snippets Groups Projects
Commit f2548810 authored by Pierre-Elouan Rethore's avatar Pierre-Elouan Rethore
Browse files

initial docker file

parent ad86f08b
No related branches found
No related tags found
1 merge request!94Handle disabled mpi
FROM continuumio/anaconda:latest
MAINTAINER Pierre-Elouan Rethore <pe@retho.re>
RUN apt-get update \
&& apt-get install -y \
build-essential \
gcc \
gfortran \
wget \
binutils \
gcc \
libgtk2.0-0 \
libgtk2.0-dev \
psmisc
RUN mkdir /install
WORKDIR /install
#ENV REQUIREMENTS requirements1.txt
#ARG REQUIREMENTS
# Install python library requirements to run the notebooks
COPY requirements2.txt /install
RUN pip install --upgrade pip \
&& pip install -r /install/requirements2.txt
## Install PyOptSparse & IpOpt
RUN apt-get update \
&& apt-get install -y \
mercurial \
meld
RUN apt-get update \
&& apt-get install -y \
swig
ENV POSDIR /install/pyoptsparse
ENV IPV 3.11.7
ENV IPOPT_DIR $POSDIR/pyoptsparse/pyIPOPT/Ipopt
RUN hg clone https://bitbucket.org/mdolab/pyoptsparse $POSDIR
# Install Ipopt
COPY install_ipopt2.sh /install
COPY ma27ad.f /install
RUN /install/install_ipopt2.sh
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:$IPOPT_DIR/lib
# Install SNOPT
COPY snopt/* $POSDIR/pyoptsparse/pySNOPT/source/
## Install PyOptSparse
#COPY install_pyoptsparse.sh /install
WORKDIR $POSDIR
RUN python setup.py install
#RUN mkdir /notebooks
#WORKDIR /notebooks
#COPY mycert.pem /install/
#COPY mykey.key /install/
#COPY jupyter_notebook_config.py /install/
# Add Tini. Tini operates as a process subreaper for jupyter. This prevents
# kernel crashes.
#ENV TINI_VERSION v0.6.0
#ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
#RUN chmod +x /usr/bin/tini
# Install the Colonel
RUN mkdir /deb
WORKDIR /deb
COPY *.deb /deb/
RUN dpkg -i *.deb
RUN apt-get clean \
&& apt-get autoremove -y
RUN mkdir /install
WORKDIR /install
COPY fuga/*.pas /install/
COPY fuga/*.lpr /install/
COPY fuga/*.lpi /install/
## Build
#RUN lazbuild ColonelLazarus.lpr
#RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
#RUN apt-get update -y && apt-get install -y nodejs
#RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager \
# && jupyter labextension install jupyterlab_bokeh
#ENTRYPOINT ["/usr/bin/tini", "--"]
#EXPOSE 8898
CMD bash
# CMD jupyter notebook \
# --notebook-dir=/notebooks \
# --config=/install/jupyter_notebook_config.py \
# --allow-root
File added
File added
#!/bin/bash
curl https://www.coin-or.org/download/source/Ipopt/Ipopt-$IPV.tgz > /install/Ipopt-$IPV.tgz
cd /install
tar xvf Ipopt-$IPV.tgz
mv Ipopt-$IPV $IPOPT_DIR
cp /install/ma27ad.f $IPOPT_DIR/ThirdParty/HSLold/
cd $IPOPT_DIR/ThirdParty/Blas
sh ./get.Blas
cd $IPOPT_DIR/ThirdParty/Lapack
sh ./get.Lapack
cd $IPOPT_DIR
./configure --disable-linear-solver-loader
make install
This diff is collapsed.
-e git+https://github.com/FUSED-Wind/windIO.git#egg=windio
-e git+https://github.com/OpenMDAO/OpenMDAO.git#egg=openmdao
bokeh==0.12.14
ipywidgets
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