Description
Google’s Cloud SDK provides a platform to work with the services provided through their Cloud Platform. Currently, this module supports Bigtable, Datastore, Firestore, Spanner, and Pub/Sub emulators.Examples
Dependency:
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>gcloud</artifactId>
<version>1.20.0</version>
<scope>test</scope>
</dependency>
Usage:
var bigtable = new BigtableEmulatorContainer(
DockerImageName.parse("gcr.io/google.com/cloudsdktool/google-cloud-cli:380.0.0-emulators")
);
bigtable.start();
Dependency:
go get github.com/testcontainers/testcontainers-go/modules/gcloud
Usage:
bigTableContainer, err := gcloud.RunBigTableContainer(
ctx,
testcontainers.WithImage("gcr.io/google.com/cloudsdktool/cloud-sdk:380.0.0-emulators"),
gcloud.WithProjectID("bigtable-project"),
)