update repository references and improve script handling

This commit is contained in:
2025-03-19 20:36:36 +01:00
parent 51b0252b0e
commit 1d90749486
160 changed files with 14361 additions and 18 deletions

4
facebox/Dockerfile Executable file
View File

@@ -0,0 +1,4 @@
FROM machinebox/facebox
RUN apt-get install jq -y
COPY run.sh /
ENTRYPOINT ["/run.sh"]

14
facebox/README.md Executable file
View File

@@ -0,0 +1,14 @@
![amd64][amd64-shield]
# Facebox
To use this add-on create a Veritone Developer account and login at:
https://machinebox.io/login
Click on the Machine Box navigation link to view your `MB_KEY`.
Enter your `MB_KEY` into the configuration of the add-on.
[Documentation](https://machinebox.io/docs/facebox)
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg

22
facebox/config.json Executable file
View File

@@ -0,0 +1,22 @@
{
"name": "Facebox",
"version": "1a1358d",
"url": "https://machinebox.io/docs/facebox",
"slug": "facebox",
"description": "Facial recognition with one-shot teaching",
"arch": ["amd64"],
"startup": "application",
"boot": "auto",
"ports": {
"8080/tcp": 8000
},
"ports_description": {
"8080/tcp": "UI/API"
},
"options": {
"MB_KEY": ""
},
"schema": {
"MB_KEY": "str"
}
}

BIN
facebox/icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

6
facebox/run.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
values=`cat /data/options.json`
for s in $(echo $values | jq -r "to_entries|map(\"\(.key)=\(.value|tostring)\")|.[]" ); do
export $s
done
/app/facebox