From d383be3fbbb68093193d1815dca0a91cd77c5523 Mon Sep 17 00:00:00 2001 From: Shroominic Date: Mon, 22 Jul 2024 00:50:28 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=8B=20docker=20box?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/codeboxapi/docker.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/codeboxapi/docker.py b/src/codeboxapi/docker.py index 35c09ae..67dd073 100644 --- a/src/codeboxapi/docker.py +++ b/src/codeboxapi/docker.py @@ -37,4 +37,9 @@ def __init__( ["docker", "run", "-d", "--rm", "-p", f"{self.port}:8069", image], check=True, ) - self.aclient = httpx.AsyncClient(base_url=f"http://localhost:{self.port}") + self.base_url = f"http://localhost:{self.port}" + self.client = httpx.Client(base_url=self.base_url) + self.aclient = httpx.AsyncClient(base_url=self.base_url) + + # def healthcheck(self) -> str: + # return self.client.get("/").text