criteo/cassandra_exporter

Wrong java path in docker image

porridge opened this issue · 1 comments

I'm afraid the latest release of the docker image does not work:

Starting Cassandra exporter
JVM_OPTS: 
[dumb-init] /usr/bin/java: No such file or directory

Looks like Java is now installed in a different way and location, but run.sh hardcodes the old path:

$ docker run -t -i criteord/cassandra_exporter:2.3.2 grep java /run.sh
/sbin/dumb-init /usr/bin/java ${JVM_OPTS} -jar /opt/cassandra_exporter/cassandra_exporter.jar /etc/cassandra_exporter/config.yml
$ docker run -t -i criteord/cassandra_exporter:2.3.2 which java
/usr/local/openjdk-11/bin/java
$ docker run -t -i criteord/cassandra_exporter:2.3.2 ls -l /usr/bin/java
ls: cannot access '/usr/bin/java': No such file or directory
$ 
erebe commented

Available on criteord/cassandra_exporter:2.3.3 image