Skip to content

Commit

Permalink
Add GQL base b-7.3.x root install recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
hkreuter committed Jan 7, 2025
1 parent 8d29a65 commit c417195
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 88 deletions.
71 changes: 71 additions & 0 deletions module-graphql/b-7.3.x-base-root.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#!/bin/bash
# Flags possible:
# -e for shop edition. Possible values: CE/EE

edition='EE'
while getopts e: flag; do
case "${flag}" in
e) edition=${OPTARG} ;;
*) ;;
esac
done

SCRIPT_PATH=$(dirname ${BASH_SOURCE[0]})

cd $SCRIPT_PATH/../../../ || exit

# Prepare services configuration
make setup
make addbasicservices
make file=services/adminer.yml addservice
make file=services/selenium-chrome.yml addservice

# Configure containers
perl -pi\
-e 's#error_reporting = .*#error_reporting = E_ALL ^ E_WARNING ^ E_DEPRECATED#g;'\
containers/php/custom.ini

perl -pi\
-e 's#/var/www/#/var/www/source/#g;'\
containers/httpd/project.conf

perl -pi\
-e 's#PHP_VERSION=.*#PHP_VERSION=8.2#g;'\
.env

mkdir source
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
make up

docker compose exec php composer update --no-interaction

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

docker compose exec -T php vendor/bin/oe-console oe:module:activate oe_graphql_base
docker compose exec -T php vendor/bin/oe-console oe:theme:activate apex

$SCRIPT_PATH/../parts/shared/create_admin.sh
88 changes: 0 additions & 88 deletions module-graphql/b-7.3.x-components-graphql.sh

This file was deleted.

0 comments on commit c417195

Please sign in to comment.