Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make containers compatible with JetBrains' Docker interfacing for remote Xdebug #41

Open
Digital-Nomad opened this issue Jun 25, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@Digital-Nomad
Copy link

I am trying to setup phpstorm development with loki and I need to ssh into the docker image to sync files and setup xdebug. What's the way to go about this with loki?

@leonstafford
Copy link
Contributor

Good question!

To get in once-off, you can run Lokl's CLI wizard again, choose the site to manage and hit s for entering SSH.

I've started work for next release to allow for easier Xdebug profiling/debugging within the container. I can add IDE integration as part of that work if you're unable to get it working

@Digital-Nomad
Copy link
Author

Good question!

To get in once-off, you can run Lokl's CLI wizard again, choose the site to manage and hit s for entering SSH.

I've started work for next release to allow for easier Xdebug profiling/debugging within the container. I can add IDE integration as part of that work if you're unable to get it working

I need ssh credentials for phpstorm itself to ssh into the docker image to sync files. I can't do this from a ssh terminal.

@leonstafford
Copy link
Contributor

May need more info re your host OS:

The helper in PHPStorm may make it easy, ie if macOS, I assume it allows you to choose the container to link to easily

@Digital-Nomad
Copy link
Author

May need more info re your host OS:

* https://www.jetbrains.com/help/phpstorm/docker-connection-settings.html

* https://www.jetbrains.com/help/phpstorm/docker.html

The helper in PHPStorm may make it easy, ie if macOS, I assume it allows you to choose the container to link to easily

I was able to run the docker helper plugin and connect to the machine but in the files tab in the docker panel it.
"Access to file system root. probably this kind of docker image is not supported"
I guess the docker image must configured to work with phpstorm.

@leonstafford
Copy link
Contributor

Thanks for trying!

Linking JetBrains references here:

This one gives me ideas that we may be able to fix this by replacing some busybox utils with standard ones:

https://youtrack.jetbrains.com/issue/IDEA-244173

I'll keep this issue open as I can probably resolve this by adjusting the Docker container. Worst case, I can replace Alpine with a different Linux distro altogether.

@leonstafford leonstafford reopened this Jun 25, 2021
@leonstafford leonstafford changed the title SSH credentials for setting up remote debugging Make containers compatible with JetBrains' Docker interfacing for remote Xdebug Jun 25, 2021
@leonstafford leonstafford added the bug Something isn't working label Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants