eqs / deeplabcut-docker Goto Github PK
View Code? Open in Web Editor NEWDockerfile for DeepLabCut 2.0 (https://github.com/AlexEMG/DeepLabCut)
Dockerfile for DeepLabCut 2.0 (https://github.com/AlexEMG/DeepLabCut)
See a very poor fix, but working fix diff here:
Hardcoding user and group ARGS into the shell commands fixed an issue I was having:
When passing ${user_name}:${group_name}, etc etc, the shell was reading all the args as "0" instead of 1000 etc. This caused the make to fail.
Example 1 of failure when RUN groupadd -g ${group_id} ${group_name}
was parsed as RUN groupadd -g 0 ${group_name}
:
Step 8/27 : ARG group_id=1000
---> Using cache
---> 4e5b9a63b30e
Step 9/27 : RUN groupadd -g ${group_id} ${group_name}
---> Running in 30201b6ab1bb
groupadd: GID '0' already exists
The command '/bin/sh -c groupadd -g ${group_id} ${group_name}' returned a non-zero code: 4
Makefile:11: recipe for target 'docker-build' failed
make: *** [docker-build] Error 4
Example 1 of failure after hardcoding only groupadd, now RUN useradd -u ${user_id} -g ${group_id} -d /home/${user_name} --create-home --shell /bin/bash ${user_name}
was parsed as RUN useradd -u 0 -g ${group_id} -d /home/${user_name} --create-home --shell /bin/bash ${user_name}
:
Step 8/27 : ARG group_id=1000
---> Using cache
---> 4e5b9a63b30e
Step 9/27 : RUN groupadd -g 1000 ubuntu
---> Running in 35d12c8401c4
Removing intermediate container 35d12c8401c4
---> 57185d9d33e8
Step 10/27 : RUN useradd -u ${user_id} -g ${group_id} -d /home/${user_name} --create-home --shell /bin/bash ${user_name}
---> Running in 7d09306b8138
useradd: UID 0 is not unique
The command '/bin/sh -c useradd -u ${user_id} -g ${group_id} -d /home/${user_name} --create-home --shell /bin/bash ${user_name}' returned a non-zero code: 4
Makefile:11: recipe for target 'docker-build' failed
make: *** [docker-build] Error 4
I did perform:
sudo groupadd docker
and
sudo usermod -aG docker $USER
and restarted before making docker-build.
Verification of that step:
rckoepke@rk-DLC1804:~/DeepLabCut-Docker$ groups
rckoepke adm cdrom sudo dip plugdev lpadmin sambashare docker
rckoepke@rk-DLC1804:~/DeepLabCut-Docker$ groups rckoepke
rckoepke : rckoepke adm cdrom sudo dip plugdev lpadmin sambashare docker
rckoepke@rk-DLC1804:~/DeepLabCut-Docker$ id rckoepke
uid=1000(rckoepke) gid=1000(rckoepke) groups=1000(rckoepke),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),126(sambashare),999(docker)
Hello
I am getting error while building the DLC Docker.
Collecting opencv-python-headless (from deeplabcut)
Downloading https://files.pythonhosted.org/packages/58/bf/fe6c0714289cb408db73bd0dc6fa931e85906cb7270f7197078311be1499/opencv-python-headless-4.5.1.48.tar.gz (88.3MB)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-3se7kqbs/opencv-python-headless/setup.py", line 10, in
import skbuild
ModuleNotFoundError: No module named 'skbuild'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-3se7kqbs/opencv-python-headless/
You are using pip version 9.0.3, however version 21.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The command '/bin/sh -c pip install deeplabcut' returned a non-zero code: 1
Makefile:11: recipe for target 'docker-build' failed
make: *** [docker-build] Error 1
Do you have any suggestion how this can be resolved ?
Kind regards
Robert
Hi eqs,
I know you are not directly involved in DLC development, but I found some weird behavior that is described here: DeepLabCut/DeepLabCut#233
Have you experienced such behavior on your machine? I am using your dockerfile.
Cheers,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.