{"id":18245590,"url":"https://github.com/touk/dockds","last_synced_at":"2025-04-04T14:31:06.803Z","repository":{"id":57742538,"uuid":"71772535","full_name":"TouK/dockds","owner":"TouK","description":"Docker contained database autoconfiguration for Spring Boot","archived":false,"fork":false,"pushed_at":"2020-06-26T09:56:53.000Z","size":24,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-20T14:21:27.820Z","etag":null,"topics":["embedded-database","embedded-mysql","embedded-postgresql","jpa","mysql","postgresql","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"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/TouK.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}},"created_at":"2016-10-24T09:21:23.000Z","updated_at":"2020-12-28T10:04:27.000Z","dependencies_parsed_at":"2022-09-09T11:20:45.909Z","dependency_job_id":null,"html_url":"https://github.com/TouK/dockds","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TouK%2Fdockds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TouK%2Fdockds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TouK%2Fdockds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TouK%2Fdockds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TouK","download_url":"https://codeload.github.com/TouK/dockds/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247193941,"owners_count":20899399,"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":["embedded-database","embedded-mysql","embedded-postgresql","jpa","mysql","postgresql","spring-boot"],"created_at":"2024-11-05T09:21:37.617Z","updated_at":"2025-04-04T14:31:06.379Z","avatar_url":"https://github.com/TouK.png","language":"Java","readme":"# dockds\n[![Build Status](https://travis-ci.org/TouK/dockds.svg?branch=master)](https://travis-ci.org/TouK/dockds)\n\nWith a little help of Docker embed PostgreSQL or MySQL in your Spring Boot application or test\njust as you can do with H2 or HSQLDB.\n\n## Usage\n\nAssuming you have either PostgreSQL or MySQL driver in your depedencies list, just add yet the following dependency:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003epl.touk\u003c/groupId\u003e\n  \u003cartifactId\u003edockds\u003c/artifactId\u003e\n  \u003cversion\u003e1.2.0\u003c/version\u003e\n  \u003c!-- Probably in most cases you will want --\u003e\n  \u003c!-- \u003cscope\u003etest\u003c/scope\u003e --\u003e\n\u003c/dependency\u003e\n```\n\nUnless you have a datasource url specifified in `application.properties` \na database instance in a Docker container will be launched along with your applicaton context.\n\nJust as if you had an embedded database (e.g. HSQLDB) driver in your `pom.xml`.\n\nIf you have tests using an embedded database with `@DataJpaTest` annotation, you substitute it with `@DockerizedDataJpaTest`. This way you will be able to use native queries in your JPA repositories.\n\n## Getting Started\n1. Complete guide [Accessing Data with JPA](https://spring.io/guides/gs/accessing-data-jpa/)\n2. Add the above dependency to `pom.xml` or `build.gradle`\n3. Replace H2 with PostgreSQL or MySQL in the `pom.xml` or `build.gradle`\n4. Replace `@DataJpaTest` with `@DockerizedDataJpaTest` in `CustomerRepositoryTests` (which is not described in the guide but is available in the provided source repository)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftouk%2Fdockds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftouk%2Fdockds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftouk%2Fdockds/lists"}