Updated Usage (markdown)

AbdBarho
2023-06-25 11:45:33 +02:00
parent 75c5451546
commit 0892c0d0fb

@@ -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.
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:
```sh
# install all packages for the extensions
shopt -s nullglob
list=(./extensions/*/requirements.txt)
for req in "${list[@]}"; do
pip install -q -r "$req"
done
#!/bin/bash
# opencv-python-headless to not rely on opengl and drivers.
pip install -q --force-reinstall opencv-python-headless
```