Skip to content
DocsTry Aspire
DocsTry

FlociGcpContainerResource

Handle
📦 CommunityToolkit.Aspire.Hosting.Floci v13.5.0
interface FlociGcpContainerResource
extends IComputeResource,
IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithArgs,
IResourceWithConnectionString,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly host: EndpointReferenceExpression;
readonly port: EndpointReferenceExpression;
readonly primaryEndpoint: EndpointReference;
readonly scheme: EndpointReferenceExpression;
withDataBindMount(
source: string,
isReadOnly?: boolean): FlociGcpContainerResource;
withDataVolume(
name: string,
isReadOnly?: boolean): FlociGcpContainerResource;
withDockerSocket(socketPath?: string): FlociGcpContainerResource;
withFlociUI(configureContainer?: (obj: FlociUIContainerResource) => Promise<void>, containerName?: string): FlociGcpContainerResource;
}

Properties

propertyconnectionStringExpressionReferenceExpressionget
Gets the emulator endpoint URL, following the primary endpoint's `Scheme`.
propertyhostEndpointReferenceExpressionget
Gets the host endpoint reference for the primary endpoint.
propertyportEndpointReferenceExpressionget
Gets the port endpoint reference for the primary endpoint.
propertyprimaryEndpointEndpointReferenceget
Gets the primary endpoint reference for the Floci container.
propertyschemeEndpointReferenceExpressionget
Gets the scheme endpoint reference for the primary endpoint. `http` unless a TLS certificate has been configured, in which case the endpoint is switched to `https` before the application starts. Floci serves both on the same port, so the port never changes.

Methods

methodwithDataBindMountbuilder
Configures a bind mount for persistent Floci GCP state.
withDataBindMount(
source: string,
isReadOnly?: boolean): FlociGcpContainerResource
sourcestring
isReadOnlybooleanoptional= False
FlociGcpContainerResource
methodwithDataVolumebuilder
Configures a named data volume for persistent Floci GCP state.
withDataVolume(
name: string,
isReadOnly?: boolean): FlociGcpContainerResource
namestring
isReadOnlybooleanoptional= False
FlociGcpContainerResource
methodwithDockerSocketbuilder
Mounts the Docker socket into the Floci GCP container so that Cloud Run, Cloud SQL, and other container-backed services can launch sibling containers. Also sets `FLOCI_GCP_DOCKER_DOCKER_HOST` to `unix:///var/run/docker.sock` (the container-side path where the socket is always mounted) so Floci can connect to it.
withDockerSocket(socketPath?: string): FlociGcpContainerResource
socketPathstringoptional= /var/run/docker.sock
FlociGcpContainerResource
methodwithFlociUIbuilder
Adds a Floci UI web console container for the Floci GCP resource
withFlociUI(configureContainer?: (obj: FlociUIContainerResource) => Promise<void>, containerName?: string): FlociGcpContainerResource
configureContainer(obj: FlociUIContainerResource) => Promise<void>optional
containerNamestringoptional
FlociGcpContainerResource