{"id":27404748,"url":"https://github.com/nuvo/docker-cqlsh","last_synced_at":"2025-09-10T01:33:48.277Z","repository":{"id":40475780,"uuid":"166000988","full_name":"nuvo/docker-cqlsh","owner":"nuvo","description":"Cqlsh in a container","archived":false,"fork":false,"pushed_at":"2024-02-24T05:30:08.000Z","size":11,"stargazers_count":13,"open_issues_count":6,"forks_count":15,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-25T07:48:14.926Z","etag":null,"topics":["cassandra","cqlsh","docker","kubernetes"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/nuvo.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}},"created_at":"2019-01-16T08:13:25.000Z","updated_at":"2024-12-12T12:07:24.000Z","dependencies_parsed_at":"2025-04-14T05:47:15.382Z","dependency_job_id":"eb2fe336-abf6-4155-8ab6-0a6307af7968","html_url":"https://github.com/nuvo/docker-cqlsh","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nuvo/docker-cqlsh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuvo%2Fdocker-cqlsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuvo%2Fdocker-cqlsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuvo%2Fdocker-cqlsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuvo%2Fdocker-cqlsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuvo","download_url":"https://codeload.github.com/nuvo/docker-cqlsh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuvo%2Fdocker-cqlsh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274396494,"owners_count":25277393,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"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":["cassandra","cqlsh","docker","kubernetes"],"created_at":"2025-04-14T05:47:07.302Z","updated_at":"2025-09-10T01:33:48.225Z","avatar_url":"https://github.com/nuvo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-cqlsh\n\n[![Docker Pulls](https://img.shields.io/docker/pulls/nuvo/docker-cqlsh.svg)](https://hub.docker.com/r/nuvo/docker-cqlsh/)\n[![license](https://img.shields.io/github/license/nuvo/docker-cqlsh.svg)](https://github.com/nuvo/docker-cqlsh/blob/master/LICENSE)\n\nCqlsh in a container\n\nSome reasons why you might be interested:\n\n* Run `cql` files to load data to `cassandra` when it starts\n* Execute remote commands without `exec` directly to `cassandra`\n\nThe default `CMD` command in the image will try to connect to `cassandra` using default `env vars`\nand execute each `.cql` file found in the container `/scripts` path.\n\n### Prerequisites\n\nIn order to run this container you'll need docker installed.\n\n* [Windows](https://docs.docker.com/windows/started)\n* [OS X](https://docs.docker.com/mac/started/)\n* [Linux](https://docs.docker.com/linux/started/)\n\n### Usage\n\n```shell\n$ docker run -it nuvo/docker-cqlsh bash\n```\n\n#### Environment Variables\n\n* `CQLVERSION` - The native transport version to use (default: `3.4.4`)\n* `CQLSH_HOST` - Cassandra host (default: `cassandra`)\n* `CQLSH_PORT` - Cassandra port (default: `9042`)\n\n#### Examples\n\n\u003cdetails\u003e\n  \u003csummary\u003eStandalone instance\u003c/summary\u003e\n\nRun a `cassandra` container and connect to it\n\n```shell\n$ docker run -d -p 9042:9042 cassandra\n$ docker run --rm -it -e CQLSH_HOST=localhost --net=host nuvo/docker-cqlsh bash\nbash-4.4$ cqlsh -e \"show host;\"\nConnected to Test Cluster at localhost:9042.\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eKubernetes job\u003c/summary\u003e\n\n```yaml\napiVersion: batch/v1\nking: Job\nmetadata:\n  name: load-cql-files\nspec:\n  backoffLimit: 5\n  activeDeadlineSeconds: 100\n  template:\n    spec:\n      containers:\n      - name: cqlsh\n        image: nuvo/docker-cqlsh\n        env:\n        - name: CQLSH_HOST\n          value: cassandra-svc\n        volumeMounts:\n        - mountPath: /scripts\n          name: scripts\n      volumes:\n      - name: scripts\n        configMap:\n          name: cql-files\n```\n\u003c/details\u003e\n\n## License\n\nThis project is licensed under the Apache 2.0 License - see the [LICENSE](./LICENSE) file for details.\n\n## About cqlsh\n\ncqlsh is a Python-based command-line tool, and the most direct way to run simple CQL commands on a Cassandra cluster. \nThis is a simple re-bundling of the open source tool that comes bundled with Cassandra to allow for cqlsh to be installed and run inside of virtual environments ([source](https://pypi.org/project/cqlsh/))","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuvo%2Fdocker-cqlsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuvo%2Fdocker-cqlsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuvo%2Fdocker-cqlsh/lists"}