Installing cassandra on RHEL using docker

I am trying to install cassandra on RHEL-7 from source code using docker.
I have done following steps inside the container:

1 - yum install -y git java-1.8.0-openjdk-devel ant
2- export JAVA_HOME=/usr/lib/jvm/java-1.8.0
3- export PATH=$PATH:$JAVA_HOME/bin
4- export ANT_HOME=/usr/share/ant
5- export PATH=$PATH:$ANT_HOME/bin
6- export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
7 -git clone
8 -cd cassandra && ant

The build is successful. But when I try to start cassandra server inside container I am getting following error:

  • Pull docker image from AWS ECR using remote API
  • Getting error ImportMismatchError while running py.test
  • Why does docker prompt “Permission denied” when backing up the data volume?
  • Unable to retrieve restored archive from AWS S3 'Invalid size value: 1g'
  • Is there a way to add a prompt during the docker build process?
  • Docker VOLUME for different users
  • A fatal error has been detected by the Java Runtime Environment:
    Internal Error (cppInterpreter_zero.cpp:812), pid=836, tid=4397984807184
    Error: Unimplemented()

    Any idea?

  • Synchronizing numeric user id's between Dockerfiles and docker-compose.yml?
  • Is there a CentOS equivalent of the official ruby:2.2.0 docker image?
  • Installing Composer in Docker container gives Segmentation fault
  • How can I edit an existing docker image metadata?
  • want to use the same host and port for ssh session
  • Docker-machine error in Linux
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.