I am running a docker file to execute a debezium service as entrypoint.
It works fine and executes debezium service when I use the exact file path as parameter to Entrypoint command in my docker file
command in docker file
ENTRYPOINT ["kafka_2.12-2.6.2/bin/connect-standalone.sh","kafka_2.12-2.6.2/config/connect-standalone.properties","kafka_2.12-2.6.2/worker.properties"]
But it fails when I pass the file names as environment variable
command in docker file
ENTRYPOINT [${connect_standalone},${connect_standalone_properties},${worker_properties}]
docker run command
sudo docker run -it -e connect_standalone=kafka_2.12-2.6.2/bin/connect-standalone.sh -e connect_standalone_properties=kafka_2.12-2.6.2/config/connect-standalone.properties -e worker_properties=kafka_2.12-2.6.2/worker.properties --name cloud1 cloud9-image:latest
output of the docker run command
/bin/sh: [kafka_2.12-2.6.2/bin/connect-standalone.sh,kafka_2.12-2.6.2/config/connect-standalone.properties,kafka_2.12-2.6.2/worker.properties]: No such file or directory
Somehow it always goes to /bin/sh even though I have set working directory as root of my container where the kafka_2.12-2.6.2 directory is present