Skip to content
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

Is it possible to add an interactive mode to kas-container and see the building logs as normally Bitbake shows? #140

Open
jetm opened this issue Feb 5, 2025 · 4 comments

Comments

@jetm
Copy link

jetm commented Feb 5, 2025

Hi,

kas-container is very useful for CI, but it's useful as well for a local environment where you want to build in a Linux OS that is incompatible with Yocto.

When building locally with kas-container I see the NOTE: Unable to use interactive mode for this terminal, using fallback message from Bitbake. I understand this is the default way for the CI environment, but it would be nice to change it with some option when using kas-container from your PC.

My guess is it has to do with how the container is used. I was thinking like passing down the -i flag, like kas-container --runtime-args '-i' build but that doesn't work

@fmoessbauer
Copy link
Member

Hi @jetm , if you start the kas container from a terminal you should get an interactive terminal (showing the bitbake progress bars). If you run kas-container shell, you even get a fully interactive shell to do things in the yocto environment.

  • Which container runtime are you using?
  • On what OS?
  • Which shell?

Example output:

Image

@jetm
Copy link
Author

jetm commented Feb 6, 2025

Hi @fmoessbauer,

With kas-container shell is the same result, and it shows the same NOTE message about interactive mode.

OK, it works by default; maybe it has to do with the container runtime, as I am using podman.

  • Container runtime: podman
  • OS: Arch Linux
  • Shell: zsh
  • kas version: 4.7

@michaeladler
Copy link
Member

michaeladler commented Feb 6, 2025

Hi @jetm,

I have the same setup as you but I don't get the warning about a non-interactive terminal. Which terminal emulator are you using and (perhaps more interestingly), how did you install it? What's the value of your TERM env variable?

@jetm
Copy link
Author

jetm commented Feb 6, 2025

Hi @michaeladler,

I installed kas from AUR package. Locally, I modified the PKGBUILD to install kas 4.7.

Terminal: kitty 0.39.1 created by Kovid Goyal
TERM: xterm-kitty

@jetm jetm changed the title Is it possible to add an interactive mode to kas-interactive and see the building logs as normally Bitbake shows? Is it possible to add an interactive mode to kas-container and see the building logs as normally Bitbake shows? Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants