-
-
Notifications
You must be signed in to change notification settings - Fork 43
Add Docker in installation methods #187
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
Comments
Good idea! We could either upload a docker image for each of our releases alongside the mac/windows/linux executables: or just provide a link to quay,io (are those public links?) in the README. cc #178 |
Having it available in the Docker Hub would be great. I saw the somewhat convoluted possible install options in the README and at first thought those were the only options. Then I noticed there's a Dockerfile in the deployment folder in this repo, but even then since it's not documented figured it wouldn't be good to rely on it. |
Good point by @antoinerg in #190
where I'd say we should add another Dockerfile! |
@austinbutler Is there something special about Docker Hub or would any other Docker registries fit your needs? We were thinking of using quay.io instead. You can pull from it the same way you pull from Docker Hub. |
Quay would be fine, too. But in terms of visibility Docker Hub is just where I default to when looking for images. |
Ok, I'll make a new one. Can we start it from the most recent LTS version of Ubuntu (which is newer than the current https://github.com/plotly/orca/blob/master/deployment/Dockerfile)? If so, I could reuse the ones I made many when I worked on delivering reproducible OpenGL |
yes please.
sure. |
I would love to see Docker images to run this! I have a question, @antoinerg I am not sure if I am in the right place, but as an user I would love to use full I guess that for most users, like me, would expect to have a way do install all I think if I have been trying to do so for some time (many hours spent), but no luck. And while searching to see if someone has done a image, I could find many people trying to do that and failing too. A list of some links that I've saved: From plotly community: From stackoverflow: From a russian guy: R plotly orca An interesting image that I found is this for the R stuff (I am not R user so is not clear to me what that image does). |
Are there already some documents that could help build a docker image than runs python plotly and orca? |
I just became aware of this issue. 👋 https://quay.io/repository/plotly/image-exporter?tab=info is a public Quay repo that holds Orca images for every successful CircleCI We should probably rename the repo to avoid confusion (this project wasn't always called "orca"), but other than that is there anything else needed here? |
I agree
As of right now, our Docker images However, I think we should also support running Orca as a command-line tool as it does in a normal desktop installation. For example, a user should be able to bind-mount a folder and run the equivalent of $ docker run -i -v $(pwd):$(pwd) -w $(pwd) \
antoinerg/orca-reproducible graph --verbose myfigure.json
exported myfigure, in 1158.483293 ms or pipe the figure to the STDIN of the process cat myfigure.json | docker run -i antoinerg/orca-reproducible graph --verbose > myfigure.png To make this happen, we would need to slightly modify the Dockerfile's cc @scjody |
@antoinerg Thanks for uploading the |
Thank you @cedricyau for your interest in plotly!
Not yet, sorry!
Great to hear this! The plan is to have an official Docker image for Orca very soon! (WIP in branch docker-release)
I am not familiar with AWS Batch. Do you need to run Orca as command-line tool or can you run it as a HTTP API server? |
I would need to run |
@cedricyau I opened a PR #222 which may be of interest to you. Please note that |
Hello @antoinerg , I found using HTTP API to call Suppose I have a port with url running the orca Or what is the correct endpoint to call? |
@slfan2013 glad to know it is useful for you! Instead of POSTing a JSON of your figure directy to your endpoint, wrap it in another object with: {
"format": "svg",
"figure": "... your figure"
} as described there: orca/src/component/plotly-graph/parse.js Lines 12 to 35 in f409622
|
@slfan2013 I should probably also mention that the latest docker Image on quay.io now supports HTTP content-negotiation. You can specify the format you want in an HTTP Accept header as shown below without having to modify the JSON payload: $ docker pull quay.io/plotly/orca
$ docker run -it -d -p 9091:9091 quay.io/plotly/orca
$ curl -d @14.json -H "accept: image/svg+xml" localhost:9091
... return SVG ... The supported accept types are given by the values in the object below: orca/src/component/plotly-graph/constants.js Lines 2 to 10 in f409622
|
Thank you @antoinerg . It helped a lot! Now I am able to generate the plot. How can I export it (possibly using a correct endpoint)? What I have done using
It successfully generated the plot giving an output of
I wonder how am I suppose to download this? Something like |
Oh, got it!
Perfect. This plotly + orca whole thing is perfect. Thank you @antoinerg |
I think we should advertise our Docker images in the installation methods as Docker is getting more and more popular and should solve all the problems related to missing dependencies or misconfiguration.
The text was updated successfully, but these errors were encountered: