diff --git a/docker/Dockerfile.collector b/docker/Dockerfile.collector index 5d67b5d..32361ba 100644 --- a/docker/Dockerfile.collector +++ b/docker/Dockerfile.collector @@ -22,6 +22,7 @@ COPY --from=backendbuild /go/src/github.com/analogj/scrutiny/scrutiny-collector- COPY --from=backendbuild /go/src/github.com/analogj/scrutiny/scrutiny-collector-metrics /scrutiny/bin/ RUN chmod +x /scrutiny/bin/scrutiny-collector-selftest && \ chmod +x /scrutiny/bin/scrutiny-collector-metrics && \ + chmod +x /entrypoint-collector.sh && \ chmod 0644 /etc/cron.d/scrutiny && \ rm -f /etc/cron.daily/apt /etc/cron.daily/dpkg /etc/cron.daily/passwd diff --git a/docker/entrypoint-collector.sh b/docker/entrypoint-collector.sh index d55f5b0..c838c19 100755 --- a/docker/entrypoint-collector.sh +++ b/docker/entrypoint-collector.sh @@ -1,3 +1,4 @@ +#!/bin/bash # Cron runs in its own isolated environment (usually using only /etc/environment ) # So when the container starts up, we will do a dump of the runtime environment into a .env file that we # will then source into the crontab file (/etc/cron.d/scrutiny.sh)