Skip to content

[Docker 2] update deeplabcut-docker package#3291

Merged
MMathisLab merged 8 commits into
jaap/update_dockerfrom
jaap/update_deeplabcut_docker
May 15, 2026
Merged

[Docker 2] update deeplabcut-docker package#3291
MMathisLab merged 8 commits into
jaap/update_dockerfrom
jaap/update_deeplabcut_docker

Conversation

@deruyter92

@deruyter92 deruyter92 commented Apr 21, 2026

Copy link
Copy Markdown
Collaborator

This is Part 2 of updating the Docker setup, only concerning the deeplabcut-docker package. This builds on top of earlier refactors of the dockerfiles, discussed in PR #3290

fixes #3282, #3285

Motivation:
The deeplabcut-docker package hasn't been actively maintained for some time and currently it is not working for the jupyter images on Docker Hub. This PR follows PR #3290 in simplifying the organization of Dockerfiles and naming, replaces vendored shell script with pure python, and modernizes the setup via pyproject.toml.

@deruyter92 deruyter92 marked this pull request as ready for review April 22, 2026 09:38
@deruyter92 deruyter92 requested review from C-Achard April 22, 2026 09:38

@C-Achard C-Achard left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good overall. Some checks could be strengthened (sudo docker check, jupyter validity), but not sure it is worth it given this is meant as a small helper.
I think it's fine to keep the scope tiny.

Also the helper rebuilds a fixed local tag every time. Is that intentional for simplicity, or do we want to avoid repeated rebuilds / potential clashes between concurrent runs?

Let me know what you think is worth addressing, I can approve as-is or we can discuss. Thanks !

Comment thread docker/package/pyproject.toml Outdated
Comment thread docker/package/deeplabcut_docker.py Outdated
Comment thread docker/package/deeplabcut_docker.py Outdated
Comment thread docker/package/deeplabcut_docker.py
Comment thread docker/package/deeplabcut_docker.py

@deruyter92 deruyter92 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks @C-Achard for the elaborate review. Addressed all your comments now.

Comment thread docker/package/deeplabcut_docker.py Outdated
Comment thread docker/package/deeplabcut_docker.py
Comment thread docker/package/deeplabcut_docker.py
Comment thread docker/package/deeplabcut_docker.py Outdated
Comment thread docker/package/pyproject.toml Outdated
@C-Achard C-Achard requested review from AlexEMG and MMathisLab May 11, 2026 13:46
@MMathisLab MMathisLab merged commit 551237b into jaap/update_docker May 15, 2026
3 checks passed
@MMathisLab MMathisLab deleted the jaap/update_deeplabcut_docker branch May 15, 2026 12:02
MMathisLab pushed a commit that referenced this pull request May 19, 2026
* move deeplabcut-docker package to separate subdirectory

* update dockerfile: add single clean dockerfile that replaces the multiple dockerfiles

* docker: replace build script with docker bake buildx hcl file

* add dockerignore file

* docker update README: new dockerfile naming and buildx commands

* Update docker/README.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update docker/Dockerfile

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update dockerfile: fix pretrained weights directory permission

* dockerfile: add healthcheck for jupyter exposed port

* dockerfile: add override jupyter token option + port-expose warning in README.md

* dockerfile: add comment regarding root-user

* [Docker 2] update `deeplabcut-docker` package (#3291)

* update deeplabcut_docker: replace shell script with pure python

* update deeplabcut_docker: modernize setup via pyproject.toml

* update deeplabcut_docker README

* docker: fix default user home directory -> home/{user}

* deeplabcut-docker: update print statement passw->token

* deeplabcut-docker: update pyproject.toml Python range 3.10-3.12

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Cyril Achard <cyril.achard@epfl.ch>
@deruyter92 deruyter92 mentioned this pull request May 21, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

deeplabcut-docker notebook throws permission error Simplify and modernize DeepLabCut Docker images and build pipeline

3 participants