camel11
(camel11)
August 31, 2020, 11:48am
1
Hello
Could anyone let me know how to configure devstack(https://github.com/edx/devstack#edx-devstack- ) using visual studio code? like how you run/debug the multiple containers.
If any documentation, please guide to the link.
braden
(Braden MacDonald (OpenCraft) - opencraft.com/help)
August 31, 2020, 4:38pm
2
Hi @camel11 , do these existing threads help?
Hey there!
The move to using Docker for the Open edX® devstack brought many improvements to our workflow, but it isn’t obvious how to use a key developer tool with the Docker-based devstack: a python debugger.
With recent changes to Visual Studio Code , it’s now possible for VS Code users to get Intellisense and debugging working with your containerized devstack LMS. This will give you as-you-type auto-completion of most python code, near-real-time pylint linting using edX®’s linting rules, and…
Synopsis
You can have multiple isolated Devstacks provisioned on a single computer now. This was the result of a big PR, so let us know if bugs arise that seem to be related. If you are blocked by such a bug, check out the juniper.master branch of edx/devstack, which currently does not include this change.
Details
The Change
Hi folks. @ztraboo and I recently collaborated on a change to allow having multiple Devstack instances provisioned on the same host computer. Each instance has an isolated …
Has anyone figured out how to setup multiple Docker devstacks for Open edX platform on one machine yet?
I created a thread on Slack #devstack, however, there doesn’t seem to be a lot of solutions for this yet.
https://openedx.slack.com/archives/CDAG4KN2C/p1587399705007100
Any working solutions would help.
I’m currently working on updating all Docker containers to have release. prefix. Also probably need to update the database names for MySQL and MongoDB.
Example edx.devstack.lms to hawthorn…
@camel11 I would definitely check out those articles that @braden mentions above. We recently include how to setup multiple devstacks for the Juniper release here https://github.com/edx/devstack/tree/open-release/juniper.master#how-do-i-run-multiple-named-open-edx-releases-on-same-machine .
I recently switched from PyCharm to Visual Studio Code since I could not get the debugger working with later releases of Open edX. I would suggest looking at this article Tutorial: Attaching Visual Studio Code to Devstack LMS Container first with debugging. Please realize that this debugging configuration is still a work in progress solution for debugging and it does have it hick-ups, however, it does seem to work. I’ve grown accustomed to Visual Studio Code for it’s simplicity and speed too when compared with PyCharm debugging.
camel11
(camel11)
September 1, 2020, 4:10am
4
Hi @braden and @Zachary_Trabookis thanks for the links provided, I’ll check out these.