Skip to content

Commit c0aea30

Browse files
fixes check for ui is ready (#4)
* fixes check for ui is ready * fix Dockerfile
1 parent b892149 commit c0aea30

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ FROM python:3.10-slim
22

33
WORKDIR /program
44

5+
RUN apt-get update && apt-get install -y docker-compose
6+
57
COPY requirements.txt .
68

79
RUN pip3 install -r requirements.txt

replace_release_build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
22

3-
#alfred version v1.5.0 -> needs to be changed to the one currently used by refinery if nessecary
3+
#alfred version v1.13.0 -> needs to be changed to the one currently used by refinery if nessecary
44

55
echo -ne 'building container...'
6-
docker build -t kernai/alfred:v1.5.0 -f Dockerfile . > /dev/null 2>&1
6+
docker build -t kernai/alfred:v1.13.0 -f Dockerfile . > /dev/null 2>&1
77
echo -ne '\t\t [done]\n'
88

99
echo -ne 'start refinery like normal (the tag was replaced)'

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
docker
2-
docker-compose
1+
docker

util/docker_helper.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ def is_uvicorn_application_started(container_name: str) -> bool:
8383
def is_ui_service_ready(container_name: str) -> bool:
8484
try:
8585
container = client.containers.list(filters={"name": container_name})[0]
86-
return "Configuration complete; ready for start up" in container.logs().decode(
87-
"utf-8"
88-
)
86+
return "Ready in" in container.logs().decode("utf-8")
8987
except IndexError:
9088
return False
9189

0 commit comments

Comments
 (0)