Provide a minimal, safe, conteinerized environment to run an AI agent over a codebase.
This repository defines a set of salt states used to:
- create a systemd-nspawn server installation
- create a systemd-networkd configuration that allows every nspawn container to access internet.
- create a systemd-nspawn container with a minimal openSUSE Tumbleweed distribution.
These salt states are meant to be run in a development machine with a default
openSUSE Tumbleweed. That means that no previous systemd-networkd
installation/configuration was performed.
List of requirements:
- Base installation of openSUSE Tumbleweed
- Packages:
salt-minion - All salt commands must be run inside the copy of this repository.
sudo salt-call -c config state.apply test=TrueInstall:
sudo salt-call -c config state.apply salt.nspawn_serverInstall:
sudo salt-call -c config state.apply salt.nspawn_containerInstall both, server and container:
sudo salt-call -c config state.apply- State:
machinectl status tumbleweed # show state- Start:
machinectl start tumbleweed # Boot the container- Stop:
machinectl stop tumbleweed # Shutdown the container- Open a shell inside the container:
machinectl shell tumbleweed # Open a shell inside the containerYou may want to leave your system as it initially was.
To remove the container, purge it with:
sudo salt-call -c config state.apply salt.nspawn_container.purgeIf you also want to remove the systemd-nspawn and related packages, uninstall them with:
sudo salt-call -c config state.apply salt.nspawn_server.uninstall