fzi-forschungszentrum-informatik / robot_folders

robot_folders helps you managing multiple source projects with their own workspaces mainly around the ROS ecosystem.
MIT License
47 stars 4 forks source link

Add command to start a development container using the current / specified env #19

Open fmauch opened 6 months ago

fmauch commented 6 months ago

We could support developing inside containers using robot_folders a bit more.

As I am not using throwaway containers for my development on a daily basis, I don't feel like I should go ahead and implement this, at least somebody should give their thoughts on this, hence the "help wanted" label. If you would like to see this feature happen and got some experience in that regards, please share them here so we can actually make this feature useful. Or even you might want to contribute yourself?

Description

e.g. we could provide a fzrob docker command with the following subcommands

We might also support the devcontainers specification instead of only using Dockerfiles... I guess?

Things to consider

taDachs commented 6 months ago

another option would be to generate a new docker image from the underlay workspaces with the packages already built and installed (depends on the workflow, if one has to often touch those workspaces this might be suboptimal).

Regarding devcontainer specification: it brings a lot to the table, especially stuff like devcontainer-features. For me it's the one thing that enables me to still use my favorite cli tools without (re)writing a dockerfile for every project. Also it gives a nice separation between the "build" dependencies (libraries etc) and the "development" dependencies (compiler, linter, language server, editor etc.).