Skip to main content

Seamlessly deploy local Docker containers to OneInfer GPU instances over SSH.

Project description

OneInfer Developer CLI 🚀

The official, open-source Developer CLI for seamlessly testing and deploying local Docker containers to OneInfer GPU instances over SSH.

⚠️ Note: OneInfer GPU instances are secure, unprivileged containers. They do not run a full dockerd daemon. Therefore, you cannot simply docker run inside them. This CLI handles the complexity of tunneling your image and running it via user-space container runtimes (udocker) automatically!

Installation

pip install oneinfer-cli

(Optionally use pipx install oneinfer-cli for global isolation).

Getting Started

  1. Login: Authenticate your CLI with your OneInfer Account.

    oneinfer login
    # Paste your API Token when prompted
    
  2. Build Your AI App: Build your standard Docker container locally.

    docker build -t my-custom-llm:v1 .
    
  3. Deploy to a GPU Instance: Push and run it directly to your running OneInfer instance.

    oneinfer deploy my-custom-llm:v1 --instance-id xyz-1234
    

What happens under the hood?

When you run deploy, the CLI:

  1. Talks to the OneInfer API to securely fetch your instance's SSH dynamically.
  2. Runs docker save locally to bundle your image.
  3. Transmits the bundle over SSH via SCP.
  4. Instructs the remote instance to load and run the container securely in user-space with full GPU passthrough using udocker run --nv my-custom-llm:v1.

Contributing

We welcome PRs! Ensure you have hatch installed, and run pip install -e . to develop locally.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oneinfer_cli-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oneinfer_cli-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file oneinfer_cli-0.1.0.tar.gz.

File metadata

  • Download URL: oneinfer_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for oneinfer_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 921413583885f498aecf4efc7ace30606a21aec5766e9899483fde40c098d594
MD5 5af2924eed0658351aff6570a60362b8
BLAKE2b-256 473e452321538ae0da3d1d09140b79923706346cb667008bc4d0a7b62c943fa9

See more details on using hashes here.

File details

Details for the file oneinfer_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: oneinfer_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for oneinfer_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae63da62bcaaa190bbe7261a20f88ec262fa55455387bb1313166725e2436ac5
MD5 a525b276189e80afa2fd80b72182963e
BLAKE2b-256 057fe098722fd57c9ddb2ce83b36cb16388cd57fd8376e81711ef0218f4c5751

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page