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.5.tar.gz (14.5 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.5-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oneinfer_cli-0.3.5.tar.gz
  • Upload date:
  • Size: 14.5 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.5.tar.gz
Algorithm Hash digest
SHA256 6156cd982ac041511e15e1fdee5aabfe378046ba4a9bd85db716387de2983994
MD5 9b6c4bebf0f37acf683e65e6b3bec9b5
BLAKE2b-256 a90b1a61e069e703cf3ebe8bd7494f93eca67ae8d42358bc5f44bdfd251e5122

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oneinfer_cli-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 15.9 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 95f75fa4cee06f78199c3f9e892fb6d767b17c82c02f0d44b4a7088db5c562ec
MD5 fe082597b60ae0979dec9221dfb05ca2
BLAKE2b-256 4c22657fa0b8fbb1c355a91ac5e8e8d58eac17768399d5ba42d13a3a6c5cfbda

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