From 910c249e84c8574d9a9557baca7d99c167340853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20GLON?= Date: Thu, 3 Mar 2016 15:24:44 +0100 Subject: [PATCH] Update docker-entrypoint.sh Add scan folder docker-entrypoint-initels.d to extend container before every start up CMD show docker-library/elasticsearch#85 --- docker-entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 09dd9fc..d126e07 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -17,6 +17,10 @@ if [ "$1" = 'elasticsearch' -a "$(id -u)" = '0' ]; then #exec gosu elasticsearch "$BASH_SOURCE" "$@" fi +for f in /docker-entrypoint-initels.d/*; do + echo "$0: running $f"; . "$f"; echo ;; +done + # As argument is not related to elasticsearch, # then assume that user wants to run his own process, # for example a `bash` shell to explore this image