Skip to content

Comments

Add docker directory with compose file#4

Open
pmcfadin wants to merge 2 commits intogeico:mainfrom
pmcfadin:main
Open

Add docker directory with compose file#4
pmcfadin wants to merge 2 commits intogeico:mainfrom
pmcfadin:main

Conversation

@pmcfadin
Copy link

This pull request introduces a docker directory for ease of use. It includes a compose file that will use the pre-existing Cassandra accord enabled container at: https://hub.docker.com/r/pmcfadin/cassandra-accord

This makes it easy for somebody to get the entire stack up in one command and ready for psql commands.

Dockerization and orchestration:

  • Added a multi-stage Dockerfile for the cassandra-sql application, building the JAR and running as a non-root user with health checks and environment variable support.
  • Added a custom Dockerfile for Cassandra, configuring ByteOrderedPartitioner, Accord transactions, and secure startup with proper volume permissions.
  • Introduced a docker-compose.yml to orchestrate both services, with persistent volumes, health checks, and customizable ports for the application and Cassandra
  • Added a ] README.md in the docker/ directory, including quick start instructions, troubleshooting, architecture diagrams, and development workflow for Docker-based setups.
  • Updated CassandraExecutor.java to read Cassandra connection parameters (contactPoints, port, localDatacenter) from environment variables, enabling containerized deployments and easier configuration.

…pplication

- Introduced a new `docker-compose.yml` file to define services for Cassandra Accord and the associated application.
- Configured the Cassandra service with environment variables for cluster settings, memory management, and health checks.
- Set up the Cassandra SQL application with connection parameters and logging configurations.
- Established a bridge network and persistent volumes for data storage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant