@@ -64,39 +64,19 @@ RUN sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 10
6464
6565RUN pip3 install neuron==8.0.1
6666
67- # ###############################################################################
68- # ####### Install pyNeuroML for handling NeuroML network model
69-
70- # Pin version of pymongo required for py3.6... TODO remove...
71- RUN sudo pip install pymongo==4.1.1
72-
73- RUN git clone https://github.com/NeuroML/pyNeuroML.git && \
74- cd pyNeuroML && \
75- git checkout master && \
76- sudo python3 setup.py install
77-
78- # TODO remove this line after we have better dependency management. The
79- # current version of gitpython requires python >= 3.7, which is newer than the
80- # python included in the base image. Therefore, we manually install an older
81- # gitpython to be used with OpenWormData.
82- # See https://github.com/openworm/OpenWorm/pull/316
83- RUN sudo pip install 'gitpython==2.1.15' markupsafe
84-
85- RUN git clone https://github.com/openworm/PyOpenWorm.git && \
86- cd PyOpenWorm && \
87- git checkout ow-0.9 && \
88- sudo apt-get install -y python3-cffi && \
89- sudo python3 setup.py install && \
90- pow clone https://github.com/openworm/OpenWormData.git
91-
9267
9368# ###############################################################################
9469# ####### Install c302 for building neuronal network models
9570
9671RUN git clone https://github.com/openworm/c302.git && \
9772 cd c302 && \
98- git checkout ow-0.9.1 && \
99- sudo python3 setup.py install
73+ git checkout ow-0.9.3 && \
74+ sudo pip install .
75+
76+ # Note: pyNeuroML installed with the above library
77+
78+ RUN pip3 install owmeta-core==0.13.5
79+ RUN owm bundle remote --user add ow 'https://raw.githubusercontent.com/openworm/owmeta-bundles/master/index.json'
10080
10181
10282# ###############################################################################
@@ -120,7 +100,6 @@ ENV SIBERNETIC_HOME=$HOME/sibernetic
120100ENV PYTHONPATH=$PYTHONPATH:$HOME/c302:$SIBERNETIC_HOME
121101
122102
123-
124103# ###############################################################################
125104# ####### Install Intel OpenCL libraries needed for Sibernetic
126105
@@ -149,20 +128,9 @@ RUN cd sibernetic && \
149128 sed -i -e "s/n2.7/n3.10/g" makefile && \
150129 make clean && make all # Use python 3 libs
151130
152- # intel i5, hd 5500, linux 4.15.0-39-generic
153- # ./Release/Sibernetic -f worm -no_g device=CPU 190ms
154- # ./Release/Sibernetic -f worm -no_g device=GPU 150ms (initialization takes some time)
155-
156- # Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz, linux 4.4.0-139-generic
157- # ./Release/Sibernetic -f worm -no_g device=CPU 60ms
158- #
159- # after installing the nvidia driver used in host:
160- # # wget http://us.download.nvidia.com/tesla/390.30/nvidia-diag-driver-local-repo-ubuntu1604-390.30_1.0-1_amd64.deb
161- # # sudo dpkg -i nvidia-diag-driver-local-repo-ubuntu1604-390.30_1.0-1_amd64.deb
162- # # sudo apt-key add /var/nvidia-diag-driver-local-repo-390.30/7fa2af80.pub
163- # # sudo apt-get update
164- # # sudo apt-get install -y cuda-drivers
165- # ./Release/Sibernetic -f worm -no_g device=GPU 37ms
131+
132+ # ###############################################################################
133+ # ####### Copy master python script
166134
167135# Not working with --chown=$USER:$USER
168136COPY ./master_openworm.py $HOME/master_openworm.py
0 commit comments