Giter Club home page Giter Club logo

supportdevbox's Introduction

Installation

1. Copy your composer auth file to the env/.composer/ dir

  • mkdir -p env/conf/composer/ && cp ~/.composer/auth.json env/conf/composer/auth.json

2. Run docker's containers

  • docker-compose up

3. Mount source code directory to your host machine

  • cd env && make mount ; cd -

4. Unmount source code directory to your host machine

  • cd env && make unmount ; cd -

6. Add virtual hosts to your hosts file

0.0.0.0 magento1.local php55.magento1.local php56.magento1.local php70.magento1.local php71.magento1.local

0.0.0.0 magento2.local php55.magento2.local php56.magento2.local php70.magento2.local php71.magento2.local

0.0.0.0 xhgui.local

Available tools

tideways + xhgui for profiling PHP code

To enable profiler you have to trigger php-profiler.sh 1 inside the php container(php56, php70).

For disabling profiler, please trigger php-profiler.sh 0 inside the php container(php56, php70).

For accessing xhgui, don't forget to add the following line to your hosts file:

0.0.0.0 xhgui.local

After this you can see all the profiles by the link.

Xdebug

Pre-requirements

xDebug configuration is using remote host ip = 10.254.254.254.

if you are using Mac OSX you have to create ip 10.254.254.254 as an alias on your loopback device 127.0.0.1 by using next command:

sudo curl -o /Library/LaunchDaemons/osx.docker.loopback.plist \
https://raw.githubusercontent.com/tshabatyn/supportDevbox/master/env/php/osx.docker.loopback.plist \
&& sudo launchctl load /Library/LaunchDaemons/osx.docker.loopback.plist

More details you can find here: https://gist.github.com/ralphschindler/535dc5916ccbd06f53c1b0ee5a868c93

Also you can create loop back alias by using next command: sudo ifconfig lo0 alias 10.254.254.254 netmask 255.255.255.0

By defaults deebugger disabled. For enabling debbugger, please, execute the following command inside the php container(php56, php70).

# enable debugger
php-debugger.sh 1

# disable debugger
php-debugger.sh 0

# the following command will also disable the debugger
php-debugger.sh

FAQ

How to increase docker container's storage size?

You can find my foundings by the link.

supportdevbox's People

Contributors

yvoronoy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.