GoogleCloudRunV2Container constructor

const GoogleCloudRunV2Container({
  1. Input<List<String>>? args,
  2. Input<List<String>>? command,
  3. Input<List<String>>? dependsOn,
  4. Input<List<GoogleCloudRunV2EnvVar>>? env,
  5. required Input<String> image,
  6. Input<GoogleCloudRunV2Probe>? livenessProbe,
  7. Input<String>? name,
  8. Input<List<GoogleCloudRunV2ContainerPort>>? ports,
  9. Input<GoogleCloudRunV2ResourceRequirements>? resources,
  10. Input<GoogleCloudRunV2Probe>? startupProbe,
  11. Input<List<GoogleCloudRunV2VolumeMount>>? volumeMounts,
  12. Input<String>? workingDir,
})

Creates a new GoogleCloudRunV2Container. args Arguments to the entrypoint. The docker image's CMD is used if this is not provided. command Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. dependsOn Names of the containers that must start before this container. env List of environment variables to set in the container. image Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed. livenessProbe Periodic probe of container liveness. Container will be restarted if the probe fails. name Name of the container specified as a DNS_LABEL (RFC 1123). ports List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on. resources Compute Resource requirements by this container. startupProbe Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. volumeMounts Volume to mount into the container's filesystem. workingDir Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.

Implementation

const GoogleCloudRunV2Container({
  this.args,
  this.command,
  this.dependsOn,
  this.env,
  required this.image,
  this.livenessProbe,
  this.name,
  this.ports,
  this.resources,
  this.startupProbe,
  this.volumeMounts,
  this.workingDir,
});