Skip to content

Commit

Permalink
Give read permissions to non-root
Browse files Browse the repository at this point in the history
Without this it's hard to run the exporter as non-root.
Also, there is no need to give the executable bit to regular files, the capital `X` should be enough.
  • Loading branch information
porridge authored and geobeau committed Feb 6, 2020
1 parent aad9aff commit e8a78a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ RUN echo "${EXPORTER_SHA512} /opt/cassandra_exporter/cassandra_exporter.jar" >
ADD config.yml /etc/cassandra_exporter/
ADD run.sh /

RUN chmod +x /sbin/dumb-init && chmod g+wrx -R /opt/cassandra_exporter && chmod g+wrx -R /etc/cassandra_exporter
RUN chmod +x /sbin/dumb-init && chmod g+wrX,o+rX -R /opt/cassandra_exporter && chmod g+wrX,o+rX -R /etc/cassandra_exporter

CMD ["/sbin/dumb-init", "/bin/bash", "/run.sh"]

0 comments on commit e8a78a8

Please sign in to comment.