Optimal Jetbrains IDEs setup for run/build using Toolbox?

My recent success was setting up a toolbox to use as a koji client

Now I’m wondering how to “best” access it from my PyCharm IDE.
I installed Pycharm using the JetBrains Toolbox-App . I was think that it would be cool to configure PyCharm to “Run/Build” the code inside the toolbox, the way it would with a docker container.

  • Is it better to “ssh” into the toolbox?
  • Or to create a “docker” config and point it to the toolbox socket?

By “better” I mean the most consistent with the OStree/Aurora way of doing things.
(I checked the toolbox matrix channel and found nothing on this topic…)

It looks like Pycharm supports something called devcontainers which seems to a similar resource, so I don’t need toolbox.
There’s some issue writing to the default project directory so I will have to change the path to my home directory instead.