Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
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