CSAILVision / LabelMeAnnotationTool

Source code for the LabelMe annotation tool.
MIT License
1.38k stars 436 forks source link

Provide a Dockerfile for Easy Deployment #17

Open cancan101 opened 8 years ago

quantombone commented 8 years ago

I have been trying to do this for a while, but I cannot get the apache configuration to work. If somebody who has set up LabelMe on Ubuntu many times before wants to re-install LabelMe on a fresh Ubuntu install and report the steps they followed, I'll turn those commands into a slick LabelMe Dockerfile for everybody to use. But at the moment I don't have the time to look into the apache configuration settings, I'm an nginx guy myself.

sirotenko commented 8 years ago

@quantombone I just got through this painful process and it finally works on clean Ubuntu 14.04 VirtualBox image. Would be glad to help you build the Dockerfile.

brussell123 commented 8 years ago

This is great, thanks! I'd be happy to incorporate the Dockerfile into the codebase.

quantombone commented 8 years ago

Hi @sirotenko, Something equivalent to the contents of your bash_history file (basically the steps you took from a fresh Ubuntu 14.04) is pretty much what goes inside the Dockerfile. I can make an automated Docker Hub build and it should be pretty easy to get people to run labelme with a single command like:

docker run -d computervision/labelme

And yes, the Dockerfile can go directly inside the LabelMe directory, so the entire build process is transparent.

sirotenko commented 8 years ago

Ok, @quantombone. I was installing it on fresh Ubuntu 15.04, but that was not the only I installed there, so I cut a lot of lines from the history and put it here: https://gist.github.com/sirotenko/47a66ed7501968937cae Apache2 config file is also there. Let me know if you that steps and it doesn't work.

dimatura commented 8 years ago

Hi all, I have managed to get things running in 14.04, but my confidence in the correctness of the apache config is low. @sirotenko, I can't see the gist; did you remove it? It'd be interesting to compare.

sirotenko commented 8 years ago

@dimatura , the link is corrected. Thanks for pointing out.

llmpass commented 8 years ago

Has anyone ever worked on setting httpd.conf on Mac? It's driving me mad, I have no idea on turning on authconfig. I tried set "AllowOverride AuthConfig", but it does not work. By 'does not work', I mean I got 500 Internal Server Error.

nmingazov commented 7 years ago

If anyone interested he could try to use my own docker image on https://hub.docker.com/r/nmingazov/labelme/ . I would be glad if anyone will provide feedback about that environment.

cancan101 commented 7 years ago

@nmingazov are you able to share the Dockerfile used to make the image?

nmingazov commented 7 years ago

@cancan101 unfortunately I didn't use Dockerfile to make this image, commiting changes instead. Don't really know if I should produce one because in my version there are still few incorrect behaviors (saving scribbles and downloading all, for example).

timkock commented 7 years ago

@all referenced a pull request above that makes this usable without having to reconfigure your system with apache2 or any modules. Gotta love Docker.

thelittlekid commented 7 years ago

Can somebody do me a favor and explain a little bit on how to use this dockerfile to help deployment? I'm also wondering how to complete the following two steps on Linux Ubuntu to meet the web server requirements:

Abhijit-2592 commented 6 years ago

Check this #78 . Use this docker file to build on Ubuntu 16.04