Skip to content

Commit

Permalink
🐋 docker box
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Jul 21, 2024
1 parent 0d737d5 commit d383be3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/codeboxapi/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d383be3

Please sign in to comment.