From 9c2cff7d12aa8d5c15a0899f04a52ebabcd321f8 Mon Sep 17 00:00:00 2001 From: hkreuter Date: Tue, 7 Jan 2025 17:24:03 +0100 Subject: [PATCH] Update GQL base b-7.3.x root install recipe --- module-graphql/b-7.3.x-base-root.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/module-graphql/b-7.3.x-base-root.sh b/module-graphql/b-7.3.x-base-root.sh index c4afc44..dc45089 100755 --- a/module-graphql/b-7.3.x-base-root.sh +++ b/module-graphql/b-7.3.x-base-root.sh @@ -39,18 +39,28 @@ docker compose up --build -d php git clone https://github.com/OXID-eSales/graphql-base-module ./source -b b-7.3.x $SCRIPT_PATH/../parts/shared/require_shop_edition_packages.sh -e"${edition}" -v"dev-b-7.3.x" -$SCRIPT_PATH/../parts/shared/require_compilation.sh -e"${edition}" -v"dev-b-7.3.x" $SCRIPT_PATH/../parts/shared/require_twig_components.sh -e"${edition}" -b"b-7.3.x" $SCRIPT_PATH/../parts/shared/require.sh -n"oxid-esales/developer-tools" -v"dev-b-7.3.x" $SCRIPT_PATH/../parts/shared/require.sh -n"oxid-esales/oxideshop-doctrine-migration-wrapper" -v"dev-b-7.3.x" $SCRIPT_PATH/../parts/shared/require_theme_dev.sh -t"apex" -b"b-7.3.x" -$SCRIPT_PATH/../parts/shared/require_demodata_package.sh -e"${edition}" -b"b-7.3.x" git clone https://github.com/OXID-eSales/oxapi-documentation source/documentation/oxapi-documentation make docpath=./source/documentation/oxapi-documentation addsphinxservice docker-compose exec -T -w /var/www php \ composer config allow-plugins.oxid-esales/oxideshop-composer-plugin true + +perl -pi -e ' + BEGIN { + $inserted = 0; + $autoload_dev = qq( "autoload-dev": {\n "psr-4": {\n "OxidEsales\\\\EshopCommunity\\\\Tests\\\\": "./vendor/oxid-esales/oxideshop-ce/tests"\n }\n },\n); + } + if (!$inserted && $_ =~ /"repositories":/) { + $_ = $autoload_dev . $_; + $inserted = 1; + } +' source/composer.json + make up docker compose exec php composer update --no-interaction @@ -59,8 +69,6 @@ perl -pi\ -e 'print "SetEnvIf Authorization \"(.*)\" HTTP_AUTHORIZATION=\$1\n\n" if $. == 1'\ source/source/.htaccess -make up - docker compose exec -T php vendor/bin/oe-console oe:module:install ./ $SCRIPT_PATH/../parts/shared/setup_database.sh --no-demodata