Skip to content
This repository was archived by the owner on Nov 23, 2020. It is now read-only.
This repository was archived by the owner on Nov 23, 2020. It is now read-only.

Support profiles #14

@yuvipanda

Description

@yuvipanda

We want a single user to be able to have multiple running pods of different config active at the same time. Multiple images, different amounts of RAM, GPUs, etc.

The issue is one of UX - how do we let users choose which profile? This is reasonably easy with an interactive session - you can just ask! However, since we want to support non-interactive use as well (for #8 and similar), we can't rely on having a working TTY. And for similar reasons, we shouldn't hijack how commands get interpreted either - most remoting tools expect that to not change either.

Possible options:

  1. Use the 'username' part of the ssh command. We pick a character that we consider a separator, escape it otherwise, and use that to pass options. For example, you could ssh as 'yuvipanda+profile-1@host'. Need to see what the restrictions on usernames are in the SSH protocol, and if there are length limitations
  2. Pass an environment variable. SSH lets the client pass a whitelisted set of environment variables through to the server. We could use this to pass profile info through
  3. ???

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