dockerizing the cassandra dev environment
Go to file
Alfredo Oliviero f163144a65 created cluster. import not working 2024-07-24 15:41:02 +02:00
scripts first dockerized version 2024-07-24 15:03:39 +02:00
.gitignore first dockerized version 2024-07-24 15:03:39 +02:00
Dockerfile created cluster. import not working 2024-07-24 15:41:02 +02:00
README.md created cluster. import not working 2024-07-24 15:41:02 +02:00
cassandra-rackdc.properties created cluster. import not working 2024-07-24 15:41:02 +02:00
cassandra.yaml created cluster. import not working 2024-07-24 15:41:02 +02:00
docker-compose.yml created cluster. import not working 2024-07-24 15:41:02 +02:00
dump.sh first dockerized version 2024-07-24 15:03:39 +02:00

README.md

dump:

dump requires nodetool in prod, nodetool is in /usr/bin/

in dev environment, cassandra has been installed manually and nodetool is not in the path

  • dev should be aliegned to prod

DOCKER

aggiungere a /etc/host l'entry:

127.0.0.1 cassandra

start composer: docker compose up --build

check status: docker exec -it cassandra-cassandra-1 nodetool status

run a single service:

  • cassandra1: docker-compose up cassandra-cassandra1 --build
  • cassandra2: docker-compose up cassandra-cassandra2 --build
  • ,...

open bash on server

  • cassandra1: docker exec -it cassandra1 /bin/bash
  • cassandra2: docker exec -it cassandra2 /bin/bash
  • cassandra3: docker exec -it cassandra3 /bin/bash