dockerizing the cassandra dev environment
Go to file
Alfredo Oliviero 5038c80093 quasi funzionante ma vuoto 2024-07-30 17:03:33 +02:00
scripts quasi funzionante ma vuoto 2024-07-30 17:03:33 +02:00
.env_default default env file 2024-07-25 15:18:08 +02:00
.gitignore first dockerized version 2024-07-24 15:03:39 +02:00
Dockerfile quasi funzionante ma vuoto 2024-07-30 17:03:33 +02:00
README.md quasi funzionante ma vuoto 2024-07-30 17:03:33 +02:00
cassandra-rackdc.properties sistemando import, per ora problemi con CLUSTERING ORDER BY (column1 ) 2024-07-24 18:05:37 +02:00
cassandra.yaml quasi funzionante ma vuoto 2024-07-30 17:03:33 +02:00
docker-compose.yml quasi funzionante ma vuoto 2024-07-30 17:03:33 +02:00
dump.sh quasi funzionante ma vuoto 2024-07-30 17:03:33 +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

force recreate docker image

docker compose build --no-cache

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