From 0037ab6e73fe97a971e24b65c2954c8103172d4a Mon Sep 17 00:00:00 2001 From: vcorre Date: Thu, 19 Dec 2024 15:27:49 +0100 Subject: [PATCH] Add Elasticsearch index creation and population to entrypoint This update ensures the Elasticsearch indexes are created and populated during container startup. It improves initial setup automation by running relevant Artisan commands to handle data indexing and predb population seamlessly. --- docker-entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 57dbb588a..51c2fa2ce 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -54,6 +54,9 @@ if [ "$1" != 'php' ] && [ "$1" != 'sh' ]; then echo "Setting permissions on storage and bootstrap/cache directories..." chmod -R 775 storage bootstrap/cache chown -R www-data:www-data storage bootstrap/cache + php artisan nntmux:create-es-indexes + php artisan nntmux:populate --elastic --releases + php artisan nntmux:populate --elastic --predb fi # Run the PHP entry point with arguments