From f82818cbc6881684003a607118570e0d2392832c Mon Sep 17 00:00:00 2001 From: Zoey Date: Wed, 3 May 2023 16:30:48 +0200 Subject: [PATCH 1/4] optimze elastic Dockerfile Signed-off-by: Zoey --- Containers/fulltextsearch/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Containers/fulltextsearch/Dockerfile b/Containers/fulltextsearch/Dockerfile index d0d98c45..d592bbc6 100644 --- a/Containers/fulltextsearch/Dockerfile +++ b/Containers/fulltextsearch/Dockerfile @@ -1,15 +1,15 @@ # Probably from here https://github.com/elastic/elasticsearch/blob/main/distribution/docker/src/docker/Dockerfile -FROM elasticsearch:7.17.10 - -RUN elasticsearch-plugin install --batch ingest-attachment +FROM elasticsearch:7.17.9 +ARG DEBIAN_FRONTEND=noninteractive RUN set -ex; \ \ apt-get update; \ apt-get install -y --no-install-recommends \ tzdata \ ; \ - rm -rf /var/lib/apt/lists/* + rm -rf /var/lib/apt/lists/*; \ + elasticsearch-plugin install --batch ingest-attachment HEALTHCHECK CMD nc -z localhost 9200 || exit 1 LABEL com.centurylinklabs.watchtower.monitor-only="true" From 85ac995907bf8e9c000efe7d656760b199ed783a Mon Sep 17 00:00:00 2001 From: Zoey Date: Wed, 3 May 2023 16:57:57 +0200 Subject: [PATCH 2/4] undo version overwritte Signed-off-by: Zoey --- Containers/fulltextsearch/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containers/fulltextsearch/Dockerfile b/Containers/fulltextsearch/Dockerfile index d592bbc6..034e686e 100644 --- a/Containers/fulltextsearch/Dockerfile +++ b/Containers/fulltextsearch/Dockerfile @@ -1,5 +1,5 @@ # Probably from here https://github.com/elastic/elasticsearch/blob/main/distribution/docker/src/docker/Dockerfile -FROM elasticsearch:7.17.9 +FROM elasticsearch:7.17.10 ARG DEBIAN_FRONTEND=noninteractive RUN set -ex; \ From 669555289caf203533e13545c4448a9b8d9ad323 Mon Sep 17 00:00:00 2001 From: Zoey Date: Wed, 3 May 2023 17:50:23 +0200 Subject: [PATCH 3/4] do not use ARG (1/2) Co-authored-by: Simon L. Signed-off-by: Zoey --- Containers/fulltextsearch/Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Containers/fulltextsearch/Dockerfile b/Containers/fulltextsearch/Dockerfile index 034e686e..baef5272 100644 --- a/Containers/fulltextsearch/Dockerfile +++ b/Containers/fulltextsearch/Dockerfile @@ -1,7 +1,6 @@ # Probably from here https://github.com/elastic/elasticsearch/blob/main/distribution/docker/src/docker/Dockerfile FROM elasticsearch:7.17.10 -ARG DEBIAN_FRONTEND=noninteractive RUN set -ex; \ \ apt-get update; \ From 73286c558ca9e4874e04be3a7404dada8405e15b Mon Sep 17 00:00:00 2001 From: Zoey Date: Wed, 3 May 2023 17:50:33 +0200 Subject: [PATCH 4/4] do not use ARG (2/2) Co-authored-by: Simon L. Signed-off-by: Zoey --- Containers/fulltextsearch/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Containers/fulltextsearch/Dockerfile b/Containers/fulltextsearch/Dockerfile index baef5272..01c0ff29 100644 --- a/Containers/fulltextsearch/Dockerfile +++ b/Containers/fulltextsearch/Dockerfile @@ -3,6 +3,7 @@ FROM elasticsearch:7.17.10 RUN set -ex; \ \ + export DEBIAN_FRONTEND=noninteractive; \ apt-get update; \ apt-get install -y --no-install-recommends \ tzdata \