Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bitExpert/magerun2-list-api-endpoints
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.2.0
Choose a base ref
...
head repository: bitExpert/magerun2-list-api-endpoints
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Mar 15, 2021

  1. Bump bitexpert/phpstan-magento from 0.6.0 to 0.7.0

    Bumps [bitexpert/phpstan-magento](https://github.com/bitExpert/phpstan-magento) from 0.6.0 to 0.7.0.
    - [Release notes](https://github.com/bitExpert/phpstan-magento/releases)
    - [Changelog](https://github.com/bitExpert/phpstan-magento/blob/master/CHANGELOG.md)
    - [Commits](bitExpert/phpstan-magento@v0.6.0...v0.7.0)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Mar 15, 2021
    Copy the full SHA
    db64cad View commit details

Commits on Mar 18, 2021

  1. Bump phpunit/phpunit from 9.5.2 to 9.5.3

    Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.5.2 to 9.5.3.
    - [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
    - [Changelog](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-9.5.md)
    - [Commits](sebastianbergmann/phpunit@9.5.2...9.5.3)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Mar 18, 2021
    Copy the full SHA
    52b18f6 View commit details
  2. Merge pull request #53 from bitExpert/dependabot/composer/bitexpert/p…

    …hpstan-magento-0.7.0
    
    Bump bitexpert/phpstan-magento from 0.6.0 to 0.7.0
    shochdoerfer authored Mar 18, 2021
    Copy the full SHA
    72eb56f View commit details
  3. Merge pull request #54 from bitExpert/dependabot/composer/phpunit/php…

    …unit-9.5.3
    
    Bump phpunit/phpunit from 9.5.2 to 9.5.3
    shochdoerfer authored Mar 18, 2021
    Copy the full SHA
    7e927c1 View commit details

Commits on Mar 24, 2021

  1. Bump phpunit/phpunit from 9.5.3 to 9.5.4

    Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.5.3 to 9.5.4.
    - [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
    - [Changelog](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-9.5.md)
    - [Commits](sebastianbergmann/phpunit@9.5.3...9.5.4)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Mar 24, 2021
    Copy the full SHA
    0fa2e7e View commit details

Commits on Mar 31, 2021

  1. Bump captainhook/captainhook from 5.4.5 to 5.5.2

    Bumps [captainhook/captainhook](https://github.com/captainhookphp/captainhook) from 5.4.5 to 5.5.2.
    - [Release notes](https://github.com/captainhookphp/captainhook/releases)
    - [Commits](https://github.com/captainhookphp/captainhook/commits)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Mar 31, 2021
    Copy the full SHA
    51a6273 View commit details

Commits on Apr 2, 2021

  1. Bump infection/infection from 0.21.4 to 0.21.5

    Bumps [infection/infection](https://github.com/infection/infection) from 0.21.4 to 0.21.5.
    - [Release notes](https://github.com/infection/infection/releases)
    - [Changelog](https://github.com/infection/infection/blob/master/CHANGELOG.md)
    - [Commits](infection/infection@0.21.4...0.21.5)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Apr 2, 2021
    Copy the full SHA
    3488240 View commit details

Commits on Apr 5, 2021

  1. Bump phpstan/phpstan from 0.12.81 to 0.12.83

    Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan) from 0.12.81 to 0.12.83.
    - [Release notes](https://github.com/phpstan/phpstan/releases)
    - [Commits](phpstan/phpstan@0.12.81...0.12.83)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Apr 5, 2021
    Copy the full SHA
    f3f0058 View commit details

Commits on Apr 9, 2021

  1. Bump squizlabs/php_codesniffer from 3.5.8 to 3.6.0

    Bumps [squizlabs/php_codesniffer](https://github.com/squizlabs/PHP_CodeSniffer) from 3.5.8 to 3.6.0.
    - [Release notes](https://github.com/squizlabs/PHP_CodeSniffer/releases)
    - [Commits](squizlabs/PHP_CodeSniffer@3.5.8...3.6.0)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Apr 9, 2021
    Copy the full SHA
    b20687b View commit details

Commits on Apr 10, 2021

  1. Merge pull request #57 from bitExpert/dependabot/composer/phpunit/php…

    …unit-9.5.4
    
    Bump phpunit/phpunit from 9.5.3 to 9.5.4
    shochdoerfer authored Apr 10, 2021
    Copy the full SHA
    8980b2e View commit details
  2. Merge pull request #59 from bitExpert/dependabot/composer/captainhook…

    …/captainhook-5.5.2
    
    Bump captainhook/captainhook from 5.4.5 to 5.5.2
    shochdoerfer authored Apr 10, 2021
    Copy the full SHA
    671d109 View commit details
  3. Merge pull request #60 from bitExpert/dependabot/composer/infection/i…

    …nfection-0.21.5
    
    Bump infection/infection from 0.21.4 to 0.21.5
    shochdoerfer authored Apr 10, 2021
    Copy the full SHA
    62bd02a View commit details
  4. Merge pull request #61 from bitExpert/dependabot/composer/phpstan/php…

    …stan-0.12.83
    
    Bump phpstan/phpstan from 0.12.81 to 0.12.83
    shochdoerfer authored Apr 10, 2021
    Copy the full SHA
    bc8ddd2 View commit details
  5. Merge pull request #62 from bitExpert/dependabot/composer/squizlabs/p…

    …hp_codesniffer-3.6.0
    
    Bump squizlabs/php_codesniffer from 3.5.8 to 3.6.0
    shochdoerfer authored Apr 10, 2021
    Copy the full SHA
    90aaa90 View commit details

Commits on Apr 28, 2021

  1. [Security] Bump composer/composer from 1.10.20 to 1.10.22

    Bumps [composer/composer](https://github.com/composer/composer) from 1.10.20 to 1.10.22. **This update includes a security fix.**
    - [Release notes](https://github.com/composer/composer/releases)
    - [Changelog](https://github.com/composer/composer/blob/master/CHANGELOG.md)
    - [Commits](composer/composer@1.10.20...1.10.22)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Apr 28, 2021
    Copy the full SHA
    0a23945 View commit details

Commits on Apr 29, 2021

  1. Copy the full SHA
    fcbb70d View commit details

Commits on May 18, 2021

  1. Bump phpstan/phpstan from 0.12.83 to 0.12.88

    Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan) from 0.12.83 to 0.12.88.
    - [Release notes](https://github.com/phpstan/phpstan/releases)
    - [Commits](phpstan/phpstan@0.12.83...0.12.88)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored May 18, 2021
    Copy the full SHA
    86bcb6e View commit details

Commits on May 26, 2021

  1. Bump captainhook/plugin-composer from 5.2.4 to 5.3.1

    Bumps [captainhook/plugin-composer](https://github.com/captainhookphp/plugin-composer) from 5.2.4 to 5.3.1.
    - [Release notes](https://github.com/captainhookphp/plugin-composer/releases)
    - [Commits](captainhookphp/plugin-composer@5.2.4...5.3.1)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored May 26, 2021
    Copy the full SHA
    121017e View commit details
  2. Bump captainhook/captainhook from 5.5.2 to 5.10.1

    Bumps [captainhook/captainhook](https://github.com/captainhookphp/captainhook) from 5.5.2 to 5.10.1.
    - [Release notes](https://github.com/captainhookphp/captainhook/releases)
    - [Commits](https://github.com/captainhookphp/captainhook/commits/5.10.1)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored May 26, 2021
    Copy the full SHA
    708ed1d View commit details

Commits on May 29, 2021

  1. Merge pull request #68 from bitExpert/dependabot/composer/composer/co…

    …mposer-1.10.22
    
    [Security] Bump composer/composer from 1.10.20 to 1.10.22
    shochdoerfer authored May 29, 2021
    Copy the full SHA
    d6911fa View commit details
  2. Merge pull request #71 from bitExpert/dependabot/add-v2-config-file

    Upgrade to GitHub-native Dependabot
    shochdoerfer authored May 29, 2021
    Copy the full SHA
    9aa48fa View commit details
  3. Merge pull request #77 from bitExpert/dependabot/composer/phpstan/php…

    …stan-0.12.88
    
    Bump phpstan/phpstan from 0.12.83 to 0.12.88
    shochdoerfer authored May 29, 2021
    Copy the full SHA
    daafe2d View commit details
  4. Merge pull request #78 from bitExpert/dependabot/composer/captainhook…

    …/plugin-composer-5.3.1
    
    Bump captainhook/plugin-composer from 5.2.4 to 5.3.1
    shochdoerfer authored May 29, 2021
    Copy the full SHA
    c30f936 View commit details
  5. Merge pull request #79 from bitExpert/dependabot/composer/captainhook…

    …/captainhook-5.10.1
    
    Bump captainhook/captainhook from 5.5.2 to 5.10.1
    shochdoerfer authored May 29, 2021
    Copy the full SHA
    0b75391 View commit details
  6. Copy the full SHA
    abd6cc0 View commit details
  7. Merge pull request #80 from shochdoerfer/feature/m2.4.2-p1

    Add 2.4.2-p1 compatibility
    shochdoerfer authored May 29, 2021
    Copy the full SHA
    e4692a7 View commit details
  8. Copy the full SHA
    cfd8264 View commit details
  9. Merge pull request #85 from shochdoerfer/feature/composer_dependencies

    Upgrade Composer dependencies
    shochdoerfer authored May 29, 2021
    Copy the full SHA
    8d943b4 View commit details

Commits on Jul 5, 2021

  1. Bump phpstan/phpstan-strict-rules from 0.12.9 to 0.12.10

    Bumps [phpstan/phpstan-strict-rules](https://github.com/phpstan/phpstan-strict-rules) from 0.12.9 to 0.12.10.
    - [Release notes](https://github.com/phpstan/phpstan-strict-rules/releases)
    - [Commits](phpstan/phpstan-strict-rules@0.12.9...0.12.10)
    
    ---
    updated-dependencies:
    - dependency-name: phpstan/phpstan-strict-rules
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jul 5, 2021
    Copy the full SHA
    be8b904 View commit details

Commits on Oct 14, 2021

  1. Update versions bin and env from upstream

    fmarczewski committed Oct 14, 2021
    Copy the full SHA
    bd14c10 View commit details

Commits on Oct 15, 2021

  1. Merge pull request #92 from bitExpert/dependabot/composer/phpstan/php…

    …stan-strict-rules-0.12.10
    
    Bump phpstan/phpstan-strict-rules from 0.12.9 to 0.12.10
    shochdoerfer authored Oct 15, 2021
    Copy the full SHA
    f175cd6 View commit details
  2. Bump bitexpert/phpstan-magento from 0.7.0 to 0.9.0

    Bumps [bitexpert/phpstan-magento](https://github.com/bitExpert/phpstan-magento) from 0.7.0 to 0.9.0.
    - [Release notes](https://github.com/bitExpert/phpstan-magento/releases)
    - [Changelog](https://github.com/bitExpert/phpstan-magento/blob/master/CHANGELOG.md)
    - [Commits](bitExpert/phpstan-magento@v0.7.0...v0.9.0)
    
    ---
    updated-dependencies:
    - dependency-name: bitexpert/phpstan-magento
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Oct 15, 2021
    Copy the full SHA
    9a4da01 View commit details
  3. Bump phpstan/phpstan from 0.12.88 to 0.12.99

    Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan) from 0.12.88 to 0.12.99.
    - [Release notes](https://github.com/phpstan/phpstan/releases)
    - [Commits](phpstan/phpstan@0.12.88...0.12.99)
    
    ---
    updated-dependencies:
    - dependency-name: phpstan/phpstan
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Oct 15, 2021
    Copy the full SHA
    856f81f View commit details
  4. Merge pull request #99 from bitExpert/dependabot/composer/bitexpert/p…

    …hpstan-magento-0.9.0
    
    Bump bitexpert/phpstan-magento from 0.7.0 to 0.9.0
    shochdoerfer authored Oct 15, 2021
    Copy the full SHA
    e3c8a62 View commit details
  5. Bump captainhook/captainhook from 5.10.1 to 5.10.4

    Bumps [captainhook/captainhook](https://github.com/captainhookphp/captainhook) from 5.10.1 to 5.10.4.
    - [Release notes](https://github.com/captainhookphp/captainhook/releases)
    - [Commits](captainhookphp/captainhook@5.10.1...5.10.4)
    
    ---
    updated-dependencies:
    - dependency-name: captainhook/captainhook
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Oct 15, 2021
    Copy the full SHA
    643bcc9 View commit details
  6. Bump phpunit/phpunit from 9.5.4 to 9.5.10

    Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.5.4 to 9.5.10.
    - [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
    - [Changelog](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-9.5.md)
    - [Commits](sebastianbergmann/phpunit@9.5.4...9.5.10)
    
    ---
    updated-dependencies:
    - dependency-name: phpunit/phpunit
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Oct 15, 2021
    Copy the full SHA
    3dc7237 View commit details
  7. Bump captainhook/plugin-composer from 5.3.1 to 5.3.2

    Bumps [captainhook/plugin-composer](https://github.com/captainhookphp/plugin-composer) from 5.3.1 to 5.3.2.
    - [Release notes](https://github.com/captainhookphp/plugin-composer/releases)
    - [Commits](captainhookphp/plugin-composer@5.3.1...5.3.2)
    
    ---
    updated-dependencies:
    - dependency-name: captainhook/plugin-composer
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Oct 15, 2021
    Copy the full SHA
    d2bfa48 View commit details
  8. Bump composer/composer from 1.10.22 to 1.10.23

    Bumps [composer/composer](https://github.com/composer/composer) from 1.10.22 to 1.10.23.
    - [Release notes](https://github.com/composer/composer/releases)
    - [Changelog](https://github.com/composer/composer/blob/main/CHANGELOG.md)
    - [Commits](composer/composer@1.10.22...1.10.23)
    
    ---
    updated-dependencies:
    - dependency-name: composer/composer
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Oct 15, 2021
    Copy the full SHA
    4eea0e4 View commit details
  9. Merge pull request #107 from bitExpert/dependabot/composer/phpstan/ph…

    …pstan-0.12.99
    
    Bump phpstan/phpstan from 0.12.88 to 0.12.99
    shochdoerfer authored Oct 15, 2021
    Copy the full SHA
    b956366 View commit details
  10. Merge pull request #109 from bitExpert/dependabot/composer/phpunit/ph…

    …punit-9.5.10
    
    Bump phpunit/phpunit from 9.5.4 to 9.5.10
    shochdoerfer authored Oct 15, 2021
    Copy the full SHA
    4105a63 View commit details
  11. Bump squizlabs/php_codesniffer from 3.6.0 to 3.6.1

    Bumps [squizlabs/php_codesniffer](https://github.com/squizlabs/PHP_CodeSniffer) from 3.6.0 to 3.6.1.
    - [Release notes](https://github.com/squizlabs/PHP_CodeSniffer/releases)
    - [Commits](squizlabs/PHP_CodeSniffer@3.6.0...3.6.1)
    
    ---
    updated-dependencies:
    - dependency-name: squizlabs/php_codesniffer
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Oct 15, 2021
    Copy the full SHA
    2cbcec4 View commit details
  12. Merge pull request #110 from bitExpert/dependabot/composer/captainhoo…

    …k/captainhook-5.10.4
    
    Bump captainhook/captainhook from 5.10.1 to 5.10.4
    shochdoerfer authored Oct 15, 2021
    Copy the full SHA
    1547bc6 View commit details
  13. Bump magento/module-webapi from 100.4.1 to 100.4.2

    Bumps magento/module-webapi from 100.4.1 to 100.4.2.
    
    ---
    updated-dependencies:
    - dependency-name: magento/module-webapi
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Oct 15, 2021
    Copy the full SHA
    18afb89 View commit details
  14. Merge pull request #111 from bitExpert/dependabot/composer/squizlabs/…

    …php_codesniffer-3.6.1
    
    Bump squizlabs/php_codesniffer from 3.6.0 to 3.6.1
    shochdoerfer authored Oct 15, 2021
    Copy the full SHA
    d27608c View commit details
  15. Merge pull request #114 from bitExpert/dependabot/composer/captainhoo…

    …k/plugin-composer-5.3.2
    
    Bump captainhook/plugin-composer from 5.3.1 to 5.3.2
    shochdoerfer authored Oct 15, 2021
    Copy the full SHA
    4ee86bb View commit details
  16. Merge pull request #115 from bitExpert/dependabot/composer/composer/c…

    …omposer-1.10.23
    
    Bump composer/composer from 1.10.22 to 1.10.23
    shochdoerfer authored Oct 15, 2021
    Copy the full SHA
    01b758d View commit details
  17. Merge pull request #100 from bitExpert/dependabot/composer/magento/mo…

    …dule-webapi-100.4.2
    
    Bump magento/module-webapi from 100.4.1 to 100.4.2
    shochdoerfer authored Oct 15, 2021
    Copy the full SHA
    6d1a19b View commit details
  18. Merge pull request #113 from fmarczew/hacktoberfest/update-version

    Update versions bin and env from upstream
    shochdoerfer authored Oct 15, 2021
    Copy the full SHA
    f8d5ca9 View commit details

Commits on Oct 18, 2021

  1. Bump phpstan/phpstan-strict-rules from 0.12.10 to 0.12.11

    Bumps [phpstan/phpstan-strict-rules](https://github.com/phpstan/phpstan-strict-rules) from 0.12.10 to 0.12.11.
    - [Release notes](https://github.com/phpstan/phpstan-strict-rules/releases)
    - [Commits](phpstan/phpstan-strict-rules@0.12.10...0.12.11)
    
    ---
    updated-dependencies:
    - dependency-name: phpstan/phpstan-strict-rules
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Oct 18, 2021
    Copy the full SHA
    2368698 View commit details
  2. Merge pull request #116 from bitExpert/dependabot/composer/phpstan/ph…

    …pstan-strict-rules-0.12.11
    
    Bump phpstan/phpstan-strict-rules from 0.12.10 to 0.12.11
    shochdoerfer authored Oct 18, 2021
    Copy the full SHA
    a6f900b View commit details
Showing with 1,163 additions and 1,273 deletions.
  1. +4 −0 README.md
  2. +2 −0 bin/cache-clean
  3. +3 −0 bin/cliq
  4. +15 −0 bin/copyfromcontainer
  5. +19 −0 bin/copytocontainer
  6. +7 −0 bin/dev-test-run
  7. +7 −0 bin/devtools-cli-check
  8. +8 −26 bin/download
  9. +3 −3 bin/fixowns
  10. +2 −2 bin/fixperms
  11. +4 −2 bin/mysql
  12. +7 −0 bin/n98-magerun2
  13. +2 −0 bin/pwa-studio
  14. +1 −1 bin/remove
  15. +6 −6 bin/removevolumes
  16. +65 −50 bin/setup
  17. +31 −0 bin/setup-composer-auth
  18. +43 −0 bin/setup-grunt
  19. +22 −0 bin/setup-integration-tests
  20. +10 −0 bin/setup-pwa-studio
  21. +2 −2 bin/setup-ssl-ca
  22. +22 −18 bin/start
  23. +2 −1 bin/update
  24. +52 −11 bin/xdebug
  25. +11 −7 composer.json
  26. +743 −1,132 composer.lock
  27. +27 −8 docker-compose.dev.yml
  28. +28 −4 docker-compose.yml
  29. +6 −0 env/db.env
  30. +9 −0 env/magento.env
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
> ## Repository abandoned 2021-11-06
>
> This package is abandoned. Use [hivecommerce/magerun2-list-api-endpoints](https://github.com/hivecommerce/magerun2-list-api-endpoints) instead!
# magerun2 plugin: List all API endpoints

This is a plugin for [netz98 Magerun2](https://github.com/netz98/n98-magerun2) to list all API endpoints.
2 changes: 2 additions & 0 deletions bin/cache-clean
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
bin/cli /var/www/.composer-global/vendor/bin/cache-clean.js "$@"
3 changes: 3 additions & 0 deletions bin/cliq
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
[ -z "$1" ] && echo "Please specify a CLI command (ex. ls)" && exit
bin/clinotty "$@" >/dev/null
15 changes: 15 additions & 0 deletions bin/copyfromcontainer
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
[ -z "$1" ] && echo "Please specify a directory or file to copy from container (ex. vendor, --all)" && exit

REAL_SRC=$(cd -P "src" && pwd)
if [ "$1" == "--all" ]; then
docker cp "$(docker-compose ps -q phpfpm|awk '{print $1}')":/var/www/html/./ "$REAL_SRC/"
echo "Completed copying all files from container to host"
else
if [ -f "$1" ] ; then
docker cp "$(docker-compose ps -q phpfpm|awk '{print $1}')":/var/www/html/"$1" "$REAL_SRC/$1"
else
docker cp "$(docker-compose ps -q phpfpm|awk '{print $1}')":/var/www/html/"$1" "$REAL_SRC/$(dirname "$1")"
fi
echo "Completed copying $1 from container to host"
fi
19 changes: 19 additions & 0 deletions bin/copytocontainer
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
[ -z "$1" ] && echo "Please specify a directory or file to copy to container (ex. vendor, --all)" && exit

REAL_SRC=$(cd -P "src" && pwd)
if [ "$1" == "--all" ]; then
docker cp "$REAL_SRC/./" "$(docker-compose ps -q phpfpm|awk '{print $1}')":/var/www/html/
echo "Completed copying all files from host to container"
bin/fixowns
bin/fixperms
else
if [ -f "$REAL_SRC/$1" ]; then
docker cp "$REAL_SRC/${1}" "$(docker-compose ps -q phpfpm|awk '{print $1}')":/var/www/html/"$1"
else
docker cp "$REAL_SRC/${1}" "$(docker-compose ps -q phpfpm|awk '{print $1}')":/var/www/html/"$(dirname "$1")"
fi
echo "Completed copying $1 from host to container"
bin/fixowns "$1"
bin/fixperms "$1"
fi
7 changes: 7 additions & 0 deletions bin/dev-test-run
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

[ -z "$1" ] && echo "Please specify test type (ex. integration)" && exit

TEST_TYPE="$1"
shift
bin/clinotty bash -c "cd dev/tests/${TEST_TYPE} && ../../../vendor/bin/phpunit -c phpunit.xml.dist $*"
7 changes: 7 additions & 0 deletions bin/devtools-cli-check
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
if ! bin/clinotty ls /var/www/.composer-global/vendor/bin/cache-clean.js 1> /dev/null 2>&1; then
echo "Installing devtools metapackage, just a moment..."
bin/cliq mkdir -p /var/www/.composer-global
bin/composer require --working-dir=/var/www/.composer-global --quiet markshust/magento2-metapackage-devtools-cli:^1.0
echo "Devtools installed."
fi
34 changes: 8 additions & 26 deletions bin/download
Original file line number Diff line number Diff line change
@@ -1,31 +1,13 @@
#!/bin/bash
[ -z "$1" ] && echo "Please specify the version to download (ex. 2.0.0)" && exit
set -o errexit

edition=${2:-community}
VERSION=${1:-2.4.2}
EDITION=${2:-community}

if [[ "$edition" == "enterprise" ]]; then
rm -rf src
composer create-project --repository=https://repo.magento.com/ --ignore-platform-reqs magento/project-enterprise-edition=$1 src
exit 0
fi
bin/stop
docker-compose -f docker-compose.yml up -d
[ $? != 0 ] && echo "Failed to start Docker services" && exit

if [ ! -f ~/.docker-magento/magento2-$1.tar.gz ]; then
mkdir -p ~/.docker-magento
(cd ~/.docker-magento && curl -fOL http://pubfiles.nexcess.net/magento/ce-packages/magento2-$1.tar.gz)
fi
bin/setup-composer-auth

# Fallback download to hypernode if archive doesn't exist on Nexcess (smaller than 1MB)
if [ $(find ~/.docker-magento/magento2-$1.tar.gz -size -1M) ]; then
(cd ~/.docker-magento && curl -o magento2-$1.tar.gz -fOL https://www.magento.mirror.hypernode.com/releases/magento-$1.tar.gz)
fi

# Final fallback. If no archive exists, let's use Composer!
if [ ! -f ~/.docker-magento/magento2-$1.tar.gz ]; then
echo "Archive not found, or not yet available due to new version release."
echo "Attempting install with Composer..."
rm -rf src
composer create-project --repository=https://repo.magento.com/ --ignore-platform-reqs magento/project-community-edition=$1 src
else
echo "Extracting magento2-$1.tar.gz to ./src"
mkdir -p src && tar xzf ~/.docker-magento/magento2-$1.tar.gz -o -C src
fi
bin/clinotty composer create-project --repository=https://repo.magento.com/ magento/project-"${EDITION}"-edition="${VERSION}" .
6 changes: 3 additions & 3 deletions bin/fixowns
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash
echo "Correcting filesystem ownerships..."
echo "Fixing filesystem ownerships..."

if [ -z "$1" ]; then
bin/rootnotty chown -R app:app /var/www/
else
bin/rootnotty chown -R app:app /var/www/html/$1
bin/rootnotty chown -R app:app /var/www/html/"$1"
fi

echo "Filesystem ownerships corrected."
echo "Filesystem ownerships fixed."
4 changes: 2 additions & 2 deletions bin/fixperms
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
echo "Correcting filesystem permissions..."
echo "Fixing filesystem permissions..."

if [ -z "$1" ]; then
bin/clinotty find var vendor pub/static pub/media app/etc \( -type f -or -type d \) -exec chmod u+w {} +;
@@ -8,4 +8,4 @@ else
bin/clinotty find "$1" \( -type f -or -type d \) -exec chmod u+w {} +;
fi

echo "Filesystem permissions corrected."
echo "Filesystem permissions fixed."
6 changes: 4 additions & 2 deletions bin/mysql
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/bash

# shellcheck source=../env/db.env
source env/db.env
if [ -t 0 ]; then
# Need tty to run mysql shell
bin/cli mysql -h${MYSQL_HOST} -u${MYSQL_USER} -p${MYSQL_PASSWORD} ${MYSQL_DATABASE} "$@"
bin/cli mysql -h"${MYSQL_HOST}" -u"${MYSQL_USER}" -p"${MYSQL_PASSWORD}" "${MYSQL_DATABASE}" "$@"
else
# Read from stdin, ex: bin/mysql < dbdump.sql
bin/clinotty mysql -h${MYSQL_HOST} -u${MYSQL_USER} -p${MYSQL_PASSWORD} ${MYSQL_DATABASE} "$@"
bin/clinotty mysql -h"${MYSQL_HOST}" -u"${MYSQL_USER}" -p"${MYSQL_PASSWORD}" "${MYSQL_DATABASE}" "$@"
fi
7 changes: 7 additions & 0 deletions bin/n98-magerun2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
if ! bin/clinotty ls bin/n98-magerun2.phar 1> /dev/null 2>&1; then
bin/clinotty mkdir -p bin
bin/clinotty curl https://files.magerun.net/n98-magerun2.phar -o bin/n98-magerun2.phar
bin/clinotty chmod +x bin/n98-magerun2.phar
fi
bin/cli bin/n98-magerun2.phar "$@"
2 changes: 2 additions & 0 deletions bin/pwa-studio
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
set -o errexit

if [ ! -d pwa-studio ]; then
echo "PWA studio must first be installed by running bin/setup-pwa-studio"
exit
2 changes: 1 addition & 1 deletion bin/remove
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker-compose -f docker-compose.yml -f docker-compose.dev.yml rm --stop
docker-compose -f docker-compose.yml -f docker-compose.dev.yml rm
12 changes: 6 additions & 6 deletions bin/removevolumes
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
current_folder=${PWD##*/}
volume_prefix=`echo $current_folder | awk '{print tolower($0)}' | sed 's/\.//g'`
docker volume rm ${volume_prefix}_appdata
docker volume rm ${volume_prefix}_dbdata
docker volume rm ${volume_prefix}_rabbitmqdata
docker volume rm ${volume_prefix}_sockdata
docker volume rm ${volume_prefix}_ssldata
volume_prefix=$(echo "$current_folder" | awk '{print tolower($0)}' | sed 's/\.//g')
docker volume rm "${volume_prefix}"_appdata
docker volume rm "${volume_prefix}"_dbdata
docker volume rm "${volume_prefix}"_rabbitmqdata
docker volume rm "${volume_prefix}"_sockdata
docker volume rm "${volume_prefix}"_ssldata
115 changes: 65 additions & 50 deletions bin/setup
Original file line number Diff line number Diff line change
@@ -1,75 +1,90 @@
#!/bin/bash
BASE_URL=${1:-m2.localhost}
MAGE_VERSION=${2:-2.4.1}
set -o errexit

# load the DB env information
DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
source "$DIR/../env/db.env"
# shellcheck source=../env/db.env
source env/db.env
# shellcheck source=../env/magento.env
source env/magento.env

bin/restart
sleep 1 #Ensure containers are started...
BASE_URL=${1:-magento2.test}
ES_HOST=elasticsearch
ES_PORT=9200

echo "Downloading Magento ${MAGE_VERSION} with Sample data..."
bin/root curl -o /var/www/html/magento.tar.gz https://pubfiles.nexcess.net/magento/ce-packages/magento2-with-samples-${MAGE_VERSION}.tar.gz
bin/rootnotty tar xvfz /var/www/html/magento.tar.gz
bin/rootnotty rm /var/www/html/magento.tar.gz
bin/rootnotty cp /var/www/html/nginx.conf.sample /var/www/html/nginx.conf
bin/rootnotty chown -R app.app /var/www/html
bin/rootnotty chmod +x bin/magento
bin/stop

echo "Downloading magerun..."
bin/root curl -o /var/www/html/bin/magerun2.phar https://files.magerun.net/n98-magerun2-latest.phar
bin/rootnotty chmod +x /var/www/html/bin/magerun2.phar
docker-compose -f docker-compose.yml up -d
[ $? != 0 ] && echo "Failed to start Docker services" && exit

echo "Forcing reinstall of composer deps to ensure perms & reqs..."
bin/clinotty composer global require hirak/prestissimo
bin/clinotty composer update
bin/clinotty chmod u+x bin/magento
mv .vscode src

echo "Waiting for connection to Elasticsearch..."
bin/clinotty timeout 100 bash -c "
until curl --silent --output /dev/null http://$ES_HOST:$ES_PORT/_cat/health?h=st; do
printf '.'
sleep 2
done"
[ $? != 0 ] && echo "Failed to connect to Elasticsearch" && exit

bin/clinotty bin/magento setup:install \
--db-host=$MYSQL_HOST \
--db-name=$MYSQL_DATABASE \
--db-user=$MYSQL_USER \
--db-password=$MYSQL_PASSWORD \
--base-url=https://$BASE_URL/ \
--base-url-secure=https://$BASE_URL/ \
--backend-frontname=admin \
--admin-firstname=Admin \
--admin-lastname=User \
--admin-email=admin@test.loc \
--admin-user=magento \
--admin-password=magento2\
--language=en_US \
--currency=EUR \
--timezone=Europe/Berlin \
--db-host="$MYSQL_HOST" \
--db-name="$MYSQL_DATABASE" \
--db-user="$MYSQL_USER" \
--db-password="$MYSQL_PASSWORD" \
--base-url=https://"$BASE_URL"/ \
--base-url-secure=https://"$BASE_URL"/ \
--backend-frontname="$MAGENTO_ADMIN_FRONTNAME" \
--admin-firstname="$MAGENTO_ADMIN_FIRST_NAME" \
--admin-lastname="$MAGENTO_ADMIN_LAST_NAME" \
--admin-email="$MAGENTO_ADMIN_EMAIL" \
--admin-user="$MAGENTO_ADMIN_USER" \
--admin-password="$MAGENTO_ADMIN_PASSWORD" \
--language="$MAGENTO_LOCALE" \
--currency="$MAGENTO_CURRENCY" \
--timezone="$MAGENTO_TIMEZONE" \
--amqp-host=rabbitmq \
--amqp-port=5672 \
--amqp-user=guest \
--amqp-password=guest \
--amqp-virtualhost=/ \
--cache-backend=redis \
--cache-backend-redis-server=redis \
--cache-backend-redis-db=0 \
--page-cache=redis \
--page-cache-redis-server=redis \
--page-cache-redis-db=1 \
--session-save=redis \
--session-save-redis-host=redis \
--session-save-redis-log-level=4 \
--session-save-redis-db=2 \
--search-engine=elasticsearch7 \
--elasticsearch-host=elasticsearch \
--elasticsearch-host=$ES_HOST \
--elasticsearch-port=$ES_PORT \
--use-rewrites=1

echo "Turning on developer mode.."
bin/clinotty bin/magento deploy:mode:set developer
bin/clinotty bin/magento indexer:reindex
echo "Copying files from container to host after install..."
bin/copyfromcontainer --all

echo "Forcing deploy of static content to speed up initial requests..."
bin/clinotty bin/magento setup:static-content:deploy -f

echo "Re-indexing with Elasticsearch..."
bin/clinotty bin/magento indexer:reindex

echo "Disable Magento 2FAuth module..."
bin/clinotty bin/magento module:disable Magento_TwoFactorAuth

echo "Clearing the cache for good measure..."
echo "Clearing the cache to apply updates..."
bin/clinotty bin/magento cache:flush

echo "Installing Sample data..."
bin/clinotty bin/magento sampledata:deploy

echo "Generating SSL certificate..."
bin/setup-ssl $BASE_URL
bin/setup-ssl "$BASE_URL"

echo "Ensuring Composer auth.json is setup..."
bin/setup-composer-auth

echo "Installing cron (see docker-compose.yml to enable)..."
bin/magento cron:install

echo "Restarting containers with host bind mounts for dev..."
bin/restart
echo "Turning on developer mode.."
bin/clinotty bin/magento deploy:mode:set developer

echo "Docker development environment setup complete."
echo "You may now access your Magento instance at https://${BASE_URL}/"
31 changes: 31 additions & 0 deletions bin/setup-composer-auth
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash
MAGENTO_USERNAME_PROP="http-basic.repo.magento.com.username"
MAGENTO_PASSWORD_PROP="http-basic.repo.magento.com.password"
hash composer 2>/dev/null && IS_COMPOSER_ON_HOST=true

if [ $IS_COMPOSER_ON_HOST ]; then
PUBLIC_KEY="$(composer config --global $MAGENTO_USERNAME_PROP 2>/dev/null)"
PRIVATE_KEY="$(composer config --global $MAGENTO_PASSWORD_PROP 2>/dev/null)"
fi

if [ -z "$PUBLIC_KEY" ] || [ -z "$PRIVATE_KEY" ]; then
exec < /dev/tty
echo
echo "Composer authentication required (repo.magento.com public and private keys):"
read -r -p " Username: " PUBLIC_KEY
read -r -p " Password: " PRIVATE_KEY
echo
exec <&-
fi

if [ -z "$PUBLIC_KEY" ] || [ -z "$PRIVATE_KEY" ]; then
echo "Please setup Composer auth for repo.magento.com to continue." && exit 1
fi

# Output must be piped otherwise file descriptor errors occur. Carriage returns?
echo "composer config --global http-basic.repo.magento.com ${PUBLIC_KEY} ${PRIVATE_KEY}" | bin/clinotty bash -

# Also make sure alternate auth.json is setup (Magento uses this internally)
bin/clinotty cp /var/www/.composer/auth.json ./var/composer_home/auth.json

echo "Composer auth has been setup."
43 changes: 43 additions & 0 deletions bin/setup-grunt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash
DEFAULT_THEME_ID="select value from core_config_data where path = 'design/theme/theme_id'"
THEME_PATH="select theme_path from theme where theme_id in ($DEFAULT_THEME_ID);"
VENDOR_THEME=$(bin/n98-magerun2 db:query "$THEME_PATH" | sed -n 2p | cut -d$'\r' -f1)
THEME=$(echo "$VENDOR_THEME" | cut -d'/' -f2)

# Generate local-theme.js for custom theme
read -r -d '' GEN_THEME_JS << EOM
var fs = require('fs');
var util = require('util');
var theme = require('./dev/tools/grunt/configs/themes');
theme['$THEME'] = {
area: 'frontend',
name: '$VENDOR_THEME',
locale: 'en_US',
files: [
'css/styles-m',
'css/styles-l'
],
dsl: 'less'
};
fs.writeFileSync('./dev/tools/grunt/configs/local-themes.js', '"use strict"; module.exports = ' + util.inspect(theme), 'utf-8');
EOM

if [ -z "$VENDOR_THEME" ] || [ -z "$THEME" ]; then
echo "Using Magento/luma theme for grunt config"
THEME=luma
bin/clinotty cp ./dev/tools/grunt/configs/themes.js ./dev/tools/grunt/configs/local-themes.js
else
echo "Using $VENDOR_THEME theme for grunt config"
bin/node -e "$GEN_THEME_JS"
fi

bin/clinotty cp package.json.sample package.json
bin/clinotty cp Gruntfile.js.sample Gruntfile.js
bin/clinotty cp grunt-config.json.sample grunt-config.json
bin/npm install ajv@^5.0.0 --save
bin/npm install
bin/magento cache:clean
bin/grunt clean
bin/grunt exec:$THEME
bin/grunt less:$THEME
Loading