Skip to content

Commit f44774e

Browse files
committed
Updates to Jupyterlab: uses osbv2 netpyne branch & add scripts
1 parent 3d54f1c commit f44774e

File tree

6 files changed

+48
-5
lines changed

6 files changed

+48
-5
lines changed

.github/workflows/docker-jupyterlab.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker Image Build Jupyterlab
1+
name: Docker Image Build JupyterLab
22

33
on:
44
push:
@@ -13,17 +13,18 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717

1818
- name: Build the Docker image
1919
run: |
2020
cd applications/jupyterlab
21-
docker build -t myjlab -f Dockerfile --no-cache .
21+
./build_local.sh
2222
2323
- name: Info on Docker image sizes
2424
run: |
2525
docker images
2626
2727
- name: Run the Docker container and list python installs
2828
run: |
29-
docker run -t --rm --entrypoint /bin/bash myjlab -c "pip3 list"
29+
cd applications/jupyterlab
30+
./pip_omv_info.sh
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
set -ex
3+
4+
# Set the platform flag if we're on ARM
5+
arch=$(uname -m)
6+
if [[ "$arch" == "arm64" || "$arch" == "aarch64" ]]; then
7+
platform_flag="--platform linux/amd64"
8+
else
9+
platform_flag=""
10+
fi
11+
12+
time DOCKER_BUILDKIT=1 docker build $platform_flag -t myjlab -f Dockerfile .
13+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# A script to print info versions of packages in the JupyterLab container
5+
6+
docker run -t --rm --entrypoint /bin/bash myjlab -c "pip3 list"
7+
echo "--------------------------------------------------------"
8+
docker run -t --rm --entrypoint /bin/bash myjlab -c "omv list -V"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
set -ex
3+
4+
# Set the platform flag if we're on ARM
5+
arch=$(uname -m)
6+
if [[ "$arch" == "arm64" || "$arch" == "aarch64" ]]; then
7+
platform_flag="--platform linux/amd64"
8+
else
9+
platform_flag=""
10+
fi
11+
12+
time DOCKER_BUILDKIT=1 docker build $platform_flag -t myjlab -f Dockerfile --no-cache .
13+

applications/jupyterlab/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ neurotune
66
neuron
77

88
# Install specific version of NetPyNE
9-
git+https://github.com/Neurosim-lab/netpyne.git@osbv2#egg=netpyne
9+
git+https://github.com/Neurosim-lab/netpyne.git@osbv2-dev#egg=netpyne
1010

1111
#### Other simulators
1212

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# A script to run the JupyterLab container locally (build it first with ./build_local.sh)
5+
6+
docker run --network host -it --rm --name myjupyterlab myjlab
7+
8+

0 commit comments

Comments
 (0)