tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
https://turso.tech/libsql
MIT License
11.53k stars 286 forks source link

Ship extensions in the docker image #1245

Open avinassh opened 8 months ago

avinassh commented 8 months ago

We don't ship extensions with the libsql-server docker image. Lets ship those which we are using the platform

https://docs.turso.tech/reference/extensions

tom-sherman commented 1 month ago

How do I load extensions when using the existing docker image?

KubaJastrz commented 4 weeks ago

@tom-sherman https://github.com/tursodatabase/libsql/tree/7521bc0d91f34a8a3b8776efe32aa0d20f20bf55/libsql-server#sqlite-extensions-support

tom-sherman commented 3 weeks ago

I landed on this dockerfile

https://github.com/likeandscribe/frontpage/blob/83834b1f4ef69832303be7431c39d62ab82e9c19/packages/frontpage/local-infra/turso/Dockerfile

Which relies on a trust lst being placed in the relevant location that is precalculated: https://github.com/likeandscribe/frontpage/blob/83834b1f4ef69832303be7431c39d62ab82e9c19/packages/frontpage/local-infra/turso/trusted.lst