Added more useful docker tools
Build Docs / build (push) Failing after 45s
Details
Build Docs / build (push) Failing after 45s
Details
This commit is contained in:
parent
af170070ab
commit
43fead1589
|
@ -6,6 +6,7 @@ import os
|
||||||
import sh
|
import sh
|
||||||
import subprocess
|
import subprocess
|
||||||
from nicegui import ui, run, app
|
from nicegui import ui, run, app
|
||||||
|
import yaml
|
||||||
|
|
||||||
import docker
|
import docker
|
||||||
import aiodocker
|
import aiodocker
|
||||||
|
@ -117,12 +118,19 @@ class Robot:
|
||||||
# ui.label(container.attrs["Config"]["Cmd"])
|
# 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 = ui.codemirror(" ".join(container.attrs["Config"]["Cmd"]), language="bash",theme="basicDark").classes('h-auto max-h-32')
|
||||||
cmd_widget.enabled = False
|
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 = (
|
logelement = (
|
||||||
ui.expansion("Logs")
|
ui.expansion("Logs")
|
||||||
.style("margin: 10px;")
|
.style("margin: 10px;")
|
||||||
.classes("w-full outline outline-1")
|
.classes("w-full outline outline-1")
|
||||||
)
|
)
|
||||||
asyncio.create_task(container_logs(container, logelement))
|
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
|
# Check for containers that have been removed
|
||||||
removed = set(docker_elements.keys()) - set(self.containers())
|
removed = set(docker_elements.keys()) - set(self.containers())
|
||||||
for container in removed:
|
for container in removed:
|
||||||
|
|
Loading…
Reference in New Issue