Skip to content

Commit bcd10e6

Browse files
committed
Tidying up
1 parent 25d49f8 commit bcd10e6

File tree

1 file changed

+6
-26
lines changed

1 file changed

+6
-26
lines changed

Dockerfile

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -64,29 +64,21 @@ RUN sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 10
6464

6565
RUN pip3 install neuron==8.0.1
6666

67+
6768
################################################################################
6869
######## Install c302 for building neuronal network models
6970

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-
7871
RUN git clone https://github.com/openworm/c302.git && \
7972
cd c302 && \
80-
git checkout master && \
73+
git checkout ow-0.9.3 && \
8174
sudo pip install .
8275

83-
# Note: owmeta, owmeta-core and pyNeuroML installed with the above library
76+
# Note: pyNeuroML installed with the above library
8477

8578
RUN pip3 install owmeta-core==0.13.5
8679
RUN owm bundle remote --user add ow 'https://raw.githubusercontent.com/openworm/owmeta-bundles/master/index.json'
8780

8881

89-
9082
################################################################################
9183
######## Install Sibernetic for the worm body model
9284

@@ -108,7 +100,6 @@ ENV SIBERNETIC_HOME=$HOME/sibernetic
108100
ENV PYTHONPATH=$PYTHONPATH:$HOME/c302:$SIBERNETIC_HOME
109101

110102

111-
112103
################################################################################
113104
######## Install Intel OpenCL libraries needed for Sibernetic
114105

@@ -137,20 +128,9 @@ RUN cd sibernetic && \
137128
sed -i -e "s/n2.7/n3.10/g" makefile && \
138129
make clean && make all # Use python 3 libs
139130

140-
# intel i5, hd 5500, linux 4.15.0-39-generic
141-
# ./Release/Sibernetic -f worm -no_g device=CPU 190ms
142-
# ./Release/Sibernetic -f worm -no_g device=GPU 150ms (initialization takes some time)
143-
144-
# Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz, linux 4.4.0-139-generic
145-
# ./Release/Sibernetic -f worm -no_g device=CPU 60ms
146-
#
147-
# after installing the nvidia driver used in host:
148-
## wget http://us.download.nvidia.com/tesla/390.30/nvidia-diag-driver-local-repo-ubuntu1604-390.30_1.0-1_amd64.deb
149-
## sudo dpkg -i nvidia-diag-driver-local-repo-ubuntu1604-390.30_1.0-1_amd64.deb
150-
## sudo apt-key add /var/nvidia-diag-driver-local-repo-390.30/7fa2af80.pub
151-
## sudo apt-get update
152-
## sudo apt-get install -y cuda-drivers
153-
# ./Release/Sibernetic -f worm -no_g device=GPU 37ms
131+
132+
################################################################################
133+
######## Copy master python script
154134

155135
# Not working with --chown=$USER:$USER
156136
COPY ./master_openworm.py $HOME/master_openworm.py

0 commit comments

Comments
 (0)