Illustration Image

Cassandra.Link

The best knowledge base on Apache Cassandra®

Helping platform leaders, architects, engineers, and operators build scalable real time data platforms.

8/3/2018

Reading time:1 min

zegelin/cassandra-docker

by John Doe

Apache Cassandra and Elassandra docker images.Building Docker ImagesRun build.sh in the repository root. This first builds the base-openjre image,which is a Debian Strech image with OpenJRE 8 (headless) installed, and thenbuilds the given distribution and version of cassandra.For Elassandra, invoke build.sh:./build.sh elassandra 5.5.0.13OpenshiftThe following steps assume that an OpenShift project named myproject has already been createdand that the OpenShift client (oc) has been configured to connect to the OpenShift cluster.Note: The project name (k8s namespace) is used as part of DNS names specified in the Cassandra configuration files.If you use an alternate project name, you'll need to replace all occurances of myproject withthe appropriate value.It is also assumed that the Docker images have already been built and pushed to the localOpenShift Docker registry. See Building Docker Images above.Create an elassandra-config ConfigMap containing the Cassandra/Elassandra configuration:oc create configmap elassandra-config --from-file=examples/elassandra/openshift/conf/Create an elassandra Service:oc apply -f examples/elassandra/openshift/elassandra-service.yamlCreate the elassandra StatefulSet, which spawns 3 Elassandra nodes:oc create -f examples/elassandra/openshift/elassandra-statefulset.yaml

Illustration Image

Apache Cassandra and Elassandra docker images.

Building Docker Images

Run build.sh in the repository root. This first builds the base-openjre image, which is a Debian Strech image with OpenJRE 8 (headless) installed, and then builds the given distribution and version of cassandra.

For Elassandra, invoke build.sh:

./build.sh elassandra 5.5.0.13

Openshift

The following steps assume that an OpenShift project named myproject has already been created and that the OpenShift client (oc) has been configured to connect to the OpenShift cluster.

Note: The project name (k8s namespace) is used as part of DNS names specified in the Cassandra configuration files. If you use an alternate project name, you'll need to replace all occurances of myproject with the appropriate value.

It is also assumed that the Docker images have already been built and pushed to the local OpenShift Docker registry. See Building Docker Images above.

Create an elassandra-config ConfigMap containing the Cassandra/Elassandra configuration:

oc create configmap elassandra-config --from-file=examples/elassandra/openshift/conf/

Create an elassandra Service:

oc apply -f examples/elassandra/openshift/elassandra-service.yaml

Create the elassandra StatefulSet, which spawns 3 Elassandra nodes:

oc create -f examples/elassandra/openshift/elassandra-statefulset.yaml

Related Articles

mongo
nocode
elasticsearch

GitHub - ibagroup-eu/Visual-Flow: Visual-Flow main repository

ibagroup-eu

12/2/2024

elasticsearch
cassandra

Checkout Planet Cassandra

Claim Your Free Planet Cassandra Contributor T-shirt!

Make your contribution and score a FREE Planet Cassandra Contributor T-Shirt! 
We value our incredible Cassandra community, and we want to express our gratitude by sending an exclusive Planet Cassandra Contributor T-Shirt you can wear with pride.

Join Our Newsletter!

Sign up below to receive email updates and see what's going on with our company

Explore Related Topics

AllKafkaSparkScyllaSStableKubernetesApiGithubGraphQl

Explore Further

elasticsearch