{"id":15805181,"url":"https://github.com/ddobrin/testcontainers-google-modules","last_synced_at":"2025-12-31T14:27:39.774Z","repository":{"id":134175930,"uuid":"460883372","full_name":"ddobrin/testcontainers-google-modules","owner":"ddobrin","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-18T16:55:49.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-06T02:05:23.012Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ddobrin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-18T14:25:22.000Z","updated_at":"2022-02-18T16:51:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"2607284e-fca3-4ddb-8e6d-b268e17baaa3","html_url":"https://github.com/ddobrin/testcontainers-google-modules","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ddobrin/testcontainers-google-modules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddobrin%2Ftestcontainers-google-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddobrin%2Ftestcontainers-google-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddobrin%2Ftestcontainers-google-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddobrin%2Ftestcontainers-google-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddobrin","download_url":"https://codeload.github.com/ddobrin/testcontainers-google-modules/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddobrin%2Ftestcontainers-google-modules/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265845121,"owners_count":23837734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-05T02:04:48.319Z","updated_at":"2025-12-31T14:27:39.727Z","avatar_url":"https://github.com/ddobrin.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Examples using the [Testcontainers GCloud module](https://www.testcontainers.org/modules/gcloud/) to test applications locally.\n\nAll examples leverage the Google Cloud SDK and emulators provided by Google for several services.\n\nThe repository provides examples for:\n1. Cloud Spanner - plain Java, no framework in use - directly leverage Testcontainers\n2. Cloud Spanner - SpringBoot in use - leverage Testcontainers\n3. Postgres (Cloud SQL) - SpringBoot and Spring Cloud GCP 2.x in use - latest released version, as maintained at this time by Google Cloud Teams\n\nTo run all the tests:\n* From the repo root:  `mvn verify`\n* From each individual sample: `mvn verify`\n\nTo run integration tests as part of a CI/CD build:\n```shell\n# Create a repository in Artifact Registry - let's call it: emulators\n\u003e gcloud artifacts repositories create emulators --repository-format=docker --location=us-central1 --description=\"Docker repository Testcontainer and emulator test images\"\n\n# Submit the CloudBuild pipeline and observe the integration tests being executed\n\n# Spanner, plain Java\n\u003e gcloud builds submit --config=noframeworks/spanner-example/cloudbuild.yaml .\n\n# Spanner, SpringBoot\n\u003e gcloud builds submit --config=springboot-gcp/spanner-example/cloudbuild.yaml .\n\n# Postgres, SpringBoot\n\u003e gcloud builds submit --config=noframeworks/postgres-example/cloudbuild.yaml .\n```\n\nEach CloudBuild manifest shows the following build steps, each running individually in a container\n```shell\nsteps:\n  # Run Integration tests in Containers\n  # fail-fast by running integration tests before packaging the app\n  # Runs \u003e mvn verify\n  - name: maven:3-jdk-11\n    entrypoint: mvn\n    args: [\"verify\"]\n    dir: 'noframeworks/spanner-example'\n\n  # Testing completed --\u003e Build the application\n  # Do not run tests when building the app, tests have been executed\n  - name: maven:3-jdk-11\n    entrypoint: mvn\n    args: [\"package\", \"-Dmaven.test.skip=true\"]\n    dir: 'noframeworks/spanner-example'\n\n  # Build the image\n  - name: gcr.io/cloud-builders/docker\n    args: [\"build\", \"-f\", \"Dockerfile\", \"-t\", \"us-central1-docker.pkg.dev/$PROJECT_ID/emulators/spanner-example\", \".\"]\n    dir: 'noframeworks/spanner-example'\n\n  # Push the container image to Artifact Registry\n  - name: 'gcr.io/cloud-builders/docker'\n    args: ['push', 'us-central1-docker.pkg.dev/$PROJECT_ID/emulators/spanner-example']\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddobrin%2Ftestcontainers-google-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddobrin%2Ftestcontainers-google-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddobrin%2Ftestcontainers-google-modules/lists"}