1
- FROM ubuntu:22 .04
1
+ FROM ubuntu:24 .04
2
2
3
3
LABEL maintainer=
"David Lung ([email protected] ); Padraig Gleeson ([email protected] )"
4
4
@@ -18,80 +18,79 @@ RUN mkdir -p /etc/sudoers.d && \
18
18
chmod 0440 /etc/sudoers.d/$USER && \
19
19
chown ${uid}:${gid} -R /home/$USER
20
20
21
- ENV DEBIAN_FRONTEND noninteractive # TODO: change
21
+ ENV DEBIAN_FRONTEND= noninteractive
22
22
23
23
24
24
# ###############################################################################
25
25
# ####### Update/install essential libraries
26
26
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 \
28
29
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 \
30
31
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 \
33
34
kmod dkms linux-source linux-headers-generic \
34
35
maven openjdk-8-jdk \
35
- python3-setuptools python3-yaml libnuma1 \
36
+ libnuma1 \
36
37
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
39
40
40
41
# RUN sudo pip install --upgrade pip
41
42
42
43
RUN sudo usermod -a -G video $USER
43
44
44
45
# USER $USER
45
- ENV HOME /home/$USER
46
+ ENV HOME= /home/$USER
46
47
WORKDIR $HOME
47
48
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
51
49
52
50
53
51
# ###############################################################################
54
52
# ####### Install NEURON simulator
55
53
56
- RUN sudo pip3 install neuron==8.1.0
54
+ RUN sudo pip install neuron==8.2.6 --break-system-packages
57
55
58
56
59
57
# ###############################################################################
60
58
# ####### Install c302 for building neuronal network models
61
59
62
60
RUN git clone https://github.com/openworm/c302.git && \
63
61
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
66
64
67
65
# Note: pyNeuroML installed with the above library
68
66
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'
71
67
72
68
73
69
# ###############################################################################
74
70
# ####### Install Sibernetic for the worm body model
75
71
76
72
RUN git clone https://github.com/openworm/sibernetic.git && \
77
73
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
79
75
80
76
81
77
# ###############################################################################
82
78
# ####### Set some paths//environment variables
83
79
84
80
ENV C302_HOME=$HOME/c302/c302
85
81
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
87
85
88
86
89
87
# ###############################################################################
90
88
# ####### Install AMD's OpenCL Drivers (AMD-APP-SDK 3.0)
91
89
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
95
94
96
95
RUN sudo ln -s /opt/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so.1 /usr/lib/libOpenCL.so.1
97
96
RUN sudo ln -s /opt/AMDAPPSDK-3.0/lib/x86_64/sdk/libamdocl64.so /usr/lib/libamdocl64.so
0 commit comments