Skip to content

[Story] rtbox create #1

@akdev1l

Description

@akdev1l

Problem

We need to enable the creation of toolbox containers. This involves a couple things:

  1. 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.
  2. 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.
  3. 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
  4. We need to make sure that the container will execute in the same terminal

Solution

  1. Make sure the podman call preserves the environment in preservedEnvironmentVariables
  2. Make sure we have the correct bind mounts as listed in initContainerMounts
  3. Make sure the entrypoint is set to the rtbox binary itself

Acceptance Criteria

  1. rtbox create creates a container in the system by calling into the podman API
  2. rtbox list shows the created container
  3. podman inspect shows the entrypoint of the container is set to rtbox binary
  4. The container can be started and exec'd into

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions