https://github.com/konstruktoid/container-cassandra-build
Cassandra in Docker
https://github.com/konstruktoid/container-cassandra-build
Last synced: 7 months ago
JSON representation
Cassandra in Docker
- Host: GitHub
- URL: https://github.com/konstruktoid/container-cassandra-build
- Owner: konstruktoid
- Created: 2015-09-30T20:28:43.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T10:12:56.000Z (almost 3 years ago)
- Last Synced: 2024-10-05T16:40:17.264Z (about 1 year ago)
- Language: Dockerfile
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cassandra
Simple Cassandra lab using Docker.
_Please note that because of the changes to [Docker Automated Builds](https://docs.docker.com/docker-hub/builds/)
many Docker images are now outdated and a manual build is required and recommended._```sh
$ podman build --no-cache -t konstruktoid/cassandra -f Dockerfile .
$ podman run -d --name cass01 konstruktoid/cassandra
$ podman logs -f cass01 2>/dev/null | grep -o 'Starting listening for CQL clients'
$ podman exec -ti cass01 cqlsh localhost
Connected to Test Cluster at localhost:9042
[cqlsh 6.1.0 | Cassandra 4.1.0 | CQL spec 3.4.6 | Native protocol v5]
Use HELP for help.
cqlsh> exit
$ podman exec -ti cass01 nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID Rack
UN 127.0.0.1 104.34 KiB 16 100.0% 8a6ddc64-3f03-4791-a15d-41d3b2d1f982 rack1
```