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

introduce new option for datasette package to use a slim base image #1574

Closed
wants to merge 2 commits into from

Commits on Dec 28, 2021

  1. introduce new option for datasette package to use a slim base image

    The official python images on docker hub come with a slim variant that
    is significantly smaller than the default. The diff does not change the
    default, but allows to switch to the `slim` variant with commandline
    switch (`--slim-base-image`)
    
    Size comparison:
    
    ```
    $ datasette package some.db -t fat --install "datasette-basemap datasette-cluster-map"
    
    $ datasette  package some.db -t slim --slim-base-image --install "datasette-basemap datasette-cluster-map"
    
    $ docker images
    REPOSITORY   TAG       IMAGE ID       CREATED          SIZE
    fat          latest    807b393ace0d   9 seconds ago    978MB
    slim         latest    31bc5e63505c   8 minutes ago    191MB
    
    ```
    fs111 committed Dec 28, 2021
    Configuration menu
    Copy the full SHA
    fb330c4 View commit details
    Browse the repository at this point in the history
  2. test fixes

    fs111 committed Dec 28, 2021
    Configuration menu
    Copy the full SHA
    8561f03 View commit details
    Browse the repository at this point in the history