Problem
We need to enable the creation of toolbox containers. This involves a couple things:
- We need to check through the environment and construct a podman
create API call with the correct environment and bind mounts to integrate the container into the host.
- We need to make sure we pass through things like nvidia drivers, dbus socket, gpg socket, ssh-agent and so on to try and behave as closely as possible to the host.
- We need to set entrypoint of the container to be the
rtbox binary itself with a set of arguments that will be equivalent to the host execution context
- We need to make sure that the container will execute in the same terminal
Solution
- Make sure the podman call preserves the environment in preservedEnvironmentVariables
- Make sure we have the correct bind mounts as listed in initContainerMounts
- Make sure the entrypoint is set to the
rtbox binary itself
Acceptance Criteria
rtbox create creates a container in the system by calling into the podman API
rtbox list shows the created container
podman inspect shows the entrypoint of the container is set to rtbox binary
- The container can be started and exec'd into
Problem
We need to enable the creation of toolbox containers. This involves a couple things:
createAPI call with the correct environment and bind mounts to integrate the container into the host.rtboxbinary itself with a set of arguments that will be equivalent to the host execution contextSolution
rtboxbinary itselfAcceptance Criteria
rtbox createcreates a container in the system by calling into the podman APIrtbox listshows the created containerpodman inspectshows the entrypoint of the container is set tortboxbinary