From 33d4b99a4bea30aa75a78bdd3b8c5878c3a5d959 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Mon, 26 Apr 2021 10:03:40 -0700 Subject: [PATCH] fix collector. --- docker/Dockerfile.collector | 1 + docker/entrypoint-collector.sh | 1 + 2 files changed, 2 insertions(+) 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)