LAVA-LXC-MOCKER(7)

πŸ“¦ version 2023.01, in debian bookworm

πŸ’… LAVA-LXC-MOCKER πŸ’…

okay so bestie, welcome to the LAVA-LXC-MOCKER(7) page β€” it lives in the Miscellaneous Information Manual and it's genuinely one of my faves. sit down, grab a boba, let's talk πŸ§‹βœ¨


✨ NAME ✨

lava-lxc-mocker β€” the little mock LXC commands that LAVA uses πŸŽ€


🌸 SUMMARY 🌸

so basically, lava-lxc-mocker is a whole collection of mocker scripts, and each one mocks one of the LXC commands that the Linaro Automated Validation Architecture (LAVA) uses. it's giving "understudy energy" β€” it does not support every single command and option that lxc provides, only the ones LAVA actually uses. no more, no less, periodt πŸ’…

and the way that this slaps? LAVA Test jobs that use LXC can then be replicated in Docker with the help of lava-lxc-mocker. obsessed πŸ”₯


πŸ‘‘ LIST OF MOCKED COMMANDS πŸ‘‘

these are the icons, the main characters, the ones holding it down:

  • lxc-attach
  • lxc-create
  • lxc-destroy
  • lxc-device
  • lxc-info
  • lxc-start
  • lxc-stop

πŸ’€ NOTE πŸ’€

okay listen, this part is important, no cap.

LXC is Linux Containers userspace tools. lava-lxc-mocker does not use LXC. like, at all. πŸ™ˆ the commands that lava-lxc-mocker provides are just simple shell scripts that use the same command names, mocking some LXC commands. that's the whole bit.

and here's the part you cannot skip: lava-lxc-mocker commands still need to be executed in the same sequence as a typical LXC operation. fr fr. in particular, once a container has been created, that container needs to be destroyed to clean up the symlinks and other artifacts. don't leave your container just sitting there like an unread group chat message, bestie 😭

lowkey a vibe check for your workflow: create β†’ ... β†’ destroy. skipping the destroy is not the move 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

go read these next, iykyk:

lxc-attach(1), lxc-create(1), lxc-destroy(1), lxc-device(1), lxc-info(1), lxc-start(1), lxc-stop(1)


🌈 LICENSE 🌈

Released under the MIT License: http://www.opensource.org/licenses/mit-license.php ✨


πŸ’– AUTHOR πŸ’–

Senthil Kumaran S <senthil.kumaran@linaro.org> β€” the actual legend πŸ‘‘


2010-2023, Linaro Limited 🌸


and that's the whole page, bestie!! πŸ₯³ this was 2023.01, dated January 23, 2023, from the LAVA crew β€” thanks for reading, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from