- Configure the Linux kernel to allow IP forward
sysctl net.ipv4.conf.all.forwarding=1
- Change the policy for the
iptables
FORWARD
policy fromDROP
toACCEPT
sudo iptables -P FORWARD ACCEPT
Volumes of the containers use env file for define path to access images and output files (json).
Variable for set path to images is PATH_IMG
:
PATH_IMG=/path/to/images
Variable for set path to locate directory to store json files is PATH_OUT
:
PATH_OUT=/path/to/out/directory
Configuration app documentation
For installing, we recommande to use script deploy.sh
.
For installing, we recommande to use script deploy.ps1
.
For generate one container you write command bellow (--create
) :
./deploy.sh --create
For delete all containers generate by this script I just use argument --drop
.
./deploy.sh --drop
If you wish reboot all containers, you use argument --start
.
./deploy.sh --start
For collect informations of all containers you use --infos
.
./deploy.sh --infos
Result of all treatment write in data.json
.
{
"idProduct": "BQ5448",
"lstImg": [
"BQ5448_001-3--30666212-defe-4130-b4c1-5e86c70becf8.png",
"BQ5448_001-1--e7758f70-7776-4020-9102-21a1f5d7cb00.png",
"BQ5448_001-2--7916f055-4b3e-45dc-a839-08c8caab2d3e.png"
],
"style": "LOW",
"Colorway": [
{
"mainColor": {
"name": "ANTHRACITE",
"rgb": [
48,
48,
48
]
}
},
{
"secondaryColor": {
"name": "LICORICE",
"rgb": [
37.5,
33.0,
33.0
]
}
}
],
"probaShoes": 0.995
}