zooniverse / classroom-maps-api

Mapping API for the https://classroom.zooniverse.org service. Built using https://datasette.io/ to provide a JSON API over SQLite databases with custom project CSV data.
MIT License
2 stars 0 forks source link

Upgrade datasette #7

Open camallen opened 3 years ago

camallen commented 3 years ago

Use the latest version of datasette FROM datasetteproject/datasette:0.56 or above and revert back to using the configuration directory mode, https://docs.datasette.io/en/latest/settings.html#configuration-directory-mode

  1. update the compose cmd https://github.com/zooniverse/classroom-maps-api/blob/1ded1dc58713e0453f3e6e3d78e8a9a16094ee2d/docker-compose.yaml#L7
  2. update the CMD in docker file https://github.com/zooniverse/classroom-maps-api/blob/1ded1dc58713e0453f3e6e3d78e8a9a16094ee2d/Dockerfile#L33

Note: it appears that version 0.56 breaks the use of apt update / install etc in the base image, see https://github.com/simonw/datasette/pull/1296 for how to fix.

simonw commented 3 years ago

Datasette 0.57 is out now with a fix for the apt-get update problem: https://docs.datasette.io/en/stable/changelog.html#v0-57 - see also https://github.com/simonw/datasette/pull/1320

camallen commented 3 years ago

@simonw thank you very much for the follow up, it's greatly appreciated :)