{"id":34232920,"url":"https://github.com/akselarzuman/containy","last_synced_at":"2026-04-24T17:02:47.997Z","repository":{"id":277334757,"uuid":"932048351","full_name":"akselarzuman/containy","owner":"akselarzuman","description":"Simplified container-based testing for Go with a clean, declarative API. Built on top of testcontainers-go to make integration testing a breeze.","archived":false,"fork":false,"pushed_at":"2025-12-02T15:43:06.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-19T07:57:16.934Z","etag":null,"topics":["boilerplate","docker","go","golang","integration-testing","mocking","test-automation","testcontainers","testcontainers-go","testing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akselarzuman.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-13T09:27:43.000Z","updated_at":"2025-12-02T15:43:11.000Z","dependencies_parsed_at":"2025-08-26T13:16:50.161Z","dependency_job_id":"91c642a1-af02-459d-8073-cd4c59fc70ae","html_url":"https://github.com/akselarzuman/containy","commit_stats":null,"previous_names":["akselarzuman/containy"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/akselarzuman/containy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akselarzuman%2Fcontainy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akselarzuman%2Fcontainy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akselarzuman%2Fcontainy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akselarzuman%2Fcontainy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akselarzuman","download_url":"https://codeload.github.com/akselarzuman/containy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akselarzuman%2Fcontainy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32232628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["boilerplate","docker","go","golang","integration-testing","mocking","test-automation","testcontainers","testcontainers-go","testing"],"created_at":"2025-12-16T01:59:15.278Z","updated_at":"2026-04-24T17:02:47.991Z","avatar_url":"https://github.com/akselarzuman.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# containy\n\n`containy` is a Go library that simplifies container-based testing by providing a clean, declarative API on top of [testcontainers-go](https://github.com/testcontainers/testcontainers-go). It helps you write more maintainable integration tests with less boilerplate.\n\n## Features\n\n- Declarative container configuration\n- Flexible wait strategies (logs, ports, health checks, HTTP)\n- [Predefined](https://github.com/akselarzuman/containy/blob/main/predefined/predefined.go) templates for common services (Redis, PostgreSQL, Localstack)\n- Easy to extend and customize\n\n## Installation\n\n```bash\ngo get github.com/akselarzuman/containy\n```\n\n## Quick Start\nSee [examples](https://github.com/akselarzuman/containy/blob/main/examples/main.go) for a complete example.\n\n## Predefined Services\n\n### Redis\n```go\nredis, err := c.CreateContainer(ctx, predefined.RedisConfig)\n```\n\n### PostgreSQL\n```go\npostgres, err := c.CreateContainer(ctx, predefined.PostgresConfig(\n    \"postgres\", \n    \"password\",\n    \"testdb\"))\n```\n\n### Localstack\n```go\nlocalstack, err := c.CreateContainer(ctx, predefined.LocalstackConfig(\n    \"dynamodb,s3\",\n    \"us-east-1\",\n))\n```\n\n## Custom Container Configuration\n\nCreate custom configurations for any container:\n\n```go\nconfig := models.Config{\n    Image:        \"nginx:latest\",\n    Name:         \"nginx-test\",\n    ExposedPorts: []string{\"80:80/tcp\"},\n    WaitStrategy: models.WaitForHTTPResponse,\n    WaitConfig: map[string]string{\n        \"path\": \"/\",\n        \"port\": \"80/tcp\",\n    },\n}\n\ncontainer, err := c.CreateContainer(ctx, config)\n```\nCustom postgres configuration:\n```go\nconfig := models.Config{\n    Image:        \"postgres:13\",\n    Name:         \"postgres-mock\",\n    ExposedPorts: []string{\"5555:5432/tcp\"},\n    Env: map[string]string{\n        \"POSTGRES_USER\":     \"postgres\",\n        \"POSTGRES_PASSWORD\": \"pgpwd\",\n        \"POSTGRES_DB\":       \"containy\",\n    },\n    Cmd:          []string{\"postgres\", \"-c\", \"fsync=off\"},\n    WaitStrategy: models.WaitForPort,\n    WaitConfig: map[string]string{\n        \"port\": \"5432/tcp\",\n    },\n}\n\ncontainer, err := c.CreateContainer(ctx, config)\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakselarzuman%2Fcontainy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakselarzuman%2Fcontainy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakselarzuman%2Fcontainy/lists"}