Create buildsteps to deploy to Cloud Run
cr_buildstep_run(
name,
image,
allowUnauthenticated = TRUE,
region = cr_region_get(),
concurrency = 80,
port = NULL,
max_instances = "default",
memory = "256Mi",
cpu = 1,
env_vars = NULL,
gcloud_args = NULL,
...
)
Name for deployment on Cloud Run
The name of the image to create or use in deployment - gcr.io
TRUE if can be reached from public HTTP address. If FALSE will configure a service-email called (name)-cloudrun-invoker@(project-id).iam.gserviceaccount.com
The endpoint region for deployment
How many connections each container instance can serve. Can be up to 80.
Container port to receive requests at. Also sets the $PORT environment variable. Must be a number between 1 and 65535, inclusive. To unset this field, pass the special value "default".
the desired maximum nuimber of container instances. "default" is 1000, you can get more if you requested a quota instance. For Shiny instances on Cloud Run, this needs to be 1.
The format for size is a fixed or floating point number followed by a unit: G, M, or K corresponding to gigabyte, megabyte, or kilobyte, respectively, or use the power-of-two equivalents: Gi, Mi, Ki corresponding to gibibyte, mebibyte or kibibyte respectively. The default is 256Mi
1 or 2 CPUs for your instance
Environment arguments passed to the Cloud Run container at runtime. Distinct from env
that run at build time.
a character string of arguments that can be sent to the gcloud command not covered by other parameters of this function
passed on to cr_buildstep
Docs for gcloud run deploy this buildstep invokes
Other Cloud Buildsteps:
cr_buildstep_bash()
,
cr_buildstep_decrypt()
,
cr_buildstep_df()
,
cr_buildstep_docker()
,
cr_buildstep_edit()
,
cr_buildstep_extract()
,
cr_buildstep_gcloud()
,
cr_buildstep_gitsetup()
,
cr_buildstep_mailgun()
,
cr_buildstep_nginx_setup()
,
cr_buildstep_packagetests()
,
cr_buildstep_pkgdown()
,
cr_buildstep_r()
,
cr_buildstep_secret()
,
cr_buildstep_slack()
,
cr_buildstep_targets()
,
cr_buildstep()