{"id":51465436,"url":"https://github.com/data-fair/elasticsearch-test-client","last_synced_at":"2026-07-06T10:30:44.206Z","repository":{"id":340970253,"uuid":"1168338639","full_name":"data-fair/elasticsearch-test-client","owner":"data-fair","description":"A simple docker image to connect to a Elasticsearch cluster using nodejs client and test it.","archived":false,"fork":false,"pushed_at":"2026-03-10T20:35:30.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-11T01:48:54.162Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/data-fair.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-27T09:19:40.000Z","updated_at":"2026-03-10T20:35:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/data-fair/elasticsearch-test-client","commit_stats":null,"previous_names":["data-fair/elasticsearch-test-client"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/data-fair/elasticsearch-test-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-fair%2Felasticsearch-test-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-fair%2Felasticsearch-test-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-fair%2Felasticsearch-test-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-fair%2Felasticsearch-test-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/data-fair","download_url":"https://codeload.github.com/data-fair/elasticsearch-test-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-fair%2Felasticsearch-test-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35187624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-07-06T10:30:43.477Z","updated_at":"2026-07-06T10:30:44.196Z","avatar_url":"https://github.com/data-fair.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elasticsearch Test Client\n\nDebug Docker image for testing Elasticsearch connectivity from a Kubernetes pod.\n\n## Environment Variables\n\n| Variable | Description |\n|----------|-------------|\n| `ES_HOST` | Single ES host (e.g., `localhost:9200`) |\n| `ES_NODES` | JSON array of ES nodes |\n| `ES_AUTH` | JSON object with `username` and `password` |\n| `ES_OPTIONS` | JSON object with additional client options |\n| `ES_CA` | CA certificate string |\n\n## Usage\n\n```bash\n# Build\ndocker build -t es-test-client .\n\n# Run\ndocker run -it -e ES_HOST=localhost:9200 es-test-client\n```\n\n## Kubernetes\n\n```yaml\napiVersion: v1\nkind: Pod\nmetadata:\n  name: es-test-client\nspec:\n  containers:\n  - name: es-test-client\n    image: es-test-client\n    env:\n    - name: ES_HOST\n      value: \"elasticsearch:9200\"\n  restartPolicy: Never\n```\n\n## Connect to Pod\n\n```bash\nkubectl exec -it es-test-client -- sh\n# Then run node scripts using the es client:\nnode --loader ts-node/esm -e \"import { esClient } from './es.js'; await esClient.connect(); console.log(await esClient.client.cat.indices())\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdata-fair%2Felasticsearch-test-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdata-fair%2Felasticsearch-test-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdata-fair%2Felasticsearch-test-client/lists"}