fix(render): invoke entrypoint in deployment command
Co-authored-by: Patrick Veverka <296341601+patrickatrender@users.noreply.github.com>
This commit is contained in:
1 parent
bbbc5329bb
commit
86c98c8cf2
4 files changed
+16
-10
No files matched your search
@@ -1,10 +1,12 @@
|
||||
import json
|
||||
import os
|
||||
import shlex
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
import yaml
|
||||
|
||||
from nanobot.channels.websocket.runtime import WebSocketConfig
|
||||
from nanobot.config.loader import load_config, resolve_config_env_vars
|
||||
@@ -18,6 +20,13 @@ def _initialize(path: Path, web_token: str = "", api_key: str = "") -> subproces
|
||||
)
|
||||
|
||||
|
||||
def test_render_blueprint_starts_gateway_through_entrypoint():
|
||||
blueprint_path = Path(__file__).resolve().parents[1] / "render.yaml"
|
||||
blueprint = yaml.safe_load(blueprint_path.read_text(encoding="utf-8"))
|
||||
service = next(service for service in blueprint["services"] if service["name"] == "nanobot")
|
||||
assert shlex.split(service["dockerCommand"]) == ["/usr/local/bin/entrypoint.sh", "gateway"]
|
||||
|
||||
|
||||
def test_first_boot_generates_valid_container_config(tmp_path):
|
||||
path = tmp_path / "instance" / "config.json"
|
||||
result = _initialize(path)
|
||||
|
||||
Reference in new issue
Block a user