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

datasette publish option for installing extra apt-get packages #1110

Closed
simonw opened this issue Nov 25, 2020 · 2 comments
Closed

datasette publish option for installing extra apt-get packages #1110

simonw opened this issue Nov 25, 2020 · 2 comments

Comments

@simonw
Copy link
Owner

simonw commented Nov 25, 2020

I ran into a need for this while playing with https://github.com/simonw/datasette-ripgrep - I need to install the ripgrep Ubuntu package when I deploy the plugin using Cloud Run.

@simonw
Copy link
Owner Author

simonw commented Nov 25, 2020

Design:

datasette publish cloudrun blah.db --apt-get-install ripgrep --install datasette-ripgrep

@simonw
Copy link
Owner Author

simonw commented Nov 25, 2020

Already have a pattern for extra packages in the form of the --spatialite feature:

SPATIALITE_DOCKERFILE_EXTRAS = r"""
RUN apt-get update && \
apt-get install -y python3-dev gcc libsqlite3-mod-spatialite && \
rm -rf /var/lib/apt/lists/*
ENV SQLITE_EXTENSIONS /usr/lib/x86_64-linux-gnu/mod_spatialite.so
"""

@simonw simonw closed this as completed in 37d18a5 Nov 25, 2020
@simonw simonw added this to the Datasette 0.52 milestone Nov 28, 2020
simonw added a commit that referenced this issue Nov 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant