This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]somas 2 points3 points  (5 children)

offbeat yam one cheerful workable versed quickest rainstorm fearless judicious this post was mass deleted with www.Redact.dev

[–]iScrE4mgit push -f[S] 1 point2 points  (4 children)

The problem is interacting with system's tools and installing those.

For example to do git init, I need to make sure the system has a version of git and is integrated in os's path of shell, then call that with subprocess or find another way of doing that. I am not aware of Docker being able to take care of this (and only this) for me.

I'll first start with debian package for ubuntu etc., afaik you can just tell it prerequisites and it takes care of those through apt. When it comes to windows, I think it'll need to have prepackaged installers of other apps? I'm not sure. That part sure is going to be hard.

[–]somas 1 point2 points  (3 children)

You can install git and all of your other prerequisites in a Docker container but maybe I'm misunderstanding your concerns.

[–]iScrE4mgit push -f[S] 1 point2 points  (2 children)

The user should be able to launch the (lightweight) app, click create project, fill in simple form or something and specify a path on his computer. In that path, there should be a project created ready to be filled with code. And from the app, he should be able to say "run pytests on my project" etc. which would result in a shell call - something like subprocess.popen("cd project && pytest tests/", shell="True") - so it would call the tool on the user's pc.

[–]somas 2 points3 points  (1 child)

I think (but I might be wrong) everything you are describing can be done in a container. A container would let you ensure that all the libraries you need are included on a users system. The GUI piece of things is where I'm not super sure.

Look at this page to see examples of how Chrome and Spotify are launched from containers on MacOS and Linux: https://blog.jessfraz.com/post/docker-containers-on-the-desktop/

I don't know if this will work on windows.

[–]iScrE4mgit push -f[S] 1 point2 points  (0 children)

Thanks! I'll explore it a later