Skip to content

Commit 36a80c3

Browse files
committed
Merge branch 'master' into experimental
2 parents b6ffffe + 8ba0712 commit 36a80c3

File tree

8 files changed

+31
-32
lines changed

8 files changed

+31
-32
lines changed

.github/workflows/docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker Image Build & Run
1+
name: Docker Image Build and Run
22

33
on:
44
push:

.github/workflows/docker-pull.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
build:
1212

13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414

1515
steps:
1616
- uses: actions/checkout@v4

Dockerfile

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:22.04
1+
FROM ubuntu:24.04
22

33
LABEL maintainer="David Lung ([email protected]); Padraig Gleeson ([email protected])"
44

@@ -18,80 +18,79 @@ RUN mkdir -p /etc/sudoers.d && \
1818
chmod 0440 /etc/sudoers.d/$USER && \
1919
chown ${uid}:${gid} -R /home/$USER
2020

21-
ENV DEBIAN_FRONTEND noninteractive # TODO: change
21+
ENV DEBIAN_FRONTEND=noninteractive
2222

2323

2424
################################################################################
2525
######## Update/install essential libraries
2626

27-
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils \
27+
RUN apt-get update
28+
RUN apt-get install -y --no-install-recommends apt-utils \
2829
wget nano htop build-essential make git automake autoconf \
29-
g++ rpm libtool libncurses5-dev zlib1g-dev bison flex lsb-core \
30+
g++ rpm libtool libncurses5-dev zlib1g-dev bison flex \
3031
sudo xorg openbox x11-xserver-utils \
31-
libxext-dev libncurses-dev python3-dev mercurial \
32-
freeglut3-dev libglu1-mesa-dev libglew-dev python3-dev python3-pip python3-lxml python3-scipy python3-tk \
32+
libxext-dev libncurses-dev mercurial \
33+
freeglut3-dev libglu1-mesa-dev libglew-dev python3-dev python3-pip \
3334
kmod dkms linux-source linux-headers-generic \
3435
maven openjdk-8-jdk \
35-
python3-setuptools python3-yaml libnuma1 \
36+
libnuma1 \
3637
openmpi-bin libopenmpi-dev \
37-
libgl1-mesa-glx libgl1-mesa-dri libfreetype6-dev \
38-
libxft-dev python3-matplotlib unzip ffmpeg xvfb tmux
38+
libgl1 libglx-mesa0 libgl1-mesa-dri libfreetype6-dev \
39+
libxft-dev unzip ffmpeg xvfb tmux
3940

4041
#RUN sudo pip install --upgrade pip
4142

4243
RUN sudo usermod -a -G video $USER
4344

4445
#USER $USER
45-
ENV HOME /home/$USER
46+
ENV HOME=/home/$USER
4647
WORKDIR $HOME
4748

48-
#### TODO: check that this is the best way to switch to py3...
49-
RUN sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
50-
RUN sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 10
5149

5250

5351
################################################################################
5452
######## Install NEURON simulator
5553

56-
RUN sudo pip3 install neuron==8.1.0
54+
RUN sudo pip install neuron==8.2.6 --break-system-packages
5755

5856

5957
################################################################################
6058
######## Install c302 for building neuronal network models
6159

6260
RUN git clone https://github.com/openworm/c302.git && \
6361
cd c302 && \
64-
git checkout ow-0.9.5 && \
65-
sudo pip install .
62+
git checkout ow-0.9.6 && \
63+
sudo pip install . --break-system-packages
6664

6765
# Note: pyNeuroML installed with the above library
6866

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

7268

7369
################################################################################
7470
######## Install Sibernetic for the worm body model
7571

7672
RUN git clone https://github.com/openworm/sibernetic.git && \
7773
cd sibernetic && \
78-
git checkout ow-0.9.5 # fixed to a specific branch
74+
git checkout ow-0.9.6 # fixed to a specific branch
7975

8076

8177
################################################################################
8278
######## Set some paths//environment variables
8379

