Skip to content

Docker#550

Merged
neworderofjamie merged 33 commits intomasterfrom
docker_stevinson
Oct 27, 2022
Merged

Docker#550
neworderofjamie merged 33 commits intomasterfrom
docker_stevinson

Conversation

@neworderofjamie
Copy link
Contributor

@neworderofjamie neworderofjamie commented Oct 24, 2022

Docker

Notebook

A jupyter notebook can be launched with the notebook command:

docker run -p 8080:8080 --gpus=all genn:latest notebook

Script

PyGeNN scripts can be run with the script command:

docker run  --gpus=all -v .:/home genn:latest script /home/test.py

Shell

If no command is specified, a bash shell will be launched. Alternatively another executable could be specified:

docker run -it --gpus=all genn:latest /bin/bash

This shell can be used for interacting with both PyGeNN and C++ GeNN models.

User permissions

The GeNN docker creates an unprivileged user but, this user can be configured to have the same UID and GID as your local user, meaning that files they create will have correct permissions etc by passing through LOCAL_USER_ID and LOCAL_GROUP_ID environment variables:

docker run -it --gpus=all -e LOCAL_USER_ID=`id -u $USER` -e LOCAL_GROUP_ID=`id -g $USER` genn:latest /bin/bash

Closes #546

edward-cf and others added 3 commits October 20, 2022 16:01
Run GeNN models from a docker image that launches a jupyter notebook
Thank you again for your hard work on this @Stevinson - am merging this into an internal development branch so we can experiment with a few more things - hopefully our impending 4.8.0 release will come with a docker image though!
@codecov
Copy link

codecov bot commented Oct 26, 2022

Codecov Report

Base: 88.85% // Head: 88.85% // No change to project coverage 👍

Coverage data is based on head (0dc3d72) compared to base (64709ce).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #550   +/-   ##
=======================================
  Coverage   88.85%   88.85%           
=======================================
  Files          76       76           
  Lines       12319    12319           
=======================================
  Hits        10946    10946           
  Misses       1373     1373           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@jamesturner246 jamesturner246 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All requested changes (via Skype) done. Looks good to go.

@neworderofjamie neworderofjamie merged commit 459c220 into master Oct 27, 2022
@neworderofjamie neworderofjamie deleted the docker_stevinson branch October 27, 2022 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker install of GeNN

4 participants