Make Pipelines Docker-only with OpenCode and Pi
Install current verified harness releases inside Docker, preserve persistent accounts and settings, and provide separate interactive and pipeline model defaults with terminal onboarding and fuzzy pickers. Add Docker-aware authoring transport, Pi stage execution, bounded workflow controls, reliable final-result readback and usage settlement, and finite short-lived CLI pipe draining. Keep dated installation evidence and packaged authoring guidance consistent. Verified with a real Docker installation, both harness stages and interactive authors, the built-in plan/implement/review starter, independent host race/vet checks, installer tests, and packaged skill tests. Generated release receipts stay ignored in clean checkouts.
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import importlib.util
|
||||
import os
|
||||
from pathlib import Path
|
||||
import tempfile
|
||||
import unittest
|
||||
from unittest.mock import patch
|
||||
|
||||
spec = importlib.util.spec_from_file_location("configure", Path(__file__).with_name("configure-compose.py"))
|
||||
configure = importlib.util.module_from_spec(spec)
|
||||
@@ -9,7 +11,20 @@ spec.loader.exec_module(configure)
|
||||
|
||||
|
||||
class ConfigureTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
# Container runs may have HOME=/home/pipelines, which the mount guard
|
||||
# rejects; inject a disposable HOME/USERPROFILE for the fixtures.
|
||||
home = tempfile.TemporaryDirectory()
|
||||
self.addCleanup(home.cleanup)
|
||||
environment = patch.dict(os.environ, {"HOME": home.name, "USERPROFILE": home.name})
|
||||
environment.start()
|
||||
self.addCleanup(environment.stop)
|
||||
|
||||
def test_detect_timezone_and_preserve_existing_files(self):
|
||||
try:
|
||||
configure.host_timezone()
|
||||
except ValueError:
|
||||
self.skipTest("host timezone is unavailable in this environment")
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
zone = configure.configure(directory, "http://192.168.1.20:8090", "0.0.0.0")
|
||||
self.assertTrue(zone)
|
||||
|
||||
Reference in New Issue
Block a user