I am following Magento Commerce Cloud > Docker development > Launch Docker > Developer mode so that I can stay updated with the official Magento docker development. Working fine in MacOS for me. I have tested both of Magento Commerce and Open Source.
In order to work with Open Source version I had to do few tweaking while following Developer mode:
- While you are done with the Step#1
Download a Magento application template from the Magento Cloud repository.
you should get a composer.json and a composer.lock in the directory. You will need to replace those two files with your preferable composer.json and composer.lock files if you like contributing to the Magento 2 Code Base. Or you may take a copy of those files generated during installing Magento using Composer. - In Step#5
In your local environment, generate the Docker Compose configuration file.
while running the following command you may get theece-docker
not found error:
$ ./vendor/bin/ece-docker build:compose --mode="developer" --sync-engine="mutagen" --php 7.3In order to solve that you will need to add `magento/magento-cloud-docker`:-bash: ./vendor/bin/ece-docker: No such file or directory
$ composer require magento/magento-cloud-docker
Now you should be able to build the configuration.
You may need to edit the docker.compose.yml file to meet your needs.
- In Step#10
Install Magento in your Docker environment
Could not open input file: ./vendor/bin/ece-tools Solve that with
$ composer require magento/ece-tools
- Follow the rest of the steps accordingly. And you should be done.