Skip to content

Commit

Permalink
ironbank: enable /usr/bin/tini (#12158)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Dec 12, 2023
1 parent 7664ccd commit 6d7aa14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packaging/ironbank/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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"]

Expand Down

0 comments on commit 6d7aa14

Please sign in to comment.