Skip to content

Commit be7d4ed

Browse files
authored
IBX-10495: [Backport] Adjusted prepare project script for use with ES 8 (4.6) (#123)
* IBX-10495: [Backport] Relaxed pattern for put index template step (4.6) * Added ibexa/elasticsearch8 opt-in package to Node 20 setup * [tmp] branch from ES8 PR * Revert "[tmp] branch from ES8 PR" This reverts commit f3dbd63.
1 parent 0992f8e commit be7d4ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/4.6.x-dev/prepare_project_edition.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ if [[ "$PROJECT_EDITION" != "oss" ]]; then
124124
docker exec install_dependencies composer require ibexa/product-catalog-date-time-attribute:$PROJECT_VERSION --no-scripts --ansi --no-update
125125
docker exec install_dependencies composer require ibexa/product-catalog-symbol-attribute:$PROJECT_VERSION --no-scripts --ansi --no-update
126126
docker exec install_dependencies composer require ibexa/integrated-help:$PROJECT_VERSION --no-scripts --ansi --no-update
127+
if [[ "$PHP_IMAGE" == *"node20"* ]]; then
128+
docker exec install_dependencies composer require ibexa/elasticsearch8:$PROJECT_VERSION --no-scripts --ansi --no-update
129+
fi
127130
fi
128131
if [[ "$PROJECT_EDITION" == "commerce" ]]; then
129132
docker exec install_dependencies composer require ibexa/discounts:$PROJECT_VERSION ibexa/discounts-codes:$PROJECT_VERSION --no-scripts --ansi --no-update
@@ -185,7 +188,7 @@ echo '> Clear cache & generate assets'
185188
docker compose --env-file=.env exec -T --user www-data app sh -c "composer run post-install-cmd --ansi"
186189

187190
echo '> Install data'
188-
if [[ "$COMPOSE_FILE" == *"elastic.yml"* ]]; then
191+
if [[ "$COMPOSE_FILE" == *"elastic"*.yml ]]; then
189192
docker compose --env-file=.env exec -T --user www-data app sh -c "php bin/console ibexa:elasticsearch:put-index-template"
190193
fi
191194
docker compose --env-file=.env exec -T --user www-data app sh -c "php /scripts/wait_for_db.php; php bin/console ibexa:install --skip-indexing"

0 commit comments

Comments
 (0)