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 --allow-root 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.3.4.tar.gz (14.4 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.3.4-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oneinfer_cli-0.3.4.tar.gz
  • Upload date:
  • Size: 14.4 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.3.4.tar.gz
Algorithm Hash digest
SHA256 790a0f26360bfc8826346dc187d8ece6a765c524e85b1f1ce4cf33000149dce3
MD5 8d195137abdbfe1a4af958d383ff2617
BLAKE2b-256 579a47f7506227397bb1c9e2c32b9c61a856435f5c8cc99d93dea2ba70c2af88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oneinfer_cli-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 15.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.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 93f5451a79a488facc2426e02526f8c52219838ecb562447062bd9a6c4018241
MD5 9237a3d532c995d3eb928c1ea78e7986
BLAKE2b-256 15a14e12ac4db25c09b3de8c5d1a9cca42bd91611e9197e46a1c6ef0e88ba1ec

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