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
dockerddaemon. Therefore, you cannot simplydocker runinside 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
-
Login: Authenticate your CLI with your OneInfer Account.
oneinfer login # Paste your API Token when prompted
-
Build Your AI App: Build your standard Docker container locally.
docker build -t my-custom-llm:v1 .
-
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:
- Talks to the OneInfer API to securely fetch your instance's SSH dynamically.
- Runs
docker savelocally to bundle your image. - Transmits the bundle over SSH via SCP.
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6156cd982ac041511e15e1fdee5aabfe378046ba4a9bd85db716387de2983994
|
|
| MD5 |
9b6c4bebf0f37acf683e65e6b3bec9b5
|
|
| BLAKE2b-256 |
a90b1a61e069e703cf3ebe8bd7494f93eca67ae8d42358bc5f44bdfd251e5122
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95f75fa4cee06f78199c3f9e892fb6d767b17c82c02f0d44b4a7088db5c562ec
|
|
| MD5 |
fe082597b60ae0979dec9221dfb05ca2
|
|
| BLAKE2b-256 |
4c22657fa0b8fbb1c355a91ac5e8e8d58eac17768399d5ba42d13a3a6c5cfbda
|