From c8a4be6b07013adad7aa7f31a424aee89449684b Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Sun, 4 Oct 2020 14:30:05 -0600 Subject: [PATCH] fix x509: certificate signed by unknown authority error for notifications. --- docker/Dockerfile | 3 +-- docker/Dockerfile.collector | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 90bd7d4..19746c4 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -34,13 +34,12 @@ ENV PATH="/scrutiny/bin:${PATH}" ADD https://github.com/dshearer/jobber/releases/download/v1.4.4/jobber_1.4.4-1_amd64.deb /tmp/ RUN apt install /tmp/jobber_1.4.4-1_amd64.deb -RUN apt-get update && apt-get install -y smartmontools=7.0-0ubuntu1~ubuntu18.04.1 +RUN apt-get update && apt-get install -y smartmontools=7.0-0ubuntu1~ubuntu18.04.1 ca-certificates && update-ca-certificates ADD https://github.com/just-containers/s6-overlay/releases/download/v1.21.8.0/s6-overlay-amd64.tar.gz /tmp/ RUN tar xzf /tmp/s6-overlay-amd64.tar.gz -C / COPY /rootfs / - COPY --from=backendbuild /go/src/github.com/analogj/scrutiny/scrutiny /scrutiny/bin/ COPY --from=backendbuild /go/src/github.com/analogj/scrutiny/scrutiny-collector-selftest /scrutiny/bin/ COPY --from=backendbuild /go/src/github.com/analogj/scrutiny/scrutiny-collector-metrics /scrutiny/bin/ diff --git a/docker/Dockerfile.collector b/docker/Dockerfile.collector index e783d02..6899899 100644 --- a/docker/Dockerfile.collector +++ b/docker/Dockerfile.collector @@ -18,11 +18,10 @@ ENV PATH="/scrutiny/bin:${PATH}" ADD https://github.com/dshearer/jobber/releases/download/v1.4.4/jobber_1.4.4-1_amd64.deb /tmp/ RUN apt install /tmp/jobber_1.4.4-1_amd64.deb -RUN apt-get update && apt-get install -y smartmontools=7.0-0ubuntu1~ubuntu18.04.1 +RUN apt-get update && apt-get install -y smartmontools=7.0-0ubuntu1~ubuntu18.04.1 ca-certificates && update-ca-certificates COPY /rootfs/scrutiny /scrutiny - COPY --from=backendbuild /go/src/github.com/analogj/scrutiny/scrutiny-collector-selftest /scrutiny/bin/ COPY --from=backendbuild /go/src/github.com/analogj/scrutiny/scrutiny-collector-metrics /scrutiny/bin/ RUN chmod +x /scrutiny/bin/scrutiny-collector-selftest && \