Updated Usage (markdown)
11
Usage.md
11
Usage.md
@@ -42,17 +42,10 @@ Different extensions require additional dependencies. Some of them might conflic
|
|||||||
There is also the option to create a script `data/config/auto/startup.sh` which will be called on container startup, in case you want to install any additional dependencies for your extensions or anything else.
|
There is also the option to create a script `data/config/auto/startup.sh` which will be called on container startup, in case you want to install any additional dependencies for your extensions or anything else.
|
||||||
|
|
||||||
|
|
||||||
In case something goes wrong with some dependency (as it is usually the case, unfortunately) you can always comment section in `startup.sh` file, remove the extension, and do `docker compose --profile auto down` to clean up messy containers. When run again, you will have a fresh container.
|
|
||||||
|
|
||||||
|
|
||||||
An example of your `startup.sh` might looks like this:
|
An example of your `startup.sh` might looks like this:
|
||||||
```sh
|
```sh
|
||||||
# install all packages for the extensions
|
#!/bin/bash
|
||||||
shopt -s nullglob
|
|
||||||
list=(./extensions/*/requirements.txt)
|
|
||||||
for req in "${list[@]}"; do
|
|
||||||
pip install -q -r "$req"
|
|
||||||
done
|
|
||||||
# opencv-python-headless to not rely on opengl and drivers.
|
# opencv-python-headless to not rely on opengl and drivers.
|
||||||
pip install -q --force-reinstall opencv-python-headless
|
pip install -q --force-reinstall opencv-python-headless
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user