Skip to content

igor-imaginemage/Magento2-1

 
 

Repository files navigation

Magento 2

Magento 2 Docker to Development

Apache 2.4 + PHP 7.0 + OPCache + MariaDB + N98 Magerun 2 + XDebug + Redis

Build Status Build Status Releases

MacOS / Linux Requirements

MacOS (Docker, Docker-compose and Docker-sync)

  brew tap caskroom/cask
  brew cask install docker
  brew install docker-compose
  sudo gem install docker-sync

Linux (Docker, Docker-compose)

Use this official Docker tutorial.

How to use

Execute in your terminal, change the MYMAGENTO2 to use the name of your project:

curl -s https://raw.githubusercontent.com/igor-imaginemage/Magento2-1/master/init | bash -s MYMAGENTO2 clone

If you want install the Magento 2, use like that:

cd MYMAGENTO2
./shell
rm index.php
install-magento2

You can specify the version that want install (e.g. install-magento2 2.2).

Panels

Enjoy your new panels!

Web server: http://localhost/

PHPMyAdmin: http://localhost:8080

Local emails: http://localhost:8025

Features commands

Commands Description Options & Examples
./init If you didn't use the CURL setup command above, please use this command changing the name of the project. ./init MYMAGENTO2
./start If you continuing not using the CURL you can start your container manually
./stop Stop your project containers
./kill Stops containers and removes containers, networks, volumes, and images created to the specific project
./shell Access your container ./shell root
./magento Use the power of the Magento CLI
./n98 Use the Magerun commands as you want
./grunt-init Prepare to use Grunt
./grunt Use Grunt specifically in your theme or completely, it'll do the deploy and the watcher. ./grunt luma
./xdebug Enable / Disable the XDebug
./composer Use Composer commands ./composer update

License

MIT © 2018 Rafael Corrêa Gomes and contributors.

About

Docker Image to Magento 2 local development in Mac, Linux and Windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 61.9%
  • Shell 38.1%