Magento 2 DevLab
Using this environment is really simple. Please follow the instructions below.
Clone this repository in some directory on your machine using git:
$ git clone git@github.com:tiagosampaio/magento2-devlab.gitOr by downloading it directly:
$ curl -L https://github.com/tiagosampaio/magento2-devlab/archive/master.zip -o [path to directory]Let's say you downloaded the project to the directory ~/docker/magento2-devlab. Move on to the directory where you just downloaded this repository:
$ cd ~/docker/magento2-devlabAll of the helper scripts reside in the bin directory in the root directory of the project and they need to have execution permissions to be executed:
$ chmod +x ~/docker/magento2-devlab/bin/*In the project's root directory just run:
$ bin/setupThis project depends on the following services:
| Dependency | Required Version |
|---|---|
| Docker Engine | >= v19.00.0 |
| Docker Compose | >= v1.14.0 |
On your MacOS terminal run:
sudo ifconfig lo0 alias 10.254.254.254
Inside PHP Docker container edit the following file:
> vim /usr/local/etc/php/conf.d/docker-php-ext-xdebug.iniAnd set this configuration.
xdebug.remote_host=10.254.254.254