From a1c9d54ec045a7b4350352337146d2a4d2104111 Mon Sep 17 00:00:00 2001 From: Joshua Sierles Date: Tue, 8 Mar 2022 20:03:22 +0100 Subject: [PATCH] Remove Prometheus metrics exporter to prevent its meddling with maxmemory settings --- Dockerfile | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2f281f8..08b2fc3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,6 @@ ARG REDIS_VERSION=6.2.6 FROM redis:${REDIS_VERSION}-alpine -WORKDIR / - -RUN apk add --no-cache curl -RUN curl -L https://github.com/oliver006/redis_exporter/releases/download/v1.31.4/redis_exporter-v1.31.4.linux-amd64.tar.gz -o exporter.tgz \ - && tar xvzf exporter.tgz \ - && cp redis_exporter-*/redis_exporter /usr/local/bin/redis_exporter \ - && rm -rf *exporter* - -RUN curl -L https://github.com/DarthSim/hivemind/releases/download/v1.0.6/hivemind-v1.0.6-linux-amd64.gz -o hivemind.gz \ - && gunzip hivemind.gz \ - && mv hivemind /usr/local/bin - COPY start-redis-server.sh /usr/bin/start-redis-server.sh -COPY Procfile Procfile -RUN chmod +x /usr/bin/start-redis-server.sh /usr/local/bin/hivemind -CMD ["/usr/local/bin/hivemind"] +CMD ["/usr/bin/start-redis-server.sh"]