What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hallo. Docker Sdk Installation (B2C, development mode). Xdebug configured upon the manual, nothing.
Comments
-
but ifconfig was installed all the time
0 -
ok
0 -
then @UKHD8KTMF has to jump in. canβt reproduce from there
0 -
@UKHD8KTMF can you guide to make the check for the host detection in the sdk?
0 -
@UQS4LDZU7 can you please run
echo $(ip route get 1 | sed 's/^.*src \([^ ]*\).*$/\1/;q')
0 -
@UKHD8KTMF sure. So its 192.168.224.19
0 -
ok, @UQS4LDZU7 look for deploy.bash.twig in you docker sdk folder and replace a line
export SPRYKER_XDEBUG_HOST_IP=$(which ip >/dev/null 2>&1 && export SPRYKER_XDEBUG_HOST_IP=$(which ip >/dev/null 2>&1 && ifconfig $(ip r | grep default | awk '{print $5}') | grep "inet " | awk '{print $2}' || echo 'host.docker.internal') $(ip r | grep default | awk '{print $5}') | grep "inet " | awk '{print $2}' || echo 'host.docker.internal')
0 -
with
export SPRYKER_XDEBUG_HOST_IP=$(which ip >/dev/null 2>&1 && ifconfig $(ip r | grep default | awk '{print $5}') | grep "inet " | awk '{print $2}' || echo 'host.docker.internal')
0 -
and then run boostrap again
0 -
this will fix the issue
0 -
@UKHD8KTMF Thank you. Bootstrap didnt help, I will remove all images/containers and rebuild again
0 -
docker/sdk boostrap deploy.dev.yml and docker/sdk up
0 -
Yes. It didnt work out
0 -
@UQS4LDZU7 Do you have maybe dns entries in your ~/.docker/daemon.json configuration? That was my problem with the debug session.
0 -
@UNMDZHK46 Thank you. I will check.
0 -
@UKHD8KTMF Thanks for the hints. I will try to make it work.
0 -
@UNMDZHK46 No, i dont even have daemon.json
0 -
Ok. Now I have the right SPRYKER_XDEBUG_HOST_IP, run cli with -x option, but php -m still doesn't show xdebug in the list of php libraries.
0 -
hmm, works for me. Does it rebuild the container when you start cli with -x?
0 -
No, it doesnt by the way. Just says "DEBUGGING MODE"
0 -
are you shure that there is no xdebug when you run php -m inside cli container? It is the last on the list
0 -
something like
[PHP Modules] bcmath bz2 Core ctype curl date dom fileinfo filter ftp gd gmp hash iconv intl json libxml mbstring mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_pgsql pdo_sqlite pgsql Phar posix readline redis Reflection session SimpleXML soap sockets sodium SPL sqlite3 standard tokenizer xdebug xml xmlreader xmlwriter Zend OPcache zip zlib [Zend Modules] Xdebug Zend OPcache
0 -
Unfortunatelly:
0 -
hmm. wierd - did you modify stuff in docker sdk? Configs and stuff.
0 -
No, I just used the deploy.dev.yml.
0 -
Sorry I am out of ideas. This works flawlessly for everyone I know.
0 -
No prob. I will try further. Thx
0 -
"docker/sdk cli -x php -m" also shows the xdebug module. Did you clone the master branch of docker/sdk?
0 -
@UNMDZHK46 No, I didnt clone the master, as it wasnt master in the docs:
0 -
git clone git@github.com:spryker/docker-sdk.git -b 1.6.3 --single-branch docker
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random