Hide Forgot
The Cassandra Docker image used by Hawkular Services (Cloudforms Middleware) is currently running as the root user. This is not compatible with Kubernetes/Openshift so it needs to run as a non-root user.
I updated the docker-entrypoint.sh script so that it will switch to the cassandra user if the user starts the container as root. I also verified that the container can be started with an arbitrary user id (docker run --user) as long as the correct permissions are set on the volume (/opt/apache-cassandra/data). This works in a similar way to the upstream Cassandra docker image.
This issue can be verified by starting the container and then running the "ps" command to verify that the cassandra server is running as the cassandra user. For example: docker exec -ti <cassandra-container-id> ps aux
(In reply to Paul Gier from comment #2) > I updated the docker-entrypoint.sh script so that it will switch to the > cassandra user if the user starts the container as root. I also verified > that the container can be started with an arbitrary user id (docker run > --user) as long as the correct permissions are set on the volume > (/opt/apache-cassandra/data). > > This works in a similar way to the upstream Cassandra docker image. docker run --user is valid for docker BUT not for Openshift in which when the image is created is done as root so is the PaaS who run the container and fail when try to deploy it.
Hi Luis, Could you share the chnages you have made in docker-entrypoint.sh script Thanks,