-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow connecting to an external bitbake server #204
Comments
Thanks for reporting a new commandWrapper setup! If we want to think about new ways to do it:
|
I had made a draft where we would manage the server's lifetime. It was quickly becoming super complex because we have to handle crashes of the server, cleanup, locks, ... |
You could also run a VSCode remote session inside your container (see https://code.visualstudio.com/docs/remote/remote-overview) |
I really like the idea of having the possibility to control my bitbake server "myself" and thus external of the VS code session and then only attach to it. |
Hey there, Our setup is that we run a complex |
Thanks for your feedback. I love to think we can get the extension to work with original environments such as these! . I added this feature into our backlog ;). It looks like the bitbake server options should provide the compatibility needed. |
I wonder if this could already be achieved by configuring BBSERVER:
I'd prefer just adding documentation instead of adding an actual setting that would add args like So far I've tried to host the remote server in a docker container while binding the port, and using it outside but bitbake always remain frozen. I'm not sure the remote server communication is really stable or requires additional ports forwarding? |
Testing again today, on the same machine, I could reuse a running server from a docker context into a native context using the socket file:
If the container is remote, there's probably some additional port forwarding arguments that I didn't figure except (except the obvious |
To setup a remote container I'd like to do:
Currently I get
I don't know if bitbake doesn't like that I'm doing that on the same machine, if I should host a different xmlrpc server, or if it's a docker forwarding issue. |
It feels like to me that the existing remote support should just work for the container aspect, so then you just need to glue in the credentials? Manually driving a remote bitbake server feels quite fragile: whilst bitbake has support for this it's not as elegant as you'd like. |
Often in commercial environments, developers use a specifically configured Docker container to isolate the Yocto setup more from the (possibly outdated or even not supported) host system or maybe to just enforce a certain native compiler.
For such setups, one usually has to do the following steps to run bitbake:
Even though all of the above can be put into a wrapper script that is run as a Command Wrapper, I think this is a so common setup that it makes sense to have a dedicated configuration option for such settings where first a login into a container and then a pre-command in that container is needed. By this, one could even put the container lifetime into the hands of VS-code and better isolate against Bitbake failures where the BitBake server is still running but not cleaned up correctly.
The text was updated successfully, but these errors were encountered: