{"id":22363740,"url":"https://github.com/teran/go-docker-testsuite","last_synced_at":"2025-10-15T00:32:20.546Z","repository":{"id":239500309,"uuid":"799626068","full_name":"teran/go-docker-testsuite","owner":"teran","description":"Library to run any third-party dependency in Docker on any platform Docker supports","archived":false,"fork":false,"pushed_at":"2025-01-20T17:20:13.000Z","size":283,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-20T18:27:09.480Z","etag":null,"topics":["docker","go","go-test","go-test-helper","go-testing","golang","test-automation","testing-tools"],"latest_commit_sha":null,"homepage":"","language":"Go","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/teran.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":"2024-05-12T17:39:47.000Z","updated_at":"2025-01-20T17:18:47.000Z","dependencies_parsed_at":"2024-05-12T23:25:06.746Z","dependency_job_id":"cc7a3006-8f32-434c-840b-0269b86c8f04","html_url":"https://github.com/teran/go-docker-testsuite","commit_stats":null,"previous_names":["teran/go-docker-testsuite"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teran%2Fgo-docker-testsuite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teran%2Fgo-docker-testsuite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teran%2Fgo-docker-testsuite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teran%2Fgo-docker-testsuite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teran","download_url":"https://codeload.github.com/teran/go-docker-testsuite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236542864,"owners_count":19165917,"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":["docker","go","go-test","go-test-helper","go-testing","golang","test-automation","testing-tools"],"created_at":"2024-12-04T17:16:59.685Z","updated_at":"2025-10-15T00:32:15.207Z","avatar_url":"https://github.com/teran.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-docker-testsuite\n\n![Test \u0026 Build status](https://github.com/teran/go-docker-testsuite/actions/workflows/verify.yml/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/teran/go-docker-testsuite)](https://goreportcard.com/report/github.com/teran/go-docker-testsuite)\n[![Go Reference](https://pkg.go.dev/badge/github.com/teran/go-docker-testsuite.svg)](https://pkg.go.dev/github.com/teran/go-docker-testsuite)\n\nLibrary to run any third-party dependency in Docker on any platform Docker supports\nThe main purpose is to allow runnings integration tests against almost any\ndatabase or other dependency running right within docker and available via\nnetwork.\n\n## Applications\n\nThe test suite provides some of applications, i.e. wrappers for particular\ndocker image, here's the list:\n\n* MinIO\n* MySQL/MariaDB/Percona Server\n* PostgreSQL\n* Redis\n* ScyllaDB\n\nEach application could provide its own interface to interact so please refer\nto applications package for some examples.\n\n## Example usage\n\nGo Docker Testsuite provides its own interface for each application aiming to\nmake it clean and easy to use each particular application.\n\nHere's an example for MySQL database:\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"database/sql\"\n\n    _ \"github.com/go-sql-driver/mysql\"\n\n    \"github.com/teran/go-docker-testsuite/applications/mysql\"\n)\n\nfunc main() {\n    ctx := context.Background()\n\n    app, err := mysql.New(ctx, \"index.docker.io/library/mysql:8.0.4\")\n    if err != nil {\n        panic(err)\n    }\n    defer app.Close(ctx)\n\n    if err := app.CreateDB(ctx, \"important_database\"); err != nil {\n        panic(err)\n    }\n\n    db, err := sql.Open(\"mysql\", app.MustDSN(\"important_database\"))\n    if err != nil {\n        panic(err)\n    }\n\n    if err := db.Ping(); err != nil {\n        panic(err)\n    }\n\n    if _, err := db.ExecContext(ctx, \"SELECT 1\"); err != nil {\n        panic(err)\n    }\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteran%2Fgo-docker-testsuite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteran%2Fgo-docker-testsuite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteran%2Fgo-docker-testsuite/lists"}