mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
datasette publish cloudrun --apt-get-install, closes #1110
This commit is contained in:
parent
f2e2bfcdd9
commit
37d18a5bce
4 changed files with 98 additions and 18 deletions
|
|
@ -36,6 +36,12 @@ def publish_subcommand(publish):
|
|||
callback=_validate_memory,
|
||||
help="Memory to allocate in Cloud Run, e.g. 1Gi",
|
||||
)
|
||||
@click.option(
|
||||
"--apt-get-install",
|
||||
"apt_get_extras",
|
||||
multiple=True,
|
||||
help="Additional packages to apt-get install",
|
||||
)
|
||||
def cloudrun(
|
||||
files,
|
||||
metadata,
|
||||
|
|
@ -60,6 +66,7 @@ def publish_subcommand(publish):
|
|||
spatialite,
|
||||
show_files,
|
||||
memory,
|
||||
apt_get_extras,
|
||||
):
|
||||
fail_if_publish_binary_not_installed(
|
||||
"gcloud", "Google Cloud", "https://cloud.google.com/sdk/"
|
||||
|
|
@ -122,6 +129,7 @@ def publish_subcommand(publish):
|
|||
secret,
|
||||
extra_metadata,
|
||||
environment_variables,
|
||||
apt_get_extras=apt_get_extras,
|
||||
):
|
||||
if show_files:
|
||||
if os.path.exists("metadata.json"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue