-
Notifications
You must be signed in to change notification settings - Fork 24
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
added openscope docker #208
Open
rcpeene
wants to merge
1
commit into
dandi:main
Choose a base branch
from
rcpeene:openscope_docker
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM ubuntu:22.04 | ||
# base requirements | ||
RUN apt-get update | ||
RUN apt-get install -y coreutils | ||
RUN apt-get install -y libgl1-mesa-glx | ||
RUN apt-get install -y libglib2.0-0 | ||
RUN apt-get install -y python3 python3-pip | ||
RUN apt-get install -y git | ||
|
||
RUN git config --global --add safe.directory /__w/openscope_databook/openscope_databook | ||
|
||
# copy databook setup files | ||
COPY requirements.txt ./openscope_databook/requirements.txt | ||
COPY setup.py ./openscope_databook/setup.py | ||
COPY README.md ./openscope_databook/README.md | ||
COPY LICENSE.txt ./openscope_databook/LICENSE.txt | ||
COPY databook_utils ./openscope_databook/databook_utils | ||
|
||
# for reasons I don't understand, these must be installed before the rest the requirements | ||
RUN pip install numpy cython | ||
# set up databook dependencies | ||
RUN pip install -e ./openscope_databook[dev] | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
providing this suggestion as something that could simplify this. i'm not sure those root installs are necessary, but perhaps worth building and trying out this image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @satra @rcpeene. This work for me for the most part. There is just a dependency conflict with the
openscope_databook
requirements.Error message
@rcpeene Could we unpin suite2p from
0.12.1
, which itself pinstorch==1.13.1
? The latest version of suite2p0.14.4
usestorch>=1.13.1
.I was going to submit a pull request to the
openscope_databook
repo with the above suggestion but there were some other issues installing the requirements, so I couldn't fully test this change.Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The one issue is with
git clone
ing the repo that @satra included to retrieve the necessary files for the environment. Firstly, this interferes with The Databooks ability to copy over a particular branch's notebooks when launching the databook, and with using the docker to run our test suite on a particular branch within Github workflows.I can test the rest of these changes and update PR if works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rcpeene - we can encode a specific committish
&& git checkout <committish> \
right after the clone statement.
i would actually highly recommend that. this way you preserve the exact state of the repo that's used to generate the docker image, and updating the committish would retrigger the docker build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, is there a way to pull the container from a registry rather then maintain it in the repo? If I make changes to the container used for my other platforms, this one may have to be manually updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can. it's just that we want to make sure we can trust it (as the tools in the container have access to the user's environment - could contain secrets, keys, etc.,.).
also that it has to work in a jupyterhub environment.
as long as we have a good way of determining that we can simply point to a container from a different registry.