Add native Applio RVC and preserve the custom studio UI

Pin Applio 3.6.5 and verified basis assets, migrate private voice provenance, and coordinate conversion/live/training with Deck GPU leases. Prepare an inactive voice profile and a restricted studio container. Move CUDA and Torch caches out of the small temporary filesystem to prevent OmniVoice reference failures. Package app updates from the explicit allowlist in one Docker layer.
This commit is contained in:
Mikei386 committed 2026-10-05 10:02:07 +02:00
1 parent 2afc6a3589
commit 06cacafbad
93 files changed
+11074 -34

No files matched your search

+9
View File
@@ -9,6 +9,12 @@ from deploy import install as installer
from network.client import NetworkClient
class InstallTests(unittest.TestCase):
def test_app_update_build_only_packages_allowlisted_files(self):
with tempfile.TemporaryDirectory() as d:
root=Path(d);(root/'deploy').mkdir();(root/'deploy/Dockerfile.app-update').write_text('COPY app/ /app/');(root/'server.py').write_text('approved');(root/'private-token.txt').write_text('not-approved')
def check(*args,**kwargs):
context=Path(args[-1]);self.assertEqual((context/'app/server.py').read_text(),'approved');self.assertFalse((context/'app/private-token.txt').exists())
with patch.object(installer,'ROOT',root),patch.object(installer,'FILES',['server.py','deploy/Dockerfile.app-update']),patch.object(installer,'run',side_effect=check):installer.build('runtime:existing')
def test_refuses_foreign_container(self):
with patch.object(installer,'inspect',return_value={'Config':{'Labels':{}}}):
with self.assertRaises(RuntimeError):installer.owned('athena-deck-test',Path('/opt/test'))
@@ -21,6 +27,9 @@ class InstallTests(unittest.TestCase):
self.assertIn('127.0.0.1:8120:8120',args)
self.assertIn('DECK_API_PORTS=8120,8121',args)
self.assertIn('--read-only',args)
self.assertIn('127.0.0.1:8134:8134',args)
for dockerfile in ('deploy/Dockerfile','deploy/Dockerfile.app-update'):
self.assertIn('CUDA_CACHE_PATH=/var/lib/deck/cache/cuda',(Path(__file__).parent/dockerfile).read_text())
self.assertEqual(args[args.index('--cap-drop')+1],'ALL')
for forbidden in ('--privileged','--gpus','--cap-add','host','/var/run/docker.sock'):
self.assertNotIn(forbidden,args)