You have to install docker on your machine. If you are running Mac OS it is assumed you use Docker for Mac.
There is a build.default.properties file which holds a lot of
configurations. There are some general settings:
- magento.version: Select the magento version being installed
- use.sample.data: If true the sample data will be installed
There are further settings for the Magento 2 instance which you can set
to your wishes. If you want to change the base url you also have to change
the nginx configuration in conf/nginx/conf.d/vhost-default.conf.
## set up docker instance and install magento in developer mode
ant build
## enter the ip address of the dev machine into your hosts file
echo "127.0.0.1 magento2.docker" | sudo tee -a /etc/hosts
Checkout your modules into src directory e.g.
git clone git@github.com:group/module-name.git src. Next open the
gulpfile.js and edit app/code/Vendor/MyModule/ of options array to
your module name.
Install all necessary tools via npm: npm install.
There is a watcher built with gulp. Just enter gulp and it watches
the src directory for changes and copies them to the docker instance.
gulpStarts the watcher on the src directoryant copy-www-to-dockerCopies thewwwdirectory to the docker containerant copy-www-to-localCopies thewwwdirectory from the docker container to your local machinebin/mr2Runs magerun 2 inside the docker containerdocker exec -ti magento2_instance shGet console of docker container