Skip to content

Commit

Permalink
fix socket connection and test it in CI
Browse files Browse the repository at this point in the history
Signed-off-by: dciangot <[email protected]>
  • Loading branch information
dciangot committed Sep 14, 2024
1 parent 2443ada commit b620fb6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions example/provider_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
import docker
import re
import os
import sqlite3


docker_client = docker.DockerClient()
# dockerCLI = docker.DockerClient(base_url="unix:///Users/dciangot/.docker/run/docker.sock")
con = sqlite3.connect("plugin.db")
cur = con.cursor()
cur.execute("CREATE TABLE pods(pod_id,j_id,state)")

app = FastAPI()

Expand Down Expand Up @@ -245,4 +246,4 @@ async def status_pod(pods: List[interlink.PodRequest]) -> List[interlink.PodStat

@app.get("/getLogs", response_class=PlainTextResponse)
async def get_logs(req: interlink.LogRequest) -> bytes:
return provider_new.get_logs(req)
return provider_new.get_logs(req)

0 comments on commit b620fb6

Please sign in to comment.