8480
ENV C302_HOME=$HOME/c302/c302
8581
ENV SIBERNETIC_HOME=$HOME/sibernetic
86-
ENV PYTHONPATH=$PYTHONPATH:$HOME/c302:$SIBERNETIC_HOME
82+
ENV PYTHONPATH=$HOME/c302:$SIBERNETIC_HOME
83+
84+
ENV NEURON_MODULE_OPTIONS=-nogui
8785

8886

8987
################################################################################
9088
######## Install AMD's OpenCL Drivers (AMD-APP-SDK 3.0)
9189

92-
RUN wget https://master.dl.sourceforge.net/project/nicehashsgminerv5viptools/APP%20SDK%20A%20Complete%20Development%20Platform/AMD%20APP%20SDK%203.0%20for%2064-bit%20Linux/AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2
93-
RUN tar -xf AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2
94-
RUN printf 'Y\n\n' | sudo ./AMD-APP-SDK-v3.0.130.136-GA-linux64.sh
90+
RUN wget https://master.dl.sourceforge.net/project/nicehashsgminerv5viptools/APP%20SDK%20A%20Complete%20Development%20Platform/AMD%20APP%20SDK%203.0%20for%2064-bit%20Linux/AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2 && \
91+
tar -xf AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2 && \
92+
printf 'Y\n\n' | sudo ./AMD-APP-SDK-v3.0.130.136-GA-linux64.sh && \
93+
rm AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2
9594

9695
RUN sudo ln -s /opt/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so.1 /usr/lib/libOpenCL.so.1
9796
RUN sudo ln -s /opt/AMDAPPSDK-3.0/lib/x86_64/sdk/libamdocl64.so /usr/lib/libamdocl64.so
@@ -118,7 +117,7 @@ RUN cd sibernetic && \
118117
COPY ./master_openworm.py $HOME/master_openworm.py
119118
RUN sudo chown $USER:$USER $HOME/master_openworm.py
120119

121-
RUN echo '\n\nalias cd..="cd .."\nalias h=history\nalias ll="ls -alt"' >> ~/.bashrc
120+
RUN printf '\n\nalias cd..="cd .."\nalias h=history\nalias ll="ls -alt"\n' >> ~/.bashrc
122121

123122
RUN pip list
124123

Dockerfile_intel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ RUN sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 10
5353
################################################################################
5454
######## Install NEURON simulator
5555

56-
RUN pip3 install neuron==8.0.1
56+
RUN pip3 install neuron==8.2.6
5757

5858

5959
################################################################################

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,6 @@ You'll be able to interact with the container as before.
110110

111111
## Documentation
112112

113-
To find out more about OpenWorm, please see the documentation at [http://docs.openworm.org](http://docs.openworm.org) or [join us on Slack](http://bit.ly/OpenWormVolunteer).
113+
To find out more about OpenWorm, please see the documentation at [http://docs.openworm.org](http://docs.openworm.org) or [get in contact](https://openworm.org/contacts.html).
114114

115115
This repository also contains project-wide tracking via high-level [issues](https://github.com/openworm/OpenWorm/issues) and [milestones](https://github.com/openworm/OpenWorm/milestones).

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.9.5
1+
0.9.6

master_openworm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import math
1313

1414
print("*****************************")
15-
print("OpenWorm Master Script v0.9.3")
15+
print("OpenWorm Master Script")
1616
print("*****************************")
1717
print("")
1818
print("This script attempts to run a full pass through the OpenWorm scientific libraries.")
@@ -152,7 +152,7 @@ def execute_with_realtime_output(command, directory, env=None):
152152
os.system('echo Starting xvfb && Xvfb %s -listen tcp -ac -screen 0 1920x1080x24+32 &'%DISPLAY) # TODO: terminate xvfb after recording
153153

154154
try:
155-
command = """python sibernetic_c302.py
155+
command = """python3 sibernetic_c302.py
156156
-duration %s
157157
-dt %s
158158
-dtNrn %s

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ $DURATION_PART \
3636
--privileged \
3737
-v $HOST_OUT_DIR:$OW_OUT_DIR:rw \
3838
openworm/openworm:$version \
39-
bash -c "DISPLAY=:44 python master_openworm.py"
39+
bash -c "DISPLAY=:44 python3 master_openworm.py"
4040

4141
docker logs -f openworm_$version

0 commit comments

Comments
 (0)