-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add dockerfile setup #30
Conversation
Nice work! Getting an error when running exactly what was in the readme, not sure if I need to be in setup as my pwd or a path inside the dockerfile needs to be more specific.
I'm building it with my pwd being setup now though and it seems to be going okay. I'll let you know if I run into any other problems. I had to use sudo to build it but I think I may have just installed docker incorrectly a while ago. |
Got this error at the end:
|
Ahh, both of these are my bad. I should add to the README that it has to be run from the For the second one, there is an additional flag to the
|
Ahh, thanks! I had a hunch it was something like that but figured it was better to ask you than spend time trying to debug if it was something obvious. I'll retry the process again this evening. |
It built successfully but I'm still having a little trouble switching over to using docker for my entire workflow. A couple questions:
I can work on figuring these out on my own if you don't immediately know the answer though. I just figured maybe you might! The PR seems good to go though if you want to merge! |
Good questions! I think I can answer two of them. For context, I actually just work inside the docker container itself. So I do something like
RE your questions... (1) could be solved by using that workflow, but alternatively I think we could just add a (2) I'm a little unsure of this one, but I think with the current setup the only way to do it would be to use the workflow described above and connect PyCharm to the container via some protocol (which I'm not sure PyCharm exposes, but would assume it does). Then hopefully you could simply load the repository that is present in the container. Alternatively, though (and I think this is the common way to do it), you could mount your code as a (3) I think this is one where you'd have to mount it as a I'm going to touch up the README a tad to try to clarify instructions and then merge this. Happy to change around this workflow in the future! I don't actually know the most common workflow when using docker containers for development (or deployment for that matter), so this may very well not be the best way to do this. |
I also have a change to the run_entire_process.py file to make the experience a bit better when using a docker container. (changing the polygon preview to print out a link instead of attempting to open a window, which doesn't work inside a docker container) Would you prefer I add it to this PR or just push to master? |
Also, followup issue: I realized that I had built the cpu version of the image so I was going to rebuild as the gpu version to see how the performance was, but it seems to just be hanging with no output when I attempt it
Does this combination of flags not do what I think it does? Or do I need to maybe delete the existing images if I'm using the gpu image? Thanks and sorry for having so much trouble with it! |
I agree! I didn't know the pycharm requires professional edition to attach to a container - that's too bad 😿 . I think mounting the code might be as simple as adding something like
I'm good with you just pushing it to master! RE the |
Sounds good! No worries about the gpu-build, I was just trying to help test everything out as a naive docker user :) Your plan sounds good! And no rush on the merge or anything, I have a solid workflow for the time being. |
Oh, actually using the |
Whoops just accidentally pushed to your branch, I'll back out my changes. (But I guess I'll just leave my docker related changes in if they're already there) |
c9de61c
to
36aff2c
Compare
3a98ce4
to
e6b7204
Compare
I've added an I've updated the main README, too, to make a distinction between the GPU and no GPU builds, as well as specifying that the |
I think this is good to merge, so I'm going to go ahead and do so 👍 |
Thanks again for getting this all set up! |
This PR adds two dockerfiles (a base dockerfile and an additional one where the conda environment is installed), along with a script that can be used to have the dockerfiles assembled (there a couple of useful flags that can be used during assembly). I've updated the main README to incorporate these changes, although I'd like to update it a bit more before merging.
I'm not sure if this is exactly what we had in mind with #18, so I'm open to using this as a starting point and discussing it further to see if we want to change this up. This is just pretty close to the setup I use in my personal repository, so I figured I'd adjust it for this repo and we could use it as a starting point. Depending on how this develops, we eventually might want to move to something a bit more intricate, maybe a services based approach (e.g. where one container handles the DB, one handles inference, etc.) But, I don't think we're there yet (nor do I have much experience with stitching multiple Docker containers together).