First time here? Check out the FAQ!
1

How does one setup Docker with WingIDE

I have Python running in remote, so to speak, but through docker. How do I access it and use it in WingIDE?

chukwudi.nwachukwu's avatar
51
chukwudi.nwachukwu
asked 2019-04-05 12:02:11 -0600
Wingware Support's avatar
4.2k
Wingware Support
updated 2020-04-02 07:43:31 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

5 Answers

0

I will suggest a video is done and placed on a place like Youtube showing how this can be done: using Wingpro with Docker. I followed the instruction but I couldn't achieve what was written.

I might be wrong in my approach of it and a video demo will help me see it

chukwudi.nwachukwu's avatar
51
chukwudi.nwachukwu
answered 2020-03-31 15:19:17 -0600
edit flag offensive 0 remove flag delete link

Comments

Unfortunately we don't have the resources to do videos. We used to do it but found they often were not as effective as written instructions in the How-Tos, and quickly went out of date. Setting up Wing for Docker is now described in https://wingware.com/doc/howtos/docker -- which is a different approach than the original links I provided a year ago. We're working on automating this further, but that's not yet available.

Wingware Support's avatar Wingware Support (2020-04-01 11:03:02 -0600) edit
add a comment see more comments
0

Since this was originally answered a year ago, the approach to setting up Wing with Docker has been changed, and is now documented in detail in https://wingware.com/doc/howtos/docker

This is a different approach than the original links I provided a year ago and is likely more generally useful because it does not require the ability to connect to the Docker instance with SSH.

However, this is still fairly complicated to set up. We're working on automating and simplifying setup for Docker based on this approach, by adding the concept of a container configuration to Wing's UI. But that's not yet available at the moment.

Wingware Support's avatar
4.2k
Wingware Support
answered 2020-04-01 11:06:26 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

If you can ssh into the docker instance then you can use Wing Pro's remote development support described at http://wingware.com/doc/proj/remote-h...

If not, then it's harder. If files are shared with the local host you can open and edit them from there and would be able to set up debugging as well using the manual method described at http://wingware.com/doc/debug/manual-... to get the debug connection set up and to describe how the files are found in docker vs. on the local host.

We're hoping to add support for Docker soon. Right now we only have container-specific support for Vagrant: http://wingware.com/doc/howtos/vagrant and Windows Subsystem for Linux: http://wingware.com/doc/howtos/wsl

Wingware Support's avatar
4.2k
Wingware Support
answered 2019-04-05 13:36:07 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

In this instance, the admin said: If you can ssh into the docker instance then you can use Wing Pro's remote development support

So, that led me to and I am able to SSH into the docker container. But then, I am yet to try out Wing Pro's remote development

chukwudi.nwachukwu's avatar
51
chukwudi.nwachukwu
answered 2020-03-09 10:00:05 -0600
edit flag offensive 0 remove flag delete link

Comments

Sorry, this is another thing we didn't get notice of being added here. If SSHing into the container works, you could try to set up a remote host configuration in Wing as described in https://wingware.com/hints/remote-dev-2 Otherwise an approach that does not use SSH is documented here: https://wingware.com/doc/howtos/docker

Wingware Support's avatar Wingware Support (2020-04-01 11:14:31 -0600) edit
add a comment see more comments
0

I have followed the steps outlined here to the best of my ability and I even encountered an issue with docker, as shown in this image docker but then, I sorted that out by following the instructions shown in the image.

Also worthy of note is the fact that I activated the debugger as shown debugger

Within the Debugger option, I also added my PC ip, as shown in this image PC ip.

But then, I am unable to set the breakpoint. I have clicked to not avail. If I am missing something, I would like for someone to show me what it is.

However, one thing I would like for the admin to do is to have someone always do short videos to show how these things work. While the documentation is great, it is so different when one tries to do as stated, at times. But if there are videos that one can watch and follow through then that would be fine.

If such exists and I have missed it, please point me to it. I need to sort this docker issue to move ahead with my job.

chukwudi.nwachukwu's avatar
51
chukwudi.nwachukwu
answered 2020-01-07 07:53:38 -0600
edit flag offensive 0 remove flag delete link

Comments

Are you saying you cannot set the breakpoint or it won't stop on it? If the latter, setting kLogFile in wingdbstub.py and emailing the output to support@wingware.com may help.

Wingware Support's avatar Wingware Support (2020-01-07 11:12:02 -0600) edit

This is nowhere near what I expected as a response despite having a one year support.

chukwudi.nwachukwu's avatar chukwudi.nwachukwu (2020-03-31 15:18:03 -0600) edit

I'm not sure if you're saying we're doing too little or too much but as noted in the newly added answer there are updated docs on setting up Docker and without the debugger-side log there really isn't much hope of figuring out why breakpoints are missed.

I don't think we're getting notifications of your changes to this question for some reason, despite following it, so please email support@wingware.com if we're not responding. There are known problems with the Q&A forum, as far as notifications sometimes not going out and those are also being worked on by the service provider (hopefully).

Wingware Support's avatar Wingware Support (2020-04-01 11:11:27 -0600) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer