-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
4 changed files
with
122 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
|
||
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 | ||
|
||
$SCRIPT_PATH/../../parts/b-7.0.x/start_shop.sh -eEE | ||
$SCRIPT_PATH/../../parts/shared/require_twig_components.sh -e"EE" -b"b-7.0.x" | ||
$SCRIPT_PATH/../../parts/shared/require_theme.sh -t"apex" -b"b-7.0.x" | ||
|
||
# Require demodata package | ||
docker compose exec -T \ | ||
php composer config repositories.oxid-esales/oxideshop-demodata-ee \ | ||
--json '{"type":"git", "url":"https://github.com/OXID-eSales/oxideshop_demodata_ee"}' | ||
docker compose exec -T php composer require oxid-esales/oxideshop-demodata-ee:dev-b-7.0.x --no-update | ||
|
||
# Clone Econda Tracking component to dev-packages directory and configure it in composer | ||
git clone https://github.com/OXID-eSales/econda-tracking-component.git --branch=b-7.0.x source/dev-packages/econda-tracking-component | ||
docker compose exec -T \ | ||
php composer config repositories.oxid-esales/econda-tracking-component \ | ||
--json '{"type":"path", "url":"./dev-packages/econda-tracking-component", "options": {"symlink": true}}' | ||
docker compose exec -T php composer require oxid-esales/econda-tracking-component:* --no-update | ||
|
||
# Clone Econda Analytics module to dev-packages directory and configure module in composer | ||
git clone https://github.com/OXID-eSales/personalization-module.git --branch=b-7.0.x source/dev-packages/personalization | ||
docker compose exec -T \ | ||
php composer config repositories.oxid-esales/personalization-module \ | ||
--json '{"type":"path", "url":"./dev-packages/personalization", "options": {"symlink": true}}' | ||
docker compose exec -T php composer require oxid-esales/personalization-module:* --no-update | ||
|
||
# Install all preconfigured dependencies | ||
docker compose exec -T php composer update --no-interaction | ||
|
||
# ensure database, add demodata | ||
$SCRIPT_PATH/../../parts/shared/setup_database.sh | ||
|
||
# activate module, create admin | ||
|
||
docker compose exec -T php bin/oe-console oe:module:activate oepersonalization | ||
|
||
docker compose exec -T php bin/oe-console oe:theme:activate apex | ||
$SCRIPT_PATH/../../parts/shared/create_admin.sh | ||
|
||
echo "Done!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/bin/bash | ||
|
||
# Flags possible: | ||
# -e for shop edition. Possible values: CE/PE/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/node.yml addservice | ||
make file=services/selenium-chrome.yml addservice | ||
|
||
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 | ||
|
||
cp ${SCRIPT_PATH}/../parts/bases/composer.json.base ./source/composer.json | ||
|
||
$SCRIPT_PATH/../parts/shared/require_shop_edition_packages.sh -e"${edition}" -v"dev-b-7.2.x" | ||
$SCRIPT_PATH/../parts/shared/require_twig_components.sh -e"${edition}" -b"b-7.2.x" | ||
$SCRIPT_PATH/../parts/shared/require.sh -n"oxid-esales/developer-tools" -v"dev-b-7.2.x" | ||
$SCRIPT_PATH/../parts/shared/require_theme_dev.sh -t"apex" -b"b-7.2.x" | ||
|
||
$SCRIPT_PATH/../parts/shared/require_demodata_package.sh -e"${edition}" -b"b-7.2.x" | ||
|
||
docker compose exec php composer update --no-interaction | ||
make up | ||
|
||
$SCRIPT_PATH/../parts/shared/setup_database.sh | ||
docker compose exec -T php vendor/bin/oe-console oe:theme:activate apex | ||
|
||
$SCRIPT_PATH/../parts/shared/create_admin.sh | ||
|
||
# Register all related project packages git repositories | ||
mkdir -p .idea; mkdir -p source/.idea; cp "${SCRIPT_PATH}/../parts/bases/vcs.xml.base" .idea/vcs.xml | ||
perl -pi\ | ||
-e 's#</component>#<mapping directory="\$PROJECT_DIR\$/source/vendor/oxid-esales/oxideshop-ce" vcs="Git" />\n </component>#g;'\ | ||
-e 's#</component>#<mapping directory="\$PROJECT_DIR\$/source/vendor/oxid-esales/oxideshop-pe" vcs="Git" />\n </component>#g;'\ | ||
-e 's#</component>#<mapping directory="\$PROJECT_DIR\$/source/vendor/oxid-esales/oxideshop-ee" vcs="Git" />\n </component>#g;'\ | ||
.idea/vcs.xml | ||
cp .idea/vcs.xml source/.idea/vcs.xml; perl -pi -e 's#/source/vendor/#/vendor/#g;' source/.idea/vcs.xml |