services: add debug message with service running and a link

This commit is contained in:
tylen 2025-04-03 19:50:47 +00:00
parent b3e6db87fa
commit 5d2f509a72

View File

@ -81,6 +81,11 @@ class DockerServiceCLI(BaseCli):
subprocess.run(command, check=True) subprocess.run(command, check=True)
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
self.error(f"Error executing command: {' '.join(command)}, return code: {e.returncode}") self.error(f"Error executing command: {' '.join(command)}, return code: {e.returncode}")
url=f"http://{service.host.ip}"
if len(service.ports) > 0:
url += f":{service.ports[0]}"
self.info(f"Service {service.name} running on {service.host.ip}:{service.ports[0]}")
def start(self): def start(self):