mirror of
https://github.com/EDeev/api_processor.git
synced 2026-10-07 20:49:34 +03:00
Образы на git.deev.su вместо dcr.deev.su: реестр zot выведен из работы, копию из GHCR делает синхронизатор
This commit is contained in:
parent
479e0c96ad
commit
76d7db1215
3 changed files with 4 additions and 10 deletions
6
.github/workflows/docker.yml
vendored
6
.github/workflows/docker.yml
vendored
|
|
@ -19,17 +19,11 @@ jobs:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: dcr.deev.su
|
|
||||||
username: ${{ secrets.ZOT_USERNAME }}
|
|
||||||
password: ${{ secrets.ZOT_PASSWORD }}
|
|
||||||
- id: meta
|
- id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
ghcr.io/edeev/api_processor
|
ghcr.io/edeev/api_processor
|
||||||
dcr.deev.su/edeev/api_processor
|
|
||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ docker compose up -d # API at http://localhost:8000
|
||||||
```
|
```
|
||||||
|
|
||||||
The Vosk model and FFmpeg are inside the image. Prebuilt image: `docker pull ghcr.io/edeev/api_processor` or
|
The Vosk model and FFmpeg are inside the image. Prebuilt image: `docker pull ghcr.io/edeev/api_processor` or
|
||||||
`docker pull dcr.deev.su/edeev/api_processor`.
|
`docker pull git.deev.su/edeev/api_processor`.
|
||||||
|
|
||||||
Without Docker you need:
|
Without Docker you need:
|
||||||
- FFmpeg in `PATH`;
|
- FFmpeg in `PATH`;
|
||||||
|
|
@ -111,7 +111,7 @@ What the tests cover:
|
||||||
- limits and the token;
|
- limits and the token;
|
||||||
- a real gRPC server and an unavailable one.
|
- a real gRPC server and an unavailable one.
|
||||||
|
|
||||||
The Docker image is built on `v*` tags and published to GitHub Packages and `dcr.deev.su`.
|
The Docker image is built on `v*` tags and published to GitHub Packages and `git.deev.su`.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ docker compose up -d # API на http://localhost:8000
|
||||||
```
|
```
|
||||||
|
|
||||||
Модель Vosk и FFmpeg уже внутри образа. Готовый образ: `docker pull ghcr.io/edeev/api_processor` или
|
Модель Vosk и FFmpeg уже внутри образа. Готовый образ: `docker pull ghcr.io/edeev/api_processor` или
|
||||||
`docker pull dcr.deev.su/edeev/api_processor`.
|
`docker pull git.deev.su/edeev/api_processor`.
|
||||||
|
|
||||||
Без Docker нужны:
|
Без Docker нужны:
|
||||||
- FFmpeg в `PATH`;
|
- FFmpeg в `PATH`;
|
||||||
|
|
@ -121,7 +121,7 @@ ruff check --select E9,F,B --exclude proto . && pytest
|
||||||
- лимиты и токен;
|
- лимиты и токен;
|
||||||
- работу с настоящим gRPC-сервером и его недоступность.
|
- работу с настоящим gRPC-сервером и его недоступность.
|
||||||
|
|
||||||
Docker-образ собирается по тегу `v*` и публикуется в GitHub Packages и `dcr.deev.su`.
|
Docker-образ собирается по тегу `v*` и публикуется в GitHub Packages и `git.deev.su`.
|
||||||
|
|
||||||
Код gRPC пересобирается так:
|
Код gRPC пересобирается так:
|
||||||
`python -m grpc_tools.protoc -Iproto --python_out=proto --grpc_python_out=proto proto/text_service.proto`.
|
`python -m grpc_tools.protoc -Iproto --python_out=proto --grpc_python_out=proto proto/text_service.proto`.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue