{"id":47805976,"url":"https://github.com/benodiwal/testcontainers-ocaml","last_synced_at":"2026-04-03T17:37:58.284Z","repository":{"id":333081982,"uuid":"1119135760","full_name":"benodiwal/testcontainers-ocaml","owner":"benodiwal","description":"Lightweight, throwaway instances of databases, message brokers, or any service that runs in a Docker container. Enables reliable integration testing with real services instead of mocks.","archived":false,"fork":false,"pushed_at":"2026-02-21T07:11:54.000Z","size":280,"stargazers_count":23,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-21T14:16:27.180Z","etag":null,"topics":["docker","ocaml","testcontainers"],"latest_commit_sha":null,"homepage":"https://benodiwal.github.io/testcontainers-ocaml/","language":"OCaml","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/benodiwal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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-12-18T19:57:37.000Z","updated_at":"2026-02-21T09:57:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/benodiwal/testcontainers-ocaml","commit_stats":null,"previous_names":["benodiwal/testcontainers-ocaml"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/benodiwal/testcontainers-ocaml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benodiwal%2Ftestcontainers-ocaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benodiwal%2Ftestcontainers-ocaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benodiwal%2Ftestcontainers-ocaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benodiwal%2Ftestcontainers-ocaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benodiwal","download_url":"https://codeload.github.com/benodiwal/testcontainers-ocaml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benodiwal%2Ftestcontainers-ocaml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31366371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T17:13:05.644Z","status":"ssl_error","status_checked_at":"2026-04-03T17:13:04.413Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["docker","ocaml","testcontainers"],"created_at":"2026-04-03T17:37:57.641Z","updated_at":"2026-04-03T17:37:58.271Z","avatar_url":"https://github.com/benodiwal.png","language":"OCaml","readme":"# testcontainers-ocaml\n\nLightweight, throwaway instances of databases, message brokers, or any service that runs in a Docker container. Enables reliable integration testing with real services instead of mocks.\n\nThis project is incubating under the [Testcontainers](https://testcontainers.org/) org.\n\n\n## Installation\n\n```bash\nopam install testcontainers\n```\n\n## Quick Example\n\n```ocaml\nopen Lwt.Syntax\nopen Testcontainers_postgres\n\nlet () = Lwt_main.run (\n  Postgres_container.with_postgres (fun _container conn_str -\u003e\n    Printf.printf \"PostgreSQL: %s\\n\" conn_str;\n    Lwt.return_unit\n  )\n)\n```\n\n## Running Examples\n\n```bash\n# Clone the repository\ngit clone https://github.com/benodiwal/testcontainers-ocaml.git\ncd testcontainers-ocaml\n\n# Install dependencies\nopam install . --deps-only\n\n# Run examples\ndune exec examples/basic_example.exe\ndune exec examples/postgres_example.exe\ndune exec examples/redis_example.exe\ndune exec examples/mysql_example.exe\ndune exec examples/mongo_example.exe\ndune exec examples/kafka_example.exe\ndune exec examples/elasticsearch_example.exe\ndune exec examples/localstack_example.exe\ndune exec examples/memcached_example.exe\ndune exec examples/mockserver_example.exe\n```\n\n## Available Modules\n\n| Module | Package | Description |\n|--------|---------|-------------|\n| PostgreSQL | `testcontainers-postgres` | PostgreSQL database |\n| MySQL | `testcontainers-mysql` | MySQL database |\n| MongoDB | `testcontainers-mongo` | MongoDB database |\n| Redis | `testcontainers-redis` | Redis cache |\n| RabbitMQ | `testcontainers-rabbitmq` | RabbitMQ message broker |\n| Kafka | `testcontainers-kafka` | Apache Kafka (KRaft) |\n| Elasticsearch | `testcontainers-elasticsearch` | Elasticsearch |\n| LocalStack | `testcontainers-localstack` | AWS services emulation |\n| Memcached | `testcontainers-memcached` | Memcached cache |\n| MockServer | `testcontainers-mockserver` | HTTP mocking |\n\n## Documentation\n\nFull documentation: [https://benodiwal.github.io/testcontainers-ocaml](https://benodiwal.github.io/testcontainers-ocaml)\n\n- [Getting Started](docs/src/getting-started/quickstart.md)\n- [Core Concepts](docs/src/core/containers.md)\n- [API Reference](docs/src/reference/api-overview.md)\n\n## Requirements\n\n- OCaml \u003e= 5.0\n- Docker\n\n## Contributing\n\nWe welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n## License\n\nApache-2.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenodiwal%2Ftestcontainers-ocaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenodiwal%2Ftestcontainers-ocaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenodiwal%2Ftestcontainers-ocaml/lists"}