Getting a nice-flowing docker dev setup #4731
Replies: 3 comments 9 replies
-
@LavissaWoW have you followed the docker development guide? This is exactly how my development setup is configured, I'm running on Windows too. I edit in vscode but have the containers managed through docker desktop. With the vscode terminal I can oversee the containers (e.g. |
Beta Was this translation helpful? Give feedback.
-
@LavissaWoW please keep us posted if you come up with any improvements to the workflow |
Beta Was this translation helpful? Give feedback.
-
@LavissaWoW May you can take a look at #4787 - I tried to document the devcontainer workflow there. |
Beta Was this translation helpful? Give feedback.
-
I'm having some internittent struggles getting a proper flowing dev setup working...
My main dev setup involves Windows, as that's what my home PC has. Linux will be intermittently used when I have time during work hours. (I don't suspect I'll have issues there)
Notes:
Now, I've set up such that I clone from my fork down to my machine using Windows CMD, as that's where I have my ssh key.
Then I set up InvenTree dev on Docker via the docker compose [...] update / setup-dev / up -d / superpuser commands in that order (In the Windows CMD).
Now, we're in a bit of a pickle. I don't want to create SSH keys for docker containers that might be terminated at any time. So I can't set up the docker to do commit/push/pull in any easy fashion.
Venv is accessible via WSL (as the docker image does not set up a Windows activate.bat), but triggers permission denied when run via the docker terminal. Venv in WSL is however not privvy to installed packages on the docker, so can't execute invokes.
I attempted a setup using the supplied config for VSCode devcontainer, and while that works 80%, it still won't cooperate with git. Additionally, the VSCode terminal sometimes freezes in devcontainer, and I'm forced to restart VSCode. Additionally, additionally, I dislike having to wait for the container to boot, load etc every time I open VSCode.
Atm, my workflow is:
Any tips or tricks to achieve a more coherent workflow?
Beta Was this translation helpful? Give feedback.
All reactions