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

Question: how to connect render-ws and mongo service? #249

Open
zuwenqiang opened this issue Feb 16, 2023 · 1 comment
Open

Question: how to connect render-ws and mongo service? #249

zuwenqiang opened this issue Feb 16, 2023 · 1 comment

Comments

@zuwenqiang
Copy link

Hello, I created mongo service according to your suggestion, but I don't know how to connect render service and mongo service. Here's how I built these two services:

  1. mongo service:
    docker pull dubc/mongodb-3.4
    docker run -d -p 27017:27017 --name mongo dubc/mongodb-3.4

  2. render service
    docker pull fcollman/render-ws
    docker run -p 8080:8080 --name render_service -e "MONGO_HOST=localhost" -l mongo -v /home/share/zuwenqiang:/home/zuwenqiang --rm fcollman/render-ws

In addition, the two services should be set up successfully. I pinged port 8080 and port 27017, and both were successful.

The render service is always like this:
image

Sorry, I'm a newbie and I really need your guidance.

@RussTorres
Copy link
Collaborator

Apologies for taking a long time to get to this -- notifications from this repo were buried for me.
It seems from your screenshot like you are connected to your new empty database (I believe there are red error messages when unable to connect). In this case, your next step is to add data (e.g. tilespecs) to the database. This repo provides a script to do that for our acquisition format in asap.dataimport.generate_EM_tilespecs_from_metafile.py, however you may need to modify or subclass that for your use case.

https://github.com/AllenInstitute/asap-modules/blob/c29b2126622e39d94957bcb178c97da993363f2b/asap/dataimport/generate_EM_tilespecs_from_metafile.py

This should work with our example data, though. While we are waiting on the data dryad link provided with the elife paper to be fixed, I can offer this lens correction set hosted on zenodo as an example of our formats which should work with that script: https://doi.org/10.5281/zenodo.7600575

If this is still of interest to you, please let me know if you are able to get tilespecs into the database -- that should fill in an example of the fields for Owner, Project, Stack, etc. and give you a better idea how parts of this work.

Thank you,
Russel

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

2 participants