Create Magento App
Create ScandiPWA AppScandiPWA DocsGitHub
v2
v2
  • Create Magento App
  • Getting started
    • Getting Started
    • Prerequisites
      • Linux requirements
      • MacOS requirements
        • Apple Silicon
      • Windows requirements
    • Available commands
      • Start the application
      • Stop the application
      • Check application status
      • Enter application CLI
      • Explore application logs
      • Execute commands in Docker containers
      • Link a theme
      • Import database dump
      • ⚠️ Uninstall a project
    • Folder structure
    • Updating to New Releases
      • Testing Alpha Releases
    • Configuration File
      • System Configuration File
    • Supported Magento versions
    • How does it work?
    • Limitations
    • What Is New in Version 2
  • Usage guide
    • Using console commands
    • Accessing Docker containers
    • Linking a Scandi Theme
    • Enabling XDebug
    • Enabling SSL
    • Configuring PHP
    • Configuring Multi-Store
    • Configuring NewRelic
    • Access on the local network
    • Using custom domain
    • Using Enterprise Edition
    • Using OpenSearch
    • Importing database
      • Importing remote database
    • Converting legacy Docker setup to CMA
    • Improve Performance
  • Container images
    • PHP Images
      • PHP 8.3
        • PHP 8.3 with Magento 2.4 extensions
        • PHP 8.3 with XDebug
          • PHP 8.3 with XDebug with Magento 2.4 extensions
      • PHP 8.2
        • PHP 8.2 with Magento 2.4 extensions
        • PHP 8.2 with XDebug
          • PHP 8.2 with XDebug with Magento 2.4 extensions
      • PHP 8.1
        • PHP 8.1 with Magento 2.4 extensions
        • PHP 8.1 with XDebug
          • PHP 8.1 with XDebug with Magento 2.4 extensions
      • PHP 7.4
        • PHP 7.4 with Magento 2.4 extensions
        • PHP 7.4 with XDebug
          • PHP 7.4 with XDebug with Magento 2.4 extensions
      • PHP 7.3
        • PHP 7.3 with Magento 2.4 extensions
        • PHP 7.3 with Magento 2.3 extensions
        • PHP 7.3 with XDebug
          • PHP 7.3 with XDebug with Magento 2.4 extensions
          • PHP 7.3 with XDebug with Magento 2.3 extensions
      • PHP 7.2
        • PHP 7.2 with Magento 2.3 extensions
        • PHP 7.2 with XDebug
          • PHP 7.2 with XDebug with Magento 2.3 extensions
    • ElasticSearch Images
      • ElasticSearch 6.8
  • Scripts Extensions
    • PHP Extensions
      • PHP Extensions Package
      • (deprecated) ionCube Extension
  • Troubleshooting
    • Common Issues
    • CMA Debugging
    • Uninstall CMA
Powered by GitBook
On this page
  • What is new?
  • PHP
  • Database - MariaDB
  • Maildev

Was this helpful?

  1. Getting started

What Is New in Version 2

PreviousLimitationsNextUsing console commands

Last updated 12 months ago

Was this helpful?

magento-scripts version 2.0.0 has been in development since mid-July 2022 and the main goal of its creation was to eliminate dependency on system packages.

That was the reason why magento-scripts stopped working on Ubuntu 22.04 (because of the upgraded OpenSSL version) and in general, required a super-complex system for installing and validating required packages on all systems, plus a complex and time-consuming PHP build time to process. And it was practically impossible to isolate CMA instances from one another without the need to compile PHP for each instance. But it was fast in the end because PHP was running on the host system and did not experience performance losses on file operations or processing power in the VM on macOS and other systems.

What is new?

PHP

Version 2 introduces a PHP container into the setup. With this move, we don't need a complex dependency installation and validation system, nor a complex PHP build system anymore.

Those are the steps for PHP images:

  1. Alpine Linux image is used as a base for images with PHP. Only in this step PHP is actually compiled. No additional extensions are installed.

  2. PHP image with Magento extensions is used as a base for Project Image that is built on the user system. This image installs the Composer version corresponding to Magento requirements and additional extensions for PHP defined in the configuration file by a user.

Steps 2-3 are repeated for images with XDebug that are based on PHP images with XDebug.

Database - MariaDB

We observed a very strange behaviour with MySQL 5.7 on Linux systems with Docker Engine. When started container will consume all resources given to the system and basically freeze the computer.

Since existing setups are still running on MySQL we developed a migration script that will run if it detects that you have MySQL volume in your project. The process is automated, the user just needs to press ENTER a few times to get a new working setup.

Maildev

Maildev is also added to the setup so you will be able to catch emails during development.

Now we will be using the new PHP Image infrastructure based on .

PHP image is used as a base for images with PHP extensions for Magento. In this step PHP extensions for or are installed.

It is necessary to have 2 images with XDebug and without to be able to switch between them instantly when running the with .

All images are built using for AMD64 and ARM64 architectures!

In addition to that, we already have in our setup for macOS on ARM64 chips (M1) because MariaDB actually has ARM64 images that can run on those systems.

So we decided to bring more consistency to our setup and move everyone to .

the Alpine Linux image
Magento 2.3
Magento 2.4
Docker Buildx
MariaDB
MariaDB
start command
debug option
PHP Image Infrastructure