-
Notifications
You must be signed in to change notification settings - Fork 65
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
Challenges with DAPHNE container images from DockerHub #530
Comments
@corepointer: Could you update the container images on DockerHub as follows, please?
I hope that doesn't cause any inconvenience. After that, I could also try to fix the remaining issues, but it's surely a good idea to coordinate on this, because the containers are used in multiple places, and you are the expert there :) . |
Thx for testing and reporting @pdamme! Just a moment too early - I've not gotten around to pushing the latest developments in containers yet. Otherwise many of the found issues would have not happened. Git, pandas, Eigen3 will all be there (the latter two are only in the github-actions image atm), as will be the documentation to use the images. |
Thanks for the quick response! Sounds very good, I'm looking forward to these updates and will try it again once they are available. Do you think you could make it within the next few days? (Just so that our students can get started more easily.) |
Yes, it'll be ready soon© I'll notify you. |
Thanks a lot! In the meantime, instructions for a temporary solution with DAPHNE in docker containers can be found in a branch: https://github.com/daphne-eu/daphne/tree/containers-tmp/containers-tmp . This is a reduced variant of the scripts in your PR #534. So take your time to finish your work on the containers :) . |
We have made quite some progress with the DAPHNE containers recently to make DAPHNE run on various platforms (thanks to @corepointer). I know that the support is not yet meant to be 100% user-friendly, and that there are certain difficulties with different flavors of DAPHNE (e.g., with/without CUDA etc.).
I have tried using the DAPHNE container images available on DockerHub to obtain an environment for building and running DAPHNE. I followed the documentation in
doc/GettingStarted.md
andcontainers/Readme.md
as far as possible. Unfortunately, the container images on DockerHub are currently not usable out of the box. We should fix this, since these container images can simplify the life of users and developers significantly (and we are currently getting several new users/developers, TU Berlin students).tl;dr Required action points
daphne-dev
: needs at least pandas and Eigen3.daphne-dev-interactive
: needs at least git, pandas, and Eigen3.Here are a few more details:
Problem 1:
containers/run-docker-example.sh
(the script for running the containers) doesn't work out of the box. I know it's meant to be customized by users, but this is too difficult for a new user/developer. We should provide a working variant for the common case.Details:
daphne-dev
by./containers/run-docker-example.sh
, but that yielded the following error:"$DEVICE_FLAGS"
in thedocker run
command../containers/run-docker-example.sh
succeeded, but the command immediately finished. As a user, I would have expected to be in the container. I fixed this by adding-it
to thedocker run
command (but that may not be desired in all cases)../containers/run-docker-example.sh
I ended up in the container. However, the outputProblem 2: The container image
daphne-dev
doesn't work out of the box; at least we need to rebuild it with Eigen3 and pandas.Details:
./build.sh --no-deps --installPrefix /usr/local
as specified in the docs. That failed due to missing Eigen3:./build.sh --cleanAll
../build.sh
, which finished successfully (well, actually it failed initially since the URL we downloaded Arrow 11.0 from has become invalid, but I have already fixed this in cb3071c)bin/daphne scripts/examples/hello-world.daph
../test.sh
failed, because pandas is missing in the container (probably we need a rebuild/repush of the container image for that as well).sudo
is missing. But okay, for such purposes we have thedaphne-dev-interactive
container...Problem 3: The container image
daphne-dev-interactive
doesn't work out of the box; at least we need to rebuild it with Eigen3, pandas, and git.Details:
./build.sh --no-deps --installPrefix /usr/local
worked, but I assume this was only because the build artifacts were still around../build.sh
, which failed with./build.sh: line 820: git: command not found
. Same for./test.sh
.bin/daphne scripts/examples/hello-world.daph
../build.sh --cleanAll
started doing something, then it also failed due to missing git../build.sh --no-deps --installPrefix /usr/local
failed due to missing Eigen3.apt install git
, but the user doesn't have the permissions. I triedsudo apt install git
(this container has sudo), but it failed withsudo: you do not exist in the passwd database
, probably due to problems with the user identity.I have also tried building the containers locally, but also found it not to work out of the box...
The text was updated successfully, but these errors were encountered: