feat: add docker socket mount and terminal websocket view to snek service

- Add docker package to Dockerfile for container management capabilities
- Mount docker socket and storage volumes in compose.yml with privileged mode
- Register TerminalView and TerminalSocketView routes in app router for web terminal access
This commit is contained in:
2025-03-22 17:16:36 +00:00
parent 0614251626
commit 20c2209162
3 changed files with 8 additions and 1 deletions
+3 -1
View File
@@ -37,7 +37,7 @@ from snek.view.upload import UploadView
from snek.view.search_user import SearchUserView
from snek.view.avatar import AvatarView
from snek.system.profiler import profiler_handler
from snek.view.terminal import TerminalView, TerminalSocketView
SESSION_KEY = b"c79a0c5fda4b424189c427d28c9f7c34"
@@ -115,6 +115,8 @@ class Application(BaseApplication):
self.router.add_get("/rpc.ws", RPCView)
self.router.add_view("/channel/{channel}.html", WebView)
self.router.add_view("/threads.html", ThreadsView)
self.router.add_view("/terminal.ws", TerminalSocketView)
self.router.add_view("/terminal.html", TerminalView)
self.add_subapp(
"/docs",