Skip to content
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

Installation guide for other popular docker PAAS platforms such as GCE #1

Closed
jefferyyuan opened this issue May 30, 2014 · 15 comments
Closed

Comments

@jefferyyuan
Copy link

I am new to dcoker, but very interested to run the open-ocr.

There are several docker PAAS platforms but I prefer to use GCE, as it gives $500 credit which basically allows us to run GCE for one year.

I found openocr at index.docker.io, but after I run "docker pull tleyden5iwx/open-ocr"
I had no idea how to run it.

Could you kindly provide us a detailed guide how to run open-ocr in GCE?

Thanks a lot.

@tleyden
Copy link
Owner

tleyden commented May 30, 2014

I've only played w/ Orchard and Tutum so far, so I don't know how to run it on GCE yet. At some point I'd like to provide instructions for all of the major docker PAAS platforms, so this is definitely interesting to get this working on GCE.

One of the pre-requisites of open-ocr is this docker image:

https://index.docker.io/u/tutum/rabbitmq/

Any chance you can ask the GCE support for instructions on how to run that image and then post it here? From that it should be easy to figure out how to run open-ocr. (disclaimer: I haven't looked at the GCE docs at all yet).

@tleyden
Copy link
Owner

tleyden commented May 31, 2014

@jefferyyuan looking at the GCE docs:

Once the instance is running, you can SSH into the instance and use the Docker command line tool to create and manage your containers.

As a first step, try this SSH'ing into your GCE instance per the instructions above, then running:

$ docker run -d -p 5672:5672 -p 15672:15672 tutum/rabbitmq

after that, run

$ docker ps

to find the container id, and then run

$ docker logs <container_id>

Does that work?

@alexleone
Copy link

tleyden you mentioned that you have ran the open-ocr on tutum. Do you have the steps that is need to make a new open-ocr docker image and push the docker to tutum?

@alexleone
Copy link

Also can open-ocr be ran on your local mac machine, or through some VM ?

@tleyden
Copy link
Owner

tleyden commented Jun 12, 2014

Do you have the steps that is need to make a new open-ocr docker image and push the docker to tutum?

Yes, I've gotten it to run on Tutum. I just need to write up some docs. Will do that soon.

Also can open-ocr be ran on your local mac machine, or through some VM ?

Actually I haven't tried that yet, but it will work. If you take a look at the very simple launcher.sh script you can see it just calls docker. So if you have docker locally, or in a VM, you should be able to run it.

Are you trying to run on OSX? If so, this might be useful for getting docker installed. http://tleyden.github.io/blog/2013/11/12/docker-on-osx/

@tleyden
Copy link
Owner

tleyden commented Jun 12, 2014

@alexleone also I should mention that @borjaburgos from Tutum managed to get open-ocr working on Tutum. So until I write up some docs, you can file a support ticket to Tutum and they can probably help you.

@tleyden
Copy link
Owner

tleyden commented Jun 14, 2014

@alexleone any luck getting up and running on Tutum? I attempted this and wrote some docs, but ran into an issue and have filed a support ticket.

@tleyden
Copy link
Owner

tleyden commented Jun 14, 2014

Yes, I've gotten it to run on Tutum. I just need to write up some docs. Will do that soon.

By the way, I should have qualified that as "I've gotten the worker running on Tutum" -- up until recently I hadn't tried running the http server, and that's where I ran into issues.

@tleyden
Copy link
Owner

tleyden commented Jun 14, 2014

@jefferyyuan I just got the http server and worker running on GCE! Instructions coming soon..

@alexleone
Copy link

@tleyden I am still trying for tutum if i succeed, i will most defiantly share instructions

@tleyden
Copy link
Owner

tleyden commented Jun 17, 2014

@alexleone awesome, keep me posted. In the next few days I"ll post an update

@tleyden tleyden closed this as completed Jun 17, 2014
@tleyden tleyden reopened this Jun 17, 2014
@tleyden
Copy link
Owner

tleyden commented Jun 17, 2014

@alexleone see issue #6 for details of the problem I ran into running the http server component on Tutum

@tleyden
Copy link
Owner

tleyden commented Jun 21, 2014

@jefferyyuan I just added instructions on running it on GCE: https://github.com/tleyden/open-ocr/wiki/Installation-on-Google-Compute-Engine---CloudAMQP -- and those instructions are fully verified.

The only caveat is that the RabbitMQ is running on a separate cloud service rather than on GCE. I'll loop back around to that at some point, and get the whole thing running on GCE.

@tleyden tleyden closed this as completed Jun 21, 2014
@tleyden
Copy link
Owner

tleyden commented Jun 21, 2014

Also can open-ocr be ran on your local mac machine, or through some VM ?

Yeah, I updated the README to have instructions for running directly on Ubuntu 14.04 (if you are on OSX you'll first need to create an Ubuntu VM via Vagrant or VirtualBox)

@tleyden
Copy link
Owner

tleyden commented Jun 21, 2014

@jefferyyuan

The only caveat is that the RabbitMQ is running on a separate cloud service rather than on GCE. I'll loop back around to that at some point, and get the whole thing running on GCE

I take that back. I just updated the instructions so that all components are running on GCE. Also, I added alternative instructions on how to run RabbitMQ on CloudAMQP since it does offer a few advantages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants