kopia lustrzana https://github.com/simonw/datasette
Fixes for new --memory option, refs #694
rodzic
ddd11b3ddd
commit
af9cd4ca64
|
@ -160,6 +160,6 @@ def get_existing_services():
|
|||
|
||||
|
||||
def _validate_memory(ctx, param, value):
|
||||
if re.match(r"^\d+(Gi|G|Mi|M)$", value) is None:
|
||||
if value and re.match(r"^\d+(Gi|G|Mi|M)$", value) is None:
|
||||
raise click.BadParameter("--memory should be a number then Gi/G/Mi/M e.g 1Gi")
|
||||
return value
|
||||
|
|
|
@ -25,4 +25,5 @@ Options:
|
|||
--service TEXT Cloud Run service to deploy (or over-write)
|
||||
--spatialite Enable SpatialLite extension
|
||||
--show-files Output the generated Dockerfile and metadata.json
|
||||
--memory TEXT Memory to allocate in Cloud Run, e.g. 1Gi
|
||||
--help Show this message and exit.
|
||||
|
|
Ładowanie…
Reference in New Issue