Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix notebook in v2.20.0 #215

Merged
merged 7 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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