-
Notifications
You must be signed in to change notification settings - Fork 25
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
Request that OS-Climate ODH host a datasette instance #418
Comments
On this page of the Datasette documentation is given for creating a docker container: https://docs.datasette.io/en/stable/installation.html#installation I'm sure that if there were a good OpenShift recipe, @simonw could add that to the documentation. Note that Datasette's concept is to be a per-database HTTPS server, meaning that if I want to browse a number of databases, I want to open a number of Datasette instances. |
Actually, datasette is installed via pip install. And it's not thrilled about trying to connect jupyter-server 1.6.4 with anyio 3.3.3. There's a bit of a dance I can do manually to downgrade enough things to be compatible. But where should I actually file this as an issue?
And what are the chances that this is fixed but that the dependencies are not yet: jupyter-server/jupyter_server#490 |
I attempted to install a docker image: https://hub.docker.com/r/datasetteproject/datasette/ It seemed to go well, but the image resulted in a non-responsive application: https://console-openshift-console.apps.odh-cl1.apps.os-climate.org/k8s/ns/wri-pp/services/datasette/ |
@MichaelTiemannOSC what was your Also, what details do we know about this image |
I'm lacking key skills in the container area. I see this in the log file:
However, I don't know how to upload a database file to the openshift environment and I don't know why the route I get (which is just an http: not https: route) doesn't reach the application and bring up a webserver that says hello. It's all well and good that datasette is running on localhost, but the URL I'm trying to reach is http://datasette-wri-pp.apps.odh-cl1.apps.os-climate.org/ and that doesn't have a very 8001-looking port. |
Here's what I think I need to finish this task:
Am I missing anything? |
Okay not too familiar with datasette, but as I understand it, we just need to openshift-ify this image, meaning just create a deployment/route/etc. Can someone expand on the |
The |
In a perfect world the In this particular case we also want to drag along corp-metadata.json and pint-definitions.txt to that middle-ground storage location, with notebooks able to update and datasette able to read. |
Well, I did everything I thought I needed to do and I still don't have a working datasette. My URL is here: http://datasette-datasette-osc.apps.odh-cl1.apps.os-climate.org/ I have a PVC which has the appropriate files sitting in /mnt using a PVC. I think I am really close, but not quote there. |
There were two final impediments to completing the task:
ENTRYPOINT /usr/local/bin/datasette serve "/mnt/corp data.db" --cors --setting base_url /corp-datasette/ -p 8001 -h 0.0.0.0 --setting sql_time_limit_ms 500 --setting default_facet_size 60 --setting facet_time_limit_ms 500 --metadata /mnt/corp-metadata.json Done! |
Please see os-climate/os_c_data_commons#79 for full details.
In short. We would like to host an instance of Datasette on the os-climate cluster. What would be the best approach to make this happen?
The text was updated successfully, but these errors were encountered: