Skip to content

Commit

Permalink
Fix notebook in v2,20.0 (#215)
Browse files Browse the repository at this point in the history
* Merge build and deploy to fix deploy problems

* Rework nest build (no boost, music)

* Update workflow and activate in CI build

* Clean code

* fix notebook

* Deactivate lab
  • Loading branch information
steffengraber authored Mar 6, 2024
1 parent 12d6eeb commit 2ca6308
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions ci-templates/003_2.20.2.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Build_2202:
stage: build
needs: ["Build_Base"]
# needs: ["Build_Base"]
rules:
- when: always
script:
Expand All @@ -14,9 +14,7 @@ Build_2202:
- docker build
--cache-from nest/nest-simulator:2.20.2
--tag nest/nest-simulator:2.20.2
./src/2.20.2
# Test
- docker run -i --rm nest/nest-simulator:2.20.2 bash /opt/test-nest.sh
./src/
# Deploy
- echo -n $DOCKERHUB_REGISTRY_TOKEN | docker login -u $DOCKERHUB_REGISTRY_USER --password-stdin
- docker push nest/nest-simulator:2.20.2
Expand Down
8 changes: 4 additions & 4 deletions src/2.20.2/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ if [[ "${MODE}" = 'interactive' ]]; then
mkdir -p /opt/data; cd /opt/data
exec python3 /opt/data/$name

elif [[ "${MODE}" = 'jupyterlab' ]]; then
mkdir -p /opt/data; cd /opt/data
exec /root/.local/bin/jupyter-lab --ip="${IP_ADDRESS}" --port=8080 --no-browser --allow-root
# elif [[ "${MODE}" = 'jupyterlab' ]]; then
# mkdir -p /opt/data; cd /opt/data
# exec /root/.local/bin/jupyter lab --ip="${IP_ADDRESS}" --port=8080 --no-browser --allow-root

elif [[ "${MODE}" = 'notebook' ]]; then
mkdir -p /opt/data; cd /opt/data
exec /root/.local/bin/jupyter-notebook --ip="${IP_ADDRESS}" --port=8080 --no-browser --allow-root
exec /root/.local/bin/jupyter notebook --ip="${IP_ADDRESS}" --port=8080 --no-browser --allow-root

else
exec "$@"
Expand Down

0 comments on commit 2ca6308

Please sign in to comment.