├── .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=-1 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=-1 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 core 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 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "yireo/magento2-replace-core", 3 | "description": "Replace core packages from Magento", 4 | "license": "OSL-3.0", 5 | "require": { 6 | "magento/product-community-edition": "2.4.*", 7 | "yireo/magento2-replace-bundled": "^4.2" 8 | }, 9 | "replace": { 10 | "adobe-commerce/os-extensions-metapackage": "*", 11 | "astock/stock-api-libphp": "*", 12 | "magento/adobe-stock-integration": "*", 13 | "magento/module-admin-adobe-ims": "*", 14 | "magento/module-admin-adobe-ims-two-factor-auth": "*", 15 | "magento/module-admin-analytics": "*", 16 | "magento/module-adobe-ims": "*", 17 | "magento/module-adobe-ims-api": "*", 18 | "magento/module-adobe-stock-admin-ui": "*", 19 | "magento/module-adobe-stock-asset": "*", 20 | "magento/module-adobe-stock-asset-api": "*", 21 | "magento/module-adobe-stock-client": "*", 22 | "magento/module-adobe-stock-client-api": "*", 23 | "magento/module-adobe-stock-image": "*", 24 | "magento/module-adobe-stock-image-admin-ui": "*", 25 | "magento/module-adobe-stock-image-api": "*", 26 | "magento/google-shopping-ads": "*", 27 | "magento/module-advanced-pricing-import-export": "*", 28 | "magento/module-amqp": "*", 29 | "magento/module-amqp-store": "*", 30 | "magento/module-analytics": "*", 31 | "magento/module-authorizenet": "*", 32 | "magento/module-authorizenet-acceptjs": "*", 33 | "magento/module-authorizenet-cardinal": "*", 34 | "magento/module-authorizenet-graph-ql": "*", 35 | "magento/module-aws-s3": "*", 36 | "magento/module-bundle-import-export": "*", 37 | "magento/module-catalog-analytics": "*", 38 | "magento/module-catalog-import-export": "*", 39 | "magento/module-catalog-page-builder-analytics": "*", 40 | "magento/module-cardinal-commerce": "*", 41 | "magento/module-cms-page-builder-analytics": "*", 42 | "magento/module-configurable-import-export": "*", 43 | "magento/module-customer-analytics": "*", 44 | "magento/module-customer-finance": "*", 45 | "magento/module-customer-import-export": "*", 46 | "magento/module-cybersource": "*", 47 | "magento/module-dhl": "*", 48 | "magento/module-downloadable-import-export": "*", 49 | "magento/module-eway": "*", 50 | "magento/module-fedex": "*", 51 | "magento/module-google-adwords": "*", 52 | "magento/module-google-analytics": "*", 53 | "magento/module-google-optimizer": "*", 54 | "magento/module-grouped-import-export": "*", 55 | "magento/module-inventory-bundle-import-export": "*", 56 | "magento/module-inventory-import-export": "*", 57 | "magento/module-marketplace": "*", 58 | "magento/module-multishipping": "*", 59 | "magento/module-new-relic-reporting": "*", 60 | "magento/module-page-builder-admin-analytics": "*", 61 | "magento/module-page-builder-analytics": "*", 62 | "magento/module-quote-analytics": "*", 63 | "magento/module-re-captcha-send-friend": "*", 64 | "magento/module-review-analytics": "*", 65 | "magento/module-sales-analytics": "*", 66 | "magento/module-sample-data": "*", 67 | "magento/module-send-friend": "*", 68 | "magento/module-send-friend-graph-ql": "*", 69 | "magento/module-signifyd": "*", 70 | "magento/module-swagger": "*", 71 | "magento/module-swagger-webapi": "*", 72 | "magento/module-swagger-webapi-async": "*", 73 | "magento/module-tax-import-export": "*", 74 | "magento/module-two-factor-auth": "*", 75 | "magento/module-ups": "*", 76 | "magento/module-usps": "*", 77 | "magento/module-version": "*", 78 | "magento/module-wishlist-analytics": "*", 79 | "magento/module-worldpay": "*" 80 | } 81 | } 82 | --------------------------------------------------------------------------------