{"id":16430654,"url":"https://github.com/praveengnair/spring-boot-test-container","last_synced_at":"2026-05-08T03:02:57.790Z","repository":{"id":138932123,"uuid":"263206277","full_name":"PraveenGNair/spring-boot-test-container","owner":"PraveenGNair","description":"Repo for samples in Spring Boot tests with Testcontainers and PostgreSQL.","archived":false,"fork":false,"pushed_at":"2020-05-12T05:48:25.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T05:35:02.851Z","etag":null,"topics":["data-jpa","postgresql","spring-boot","testcontainers"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PraveenGNair.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-05-12T01:58:33.000Z","updated_at":"2024-04-15T05:05:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"eecd9ec4-44c7-463f-bed7-c6074b7fd2ab","html_url":"https://github.com/PraveenGNair/spring-boot-test-container","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PraveenGNair%2Fspring-boot-test-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PraveenGNair%2Fspring-boot-test-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PraveenGNair%2Fspring-boot-test-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PraveenGNair%2Fspring-boot-test-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PraveenGNair","download_url":"https://codeload.github.com/PraveenGNair/spring-boot-test-container/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240688669,"owners_count":19841778,"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":["data-jpa","postgresql","spring-boot","testcontainers"],"created_at":"2024-10-11T08:27:50.982Z","updated_at":"2026-05-08T03:02:52.742Z","avatar_url":"https://github.com/PraveenGNair.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Boot integration tests with TestContainers (PostgreSQL)\n\n## Overview\nUse Testcontainers for integration testing with Spring Data JPA and the PostgreSQL database.\nDetailed overview can be found on the [blog](https://medium.com/@prgnr173/spring-boot-with-test-containers-ca5f9dceae79)\n\n## Package the application\n\n- Package the application\n\n`$ ./mvnw clean package`\n\n\u003e To skip the tests use: `-DskipTests=true` \n\n## Run Application\n\n`$ mvn spring-boot:run`\n\n## Verify that postgres container is initialized\n\n\u003e Docker will pull the specified image and can be seen in Test logs.\n\n```\n2020-05-12 12:00:32.701  INFO 470540 --- [           main] org.testcontainers.DockerClientFactory   : Checking the system...\n2020-05-12 12:00:32.702  INFO 470540 --- [           main] org.testcontainers.DockerClientFactory   : ✔︎ Docker server version should be at least 1.6.0\n2020-05-12 12:00:32.828  INFO 470540 --- [           main] org.testcontainers.DockerClientFactory   : ✔︎ Docker environment should have more than 2GB free disk space\n2020-05-12 12:00:32.874  INFO 470540 --- [           main] 🐳 [postgres:11.1]                       : Creating container for image: postgres:11.1\n2020-05-12 12:00:33.655  INFO 470540 --- [           main] o.t.utility.RegistryAuthLocator          : Credential helper/store (docker-credential-desktop) does not have credentials for index.docker.io\n2020-05-12 12:00:34.581  INFO 470540 --- [           main] 🐳 [postgres:11.1]                       : Starting container with ID: a77f81e6b7278138b8829bb907a2eed66ed9c03a4dcd905f3bcf51a6d841300a\n2020-05-12 12:00:36.346  INFO 470540 --- [           main] 🐳 [postgres:11.1]                       : Container postgres:11.1 is starting: a77f81e6b7278138b8829bb907a2eed66ed9c03a4dcd905f3bcf51a6d841300a\n2020-05-12 12:00:42.060  INFO 470540 --- [           main] 🐳 [postgres:11.1]                       : Container postgres:11.1 started in PT15.1360412S\n2020-05-12 12:00:42.198  INFO 470540 --- [           main] org.testcontainers.ext.ScriptUtils       : Executing database script from initscript.sql\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraveengnair%2Fspring-boot-test-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpraveengnair%2Fspring-boot-test-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraveengnair%2Fspring-boot-test-container/lists"}