Skip to content

Commit 818dd89

Browse files
committed
Use docker with gevent fix
1 parent b0ec798 commit 818dd89

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

backend_py/requirements.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
event_emitter==0.3.0
2-
gevent==24.2.1
1+
#gevent==22.10.2
32
linuxpy==0.13.0
43
natsort==8.4.0
54
PyEventEmitter==1.0.5
@@ -8,6 +7,4 @@ fastapi
87
pydantic
98
python-socketio
109
dbus-python==1.2.18
11-
uvicorn
12-
sdbus==0.14.0
13-
sdbus-networkmanager==2.0.0
10+
uvicorn

docker/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ COPY release/backend_py/requirements.txt .
2222
# Copy apt requirements with cache
2323
COPY release/install_requirements.sh .
2424

25+
RUN pip install --no-build-isolation gevent==22.10.2
26+
2527
RUN pip install --no-cache-dir -r requirements.txt
2628

2729
RUN sh install_requirements.sh
@@ -45,7 +47,7 @@ LABEL permissions='{ \
4547
}, \
4648
"HostConfig": { \
4749
"Privileged": true, \
48-
"Binds": ["/sys/class/video4linux:/sys/class/video4linux", "dweos-settings:/settings", "/dev:/dev"], \
50+
"Binds": ["/sys/class/video4linux:/sys/class/video4linux", "/usr/blueos/userdata/dwe_os_2:/settings", "/dev:/dev"], \
4951
"PortBindings": { \
5052
"8000/tcp": [ \
5153
{ \
@@ -87,4 +89,4 @@ WORKDIR /opt/DWE_OS_2
8789
RUN mkdir /settings
8890

8991
# Run DWE_OS_2
90-
CMD ["python3", "/opt/DWE_OS_2/run_release.py", "--no-ttyd", "--port", "8000", "--no-wifi", "--settings-path", "/settings"]
92+
CMD ["python3", "/opt/DWE_OS_2/run_release.py", "--no-ttyd", "--port", "8000", "--no-wifi", "--settings-path", "/settings"]

0 commit comments

Comments
 (0)