Skip to content

Commit d5215f8

Browse files
donoghucywangd
authored andcommitted
Provide default entrypoint for the cloud-ess-fips image (elastic#127788)
In order to match the pattern for the other Cloud ESS image, provide a default entrypoint to the container that points to the configured docker entrypoint. This is described in https://github.com/elastic/elasticsearch/blob/1a1763c591c4c32bf66f0df3bce2040e8f19a1a2/distribution/docker/README.md?plain=1#L16-L19 and implemented in https://github.com/elastic/elasticsearch/blob/1a1763c591c4c32bf66f0df3bce2040e8f19a1a2/distribution/docker/src/docker/Dockerfile.ess#L37-L40
1 parent a07154e commit d5215f8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

distribution/docker/src/docker/Dockerfile.ess-fips

+5
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,11 @@ LABEL name="Elasticsearch" \\
208208

209209
RUN mkdir /licenses && ln LICENSE.txt /licenses/LICENSE
210210

211+
# Generate a stub command that will be overwritten at runtime
212+
RUN mkdir /app && \\
213+
echo -e '#!/bin/bash\\nexec /usr/local/bin/docker-entrypoint.sh eswrapper' > /app/elasticsearch.sh && \\
214+
chmod 0555 /app/elasticsearch.sh
215+
211216
ENTRYPOINT ["/sbin/tini", "--"]
212217
CMD ["/app/elasticsearch.sh"]
213218

0 commit comments

Comments
 (0)