# GCloud ## Install ```bash npm install @testcontainers/gcloud --save-dev ``` ## Examples ### Firestore These examples use the following libraries: - [@google-cloud/firestore](https://www.npmjs.com/package/@google-cloud/firestore) npm install @google-cloud/firestore Choose an image from the [container registry](https://gcr.io/google.com/cloudsdktool/google-cloud-cli) and substitute `IMAGE`. [](../../packages/modules/gcloud/src/firestore-emulator-container.test.ts) inside_block:firestoreExample --- ### Datastore These examples use the following libraries: - [@google-cloud/datastore](https://www.npmjs.com/package/@google-cloud/datastore) npm install @google-cloud/datastore Choose an image from the [container registry](https://gcr.io/google.com/cloudsdktool/google-cloud-cli) and substitute `IMAGE`. [](../../packages/modules/gcloud/src/datastore-emulator-container.test.ts) inside_block:datastoreExample --- ### Cloud PubSub These examples use the following libraries: - [@google-cloud/pubsub](https://www.npmjs.com/package/@google-cloud/pubsub) npm install @google-cloud/pubsub Choose an image from the [container registry](https://gcr.io/google.com/cloudsdktool/google-cloud-cli) and substitute `IMAGE`. [](../../packages/modules/gcloud/src/pubsub-emulator-container.test.ts) inside_block:pubsubExample --- ### Cloud Storage These examples use the following libraries: - [@google-cloud/storage](https://www.npmjs.com/package/@google-cloud/storage) npm install @google-cloud/storage Choose an image from the [container registry](https://hub.docker.com/r/fsouza/fake-gcs-server) and substitute `IMAGE`. [](../../packages/modules/gcloud/src/cloudstorage-emulator-container.test.ts) inside_block:cloudstorageExample --- ### Cloud Spanner These examples use the following libraries: - [@google-cloud/spanner](https://www.npmjs.com/package/@google-cloud/spanner) npm install @google-cloud/spanner Choose an image from the [container registry](https://gcr.io/cloud-spanner-emulator/emulator:1.5.37) and substitute `IMAGE`. #### Connect via client [](../../packages/modules/gcloud/src/spanner-emulator-container.test.ts) inside_block:startupWithExplicitClient #### Connect via environment [](../../packages/modules/gcloud/src/spanner-emulator-container.test.ts) inside_block:startupWithEnvironmentVariable #### Helper usage [](../../packages/modules/gcloud/src/spanner-emulator-helper.test.ts) inside_block:createAndDelete --- ### BigQuery These examples use the following libraries: - [@google-cloud/bigquery](https://www.npmjs.com/package/@google-cloud/bigquery) npm install @google-cloud/bigquery Choose an image from the [container registry](https://ghcr.io/goccy/bigquery-emulator) and substitute `IMAGE`. [](../../packages/modules/gcloud/src/bigquery-emulator-container.test.ts) inside_block:bigqueryExample