20 lines
445 B
Python
20 lines
445 B
Python
import os
|
|
|
|
from .runtime import AbstractRuntime
|
|
|
|
|
|
def get_runtime() -> AbstractRuntime:
|
|
runtime_backend = os.getenv("STRIX_RUNTIME_BACKEND", "docker")
|
|
|
|
if runtime_backend == "docker":
|
|
from .docker_runtime import DockerRuntime
|
|
|
|
return DockerRuntime()
|
|
|
|
raise ValueError(
|
|
f"Unsupported runtime backend: {runtime_backend}. Only 'docker' is supported for now."
|
|
)
|
|
|
|
|
|
__all__ = ["AbstractRuntime", "get_runtime"]
|