This commit is contained in:
Jonatan Rek
2024-10-01 16:54:00 +02:00
parent 2cfa1cc9b7
commit 9a2afed1f1
4 changed files with 40 additions and 8 deletions
+25
View File
@@ -0,0 +1,25 @@
# VMS - Český Krumlov - Anonymizer
#### Docker Build - Powershell (One Line)
```powershell
$tag = ("0.0.1").Trim(); git reset --hard; git pull origin master; git tag $tag; git push --tags; docker build -t git.steelants.cz/steelants/py_ck:$tag .; docker push git.steelants.cz/steelants/py_ck:$tag; docker build -t git.steelants.cz/steelants/py_ck:latest .; docker push git.steelants.cz/steelants/py_ck:latest
```
#### Docker Build - Bash (One Line)
```bash
export TAG="0.0.1" && sudo docker build -t git.steelants.cz/steelants/py_ck:"$TAG" . && sudo docker push git.steelants.cz/steelants/py_ck:"$TAG" && sudo docker build -t git.steelants.cz/steelants/py_ck:latest . && sudo docker push git.steelants.cz/steelants/py_ck:latest
```
#### Docker Stack Setup
```yaml
services:
ck-anonym:
image: git.steelants.cz/steelants/lar_py:latest
restart: unless-stopped
environment:
API_ROOT: http://ck:8080
FACE_TRASHOLD: 0.5
volumes:
- ${PWD}/app_data/:/app/data/
networks: {}
```