feature/multiple-compose #11
|
@ -6,6 +6,7 @@ import os
|
|||
import sh
|
||||
import subprocess
|
||||
from nicegui import ui, run, app
|
||||
import yaml
|
||||
|
||||
import docker
|
||||
import aiodocker
|
||||
|
@ -117,12 +118,19 @@ class Robot:
|
|||
# ui.label(container.attrs["Config"]["Cmd"])
|
||||
cmd_widget = ui.codemirror(" ".join(container.attrs["Config"]["Cmd"]), language="bash",theme="basicDark").classes('h-auto max-h-32')
|
||||
cmd_widget.enabled = False
|
||||
|
||||
with ui.expansion("Env Variables").classes("w-full outline outline-1").style("margin: 10px;"):
|
||||
env_widget = ui.codemirror("\n".join(container.attrs["Config"]["Env"]), language="bash",theme="basicDark")
|
||||
env_widget.enabled = False
|
||||
|
||||
logelement = (
|
||||
ui.expansion("Logs")
|
||||
.style("margin: 10px;")
|
||||
.classes("w-full outline outline-1")
|
||||
)
|
||||
asyncio.create_task(container_logs(container, logelement))
|
||||
with ui.expansion("Full details").classes("w-full outline outline-1").style("margin: 10px;"):
|
||||
details_widget = ui.codemirror(yaml.dump(container.attrs), language="yaml",theme="basicDark")
|
||||
# Check for containers that have been removed
|
||||
removed = set(docker_elements.keys()) - set(self.containers())
|
||||
for container in removed:
|
||||
|
|
Loading…
Reference in New Issue