Skip to content

Setup development environment

Vinícius Berardi edited this page Jun 25, 2021 · 6 revisions

Setup development environment with Docker.

Image

https://hub.docker.com/r/thiagobarradas/magento2

  • OS: Debian Jessie 8.10
  • PHP: 7.0.26
  • Magento: 2.2.2
  • Apache: 2.4.10
  • MySQL: 5.7.20

Commands

docker run -p 80:80 -d --name magento2 thiagobarradas/magento2:2.2.2-php7.0

After starting the container, it's common to appear error when accessing 127.0.0.1 immediately, this happens because mysql is still in the process of initialization. Usually in less than 1 minute, everything is fine.

docker exec -it magento2 bash

composer require pagarme/pagarme-magento2-module

composer update
php bin/magento setup:upgrade
php bin/magento setup:di:compile
Clone this wiki locally