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.3.tar.gz (14.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.3.3-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oneinfer_cli-0.3.3.tar.gz
  • Upload date:
  • Size: 14.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.3.3.tar.gz
Algorithm Hash digest
SHA256 2c60324ec0c93ae831443b920e972e219aa2fe2efc5fce926cec2cf8f23afb9c
MD5 09923d870a73eaa0ae54f77623e2a184
BLAKE2b-256 4ffb08d448a1e6e34be15bd6355ab00e932471c7fd2c6f705a1e74697eeb5ae5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oneinfer_cli-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 15.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 afadd20b7f99afdba95c59794d8fe869bd30cb3ed67a6c955f8dd3254604e5db
MD5 2ffcf187a6d4740acd18d80925a1a36b
BLAKE2b-256 62299731e1bd60cb8f08ca6ff2aef9cefe24ef085e7f08a358907da949a5cc3a

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