I am trying to execute docker-compose on top of official Cassandra docker image.
Basically, I am trying to set a few of properties present inside Cassandra image at /etc/cassandra/cassandra.yaml .
My docker-compose looks like
version: '3.0'
services:
cassandra:
image: cassandra:3.11.6
ports:
- "9042:9042"
environment:
- CASSANDRA_ENABLE_USER_DEFINED_FUNCTIONS=true
# restart: always
volumes:
- ./cassandra-dc-1:/usr/local/bin/
container_name: cassandra-dc-1
entrypoint: /usr/local/bin/docker-entrypoint.sh
# command: /usr/local/bin/docker-entrypoint.sh
When I run docker-compose up --build I get below error, from the directory where I have the docker-compose.yaml present
cassandra-dc-1 | find: ‘’: No such file or directory
cassandra-dc-1 exited with code 1
I tried giving
- Absolute path in the volume
- ./cassandra-dc-1:/usr/local/bin/ -- using this with file 'docker-entrypoint.sh' which I want to copy within docker
I am unable to figure out what is wrong.