From 6d7aa1437d52d7f4a241ae755137c9f9c9c5e0dc Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 12 Dec 2023 14:43:46 +0100 Subject: [PATCH] ironbank: enable /usr/bin/tini (#12158) --- packaging/ironbank/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/ironbank/Dockerfile b/packaging/ironbank/Dockerfile index ad597e69fe0..155ac876638 100644 --- a/packaging/ironbank/Dockerfile +++ b/packaging/ironbank/Dockerfile @@ -44,6 +44,9 @@ COPY LICENSE /licenses/elastic-${ELASTIC_PRODUCT} # Add a dumb init process COPY tinit /tinit RUN chmod +x /tinit +# Help with supporting the override in the ECK entrypoint +# TODO: eventually /tinit will be replaced by /usr/bin/tini +RUN ln -s /tinit /usr/bin/tini # Bring in product from the initial stage. COPY --from=prep_files --chown=1000:0 /usr/share/${ELASTIC_PRODUCT} /usr/share/${ELASTIC_PRODUCT} @@ -68,6 +71,7 @@ RUN groupadd --gid 1000 ${ELASTIC_PRODUCT} && useradd --uid 1000 --gid 1000 --ho USER ${ELASTIC_PRODUCT} EXPOSE 8200 +# TODO: eventually /tinit will be replaced by /usr/bin/tini ENTRYPOINT ["/tinit", "--", "/usr/share/apm-server/apm-server"] CMD ["-environment", "container"]