Skip to content

Commit 9243571

Browse files
authored
Merge pull request #66 from hawkeye217/memryx
Memryx
2 parents 0137d59 + 4d5127b commit 9243571

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

docker/main/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,13 @@ RUN wget -q https://bootstrap.pypa.io/get-pip.py -O get-pip.py \
177177
&& python3 get-pip.py "pip"
178178

179179
# Build MemryX SDK wheel
180-
RUN pip3 wheel --wheel-dir=/wheels/memx/ --extra-index-url https://developer.memryx.com/pip memryx~=1.2.0
180+
RUN pip3 wheel --wheel-dir=/wheels/memx/ \
181+
--index-url https://download.pytorch.org/whl/cpu \
182+
--extra-index-url https://developer.memryx.com/pip \
183+
--extra-index-url https://pypi.org/simple \
184+
memryx~=1.2.0
185+
186+
RUN rm -f /wheels/memx/PySide6* /wheels/memx/Qt* /wheels/memx/qt_material*
181187

182188
COPY docker/main/requirements.txt /requirements.txt
183189
RUN pip3 install -r /requirements.txt

docs/docs/frigate/installation.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,16 @@ devices:
165165
- /dev/memx0
166166
```
167167

168-
During the configuration process, you should run Docker in privileged mode.
168+
During configuration, you must run Docker in privileged mode and ensure the container can access the host network gateway.
169169

170-
In `docker-compose.yml`, add: `privileged: true`
170+
In your `docker-compose.yml`, also add:
171+
172+
```yaml
173+
privileged: true
174+
175+
extra_hosts:
176+
- "gateway.docker.internal:host-gateway"
177+
```
171178

172179
If you can't use Docker Compose, you can run the container with something similar to this:
173180

0 commit comments

Comments
 (0)