Files
PY_CK/README.md
2025-01-02 12:29:52 +01:00

29 lines
1.0 KiB
Markdown

# VMS - Český Krumlov - Anonymizer
#### Docker Build - Powershell (One Line)
```powershell
$tag = ("0.0.4").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.5" && 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/py_ck:latest
restart: unless-stopped
environment:
API_ROOT: http://ck:8080
FACE_TRASHOLD: 0.5
volumes:
- ${PWD}/app_data/:/app/data/
networks: {}
```
```python
pip3 install -r requirements.txt
```