Skip to content

Commit 2f607d0

Browse files
authored
Merge pull request #360 from openworm/development
Release 0.9.5
2 parents a24bdec + 8809c8c commit 2f607d0

File tree

10 files changed

+93
-72
lines changed

10 files changed

+93
-72
lines changed

.github/workflows/docker-image-intel.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker Image Test Build - Intel drivers
1+
name: Docker Image Build - Intel drivers
22

33
on:
44
push:
@@ -18,7 +18,7 @@ jobs:
1818
- name: Build the Docker image
1919
run: |
2020
chmod a+w output/
21-
ls -alt
21+
ls -alth
2222
./build_intel.sh
2323
2424
- name: Info on Docker images

.github/workflows/docker-image-quickrun.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker Image Test - quick
1+
name: Docker Image Quick Run
22

33
on:
44
push:
@@ -17,7 +17,7 @@ jobs:
1717
- name: Build the Docker image
1818
run: |
1919
chmod a+w output/
20-
ls -alt
20+
ls -alth
2121
./build.sh
2222
- name: Info on Docker images
2323
run: |

.github/workflows/docker-image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker Image Test Build
1+
name: Docker Image Build and Run
22

33
on:
44
push:
@@ -17,7 +17,7 @@ jobs:
1717
- name: Build the Docker image
1818
run: |
1919
chmod a+w output/
20-
ls -alt
20+
ls -alth
2121
./build.sh
2222
- name: Info on Docker images
2323
run: |

.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: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN mkdir -p /etc/sudoers.d && \
2020

2121
ENV DEBIAN_FRONTEND noninteractive # TODO: change
2222

23+
2324
################################################################################
2425
######## Update/install essential libraries
2526

@@ -52,15 +53,15 @@ RUN sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 10
5253
################################################################################
5354
######## Install NEURON simulator
5455

55-
RUN pip3 install neuron==8.0.1
56+
RUN sudo pip3 install neuron==8.1.0
5657

5758

5859
################################################################################
5960
######## Install c302 for building neuronal network models
6061

6162
RUN git clone https://github.com/openworm/c302.git && \
6263
cd c302 && \
63-
git checkout ow-0.9.4 && \
64+
git checkout ow-0.9.5 && \
6465
sudo pip install .
6566

6667
# Note: pyNeuroML installed with the above library
@@ -74,7 +75,7 @@ RUN owm bundle remote --user add ow 'https://raw.githubusercontent.com/openworm/
7475

7576
RUN git clone https://github.com/openworm/sibernetic.git && \
7677
cd sibernetic && \
77-
git checkout ow-0.9.4 # fixed to a specific branch
78+
git checkout ow-0.9.5 # fixed to a specific branch
7879

7980

8081
################################################################################
@@ -117,7 +118,7 @@ RUN cd sibernetic && \
117118
COPY ./master_openworm.py $HOME/master_openworm.py
118119
RUN sudo chown $USER:$USER $HOME/master_openworm.py
119120

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

122123
RUN pip list
123124

Dockerfile_intel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ RUN pip3 install neuron==8.0.1
6161

6262
RUN git clone https://github.com/openworm/c302.git && \
6363
cd c302 && \
64-
git checkout ow-0.9.4 && \
64+
git checkout ow-0.9.5 && \
6565
sudo pip install .
6666

6767
# Note: pyNeuroML installed with the above library
@@ -75,7 +75,7 @@ RUN owm bundle remote --user add ow 'https://raw.githubusercontent.com/openworm/
7575

7676
RUN git clone https://github.com/openworm/sibernetic.git && \
7777
cd sibernetic && \
78-
git checkout ow-0.9.4 # fixed to a specific branch
78+
git checkout ow-0.9.5 # fixed to a specific branch
7979

8080

8181
################################################################################

README.md

Lines changed: 56 additions & 56 deletions
Large diffs are not rendered by default.

VERSION

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

build.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
#!/bin/bash
22

33
version=$(<VERSION) # Read version of Dockerfile from file VERSION
4-
docker build "$@" -t "openworm/openworm:$version" .
4+
5+
# Set the platform flag if we're on ARM
6+
arch=$(uname -m)
7+
if [[ "$arch" == "arm64" || "$arch" == "aarch64" ]]; then
8+
platform_flag="--platform linux/amd64"
9+
else
10+
platform_flag=""
11+
fi
12+
13+
# Build the Docker image
14+
docker build $platform_flag "$@" -t "openworm/openworm:$version" .

rebuild.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
#!/bin/bash
22

33
version=$(<VERSION) # Read version of Dockerfile from file VERSION
4-
docker build "$@" -t "openworm/openworm:$version" --no-cache .
4+
5+
# Set the platform flag if we're on ARM
6+
arch=$(uname -m)
7+
if [[ "$arch" == "arm64" || "$arch" == "aarch64" ]]; then
8+
platform_flag="--platform linux/amd64"
9+
else
10+
platform_flag=""
11+
fi
12+
13+
# Rebuild the Docker image
14+
docker build $platform_flag "$@" -t "openworm/openworm:$version" --no-cache .

0 commit comments

Comments
 (0)