├── .github └── workflows │ ├── magento-installation.yml │ └── magento_version.txt ├── README.md └── composer.json /.github/workflows/magento-installation.yml: -------------------------------------------------------------------------------- 1 | name: Magento installation 2 | on: [push] 3 | defaults: 4 | run: 5 | shell: bash 6 | jobs: 7 | magento-installation: 8 | name: Magento 2 Test Install 9 | runs-on: ubuntu-latest 10 | container: yireo/magento2base:7.4 11 | services: 12 | es: 13 | image: docker.elastic.co/elasticsearch/elasticsearch:7.8.0 14 | ports: 15 | - 9200:9200 16 | options: -e="discovery.type=single-node" --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=10 17 | mysql: 18 | image: mysql:5.7 19 | env: 20 | MYSQL_ROOT_PASSWORD: root 21 | MYSQL_DATABASE: magento2 22 | ports: 23 | - 3306:3306 24 | options: --tmpfs /tmp:rw --tmpfs /var/lib/mysql:rw --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 25 | steps: 26 | - uses: actions/checkout@v2 27 | - name: Composer preparation 28 | env: 29 | MAGENTO_MARKETPLACE_USERNAME: ${{ secrets.MAGENTO_MARKETPLACE_USERNAME }} 30 | MAGENTO_MARKETPLACE_PASSWORD: ${{ secrets.MAGENTO_MARKETPLACE_PASSWORD }} 31 | COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} 32 | run: | 33 | mkdir -p /tmp/m2 && cd /tmp/m2 34 | composer global config github-oauth.github.com $COMPOSER_TOKEN 35 | composer global config http-basic.repo.magento.com $MAGENTO_MARKETPLACE_USERNAME $MAGENTO_MARKETPLACE_PASSWORD 36 | - name: Creating Magento composer project 37 | run: | 38 | MAGENTO_VERSION=`cat ${GITHUB_WORKSPACE}/.github/workflows/magento_version.txt` 39 | test -z "$MAGENTO_VERSION" && exit 1 40 | composer create-project --repository=https://repo.magento.com/ magento/project-community-edition:${MAGENTO_VERSION} /tmp/m2 --no-install --no-interaction --no-progress 41 | - name: Setup local composer package 42 | env: 43 | COMPOSER_NAME: ${{ secrets.COMPOSER_NAME }} 44 | run: | 45 | MAGENTO_VERSION=`cat ${GITHUB_WORKSPACE}/.github/workflows/magento_version.txt` 46 | BRANCH=magento-`echo $MAGENTO_VERSION | cut -f'1-2' -d\.` 47 | test -z "$MAGENTO_VERSION" && exit 1 48 | cd /tmp/m2 49 | ln -s ${GITHUB_WORKSPACE} local-source 50 | composer config preferred-install source 51 | composer config minimum-stability dev 52 | composer config repositories.remote-source vcs git@github.com:${COMPOSER_NAME}.git 53 | composer config repositories.local-source path local-source/ 54 | echo "Installing ${COMPOSER_NAME}:dev-${BRANCH}" 55 | composer require ${COMPOSER_NAME}:dev-${BRANCH} --no-update --no-interaction 56 | - name: Composer installation 57 | run: | 58 | cd /tmp/m2 59 | COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-source --no-interaction --no-progress --no-suggest --no-dev 60 | - name: Magento installation 61 | run: | 62 | cd /tmp/m2 63 | php -d memory_limit=2G bin/magento setup:install --base-url=http://magento2.test/ \ 64 | --db-host=mysql --db-name=magento2 \ 65 | --db-user=root --db-password=root \ 66 | --admin-firstname=John --admin-lastname=Doe \ 67 | --admin-email=johndoe@example.com \ 68 | --admin-user=johndoe --admin-password=johndoe!1234 \ 69 | --backend-frontname=admin --language=en_US \ 70 | --currency=USD --timezone=Europe/Amsterdam --cleanup-database \ 71 | --sales-order-increment-prefix="ORD$" --session-save=db \ 72 | --use-rewrites=1 --elasticsearch-host=es 73 | - name: Magento compilation 74 | run: | 75 | cd /tmp/m2 76 | php -d memory_limit=2G bin/magento setup:di:compile 77 | - name: Additional checks 78 | run: | 79 | cd /tmp/m2 80 | bin/magento module:status | sort 81 | 82 | -------------------------------------------------------------------------------- /.github/workflows/magento_version.txt: -------------------------------------------------------------------------------- 1 | 2.4.3 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Magento 2 removal of optional bundled 3rd party modules 2 | 3 | This repository contains a composer meta-package that removes optional modules. To install this package, use the instructions on the repository [`yireo/magento2-replace-tools`.](https://github.com/yireo/magento2-replace-tools) 4 | 5 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "yireo/magento2-replace-bundled", 3 | "description": "Replace bundled third party packages from Magento", 4 | "require": { 5 | "magento/product-community-edition": "2.4.*" 6 | }, 7 | "replace": { 8 | "amzn/amazon-pay-and-login-magento-2-module": "*", 9 | "amzn/amazon-pay-and-login-with-amazon-core-module": "*", 10 | "amzn/amazon-pay-module": "*", 11 | "amzn/amazon-pay-sdk-php": "*", 12 | "amzn/login-with-amazon-module": "*", 13 | "magento/module-braintree": "*", 14 | "magento/module-braintree-graph-ql": "*", 15 | "braintree/braintree_php": "*", 16 | "braintree/braintree": "*", 17 | "dotmailer/dotmailer-magento2-extension": "*", 18 | "dotmailer/dotmailer-magento2-extension-package": "*", 19 | "dotmailer/dotmailer-magento2-extension-enterprise": "*", 20 | "dotmailer/dotmailer-magento2-extension-enterprise-package": "*", 21 | "dotmailer/dotmailer-magento2-extension-chat": "*", 22 | "dotmailer/dotmailer-magento2-extension-b2b": "*", 23 | "dotmailer/dotmailer-magento2-extension-sms": "*", 24 | "klarna/m2-payments": "*", 25 | "klarna/module-core": "*", 26 | "klarna/module-kp": "*", 27 | "klarna/module-kp-graph-ql": "*", 28 | "klarna/module-ordermanagement": "*", 29 | "klarna/module-onsitemessaging": "*", 30 | "paypal/module-braintree": "*", 31 | "paypal/module-braintree-core": "*", 32 | "paypal/module-braintree-customer-balance": "*", 33 | "paypal/module-braintree-gift-card-account": "*", 34 | "paypal/module-braintree-gift-wrapping": "*", 35 | "paypal/module-braintree-graph-ql": "*", 36 | "temando/module-shipping": "*", 37 | "temando/module-shipping-m2": "*", 38 | "vertex/product-magento-module": "*", 39 | "vertex/module-tax": "*", 40 | "vertex/sdk": "*", 41 | "vertexinc/module-tax-staging": "*", 42 | "vertexinc/product-magento-module": "*", 43 | "vertexinc/product-magento-module-commerce": "*", 44 | "vertex/module-address-validation": "*", 45 | "vertex/module-tax-staging": "*", 46 | "yotpo/magento2-module-yotpo-reviews": "*", 47 | "yotpo/magento2-module-yotpo-reviews-bundle": "*" 48 | } 49 | } 50 | --------------------------------------------------------------------------------