mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
ci: use github-token to get around potential api throttling + rework dockerfile (#554)
* ci: use github-token to get around potential api throttling * build: put pyannote-audio separate to the project * fix: now that we have a readme, use it * build: add UV_NO_CACHE
This commit is contained in:
1
.github/workflows/deploy.yml
vendored
1
.github/workflows/deploy.yml
vendored
@@ -53,6 +53,7 @@ jobs:
|
|||||||
tags: ${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPOSITORY }}:latest-${{ matrix.arch }}
|
tags: ${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPOSITORY }}:latest-${{ matrix.arch }}
|
||||||
cache-from: type=gha,scope=${{ matrix.arch }}
|
cache-from: type=gha,scope=${{ matrix.arch }}
|
||||||
cache-to: type=gha,mode=max,scope=${{ matrix.arch }}
|
cache-to: type=gha,mode=max,scope=${{ matrix.arch }}
|
||||||
|
github-token: ${{ secrets.GHA_CACHE_TOKEN }}
|
||||||
provenance: false
|
provenance: false
|
||||||
|
|
||||||
create-manifest:
|
create-manifest:
|
||||||
|
|||||||
6
.github/workflows/test_server.yml
vendored
6
.github/workflows/test_server.yml
vendored
@@ -40,7 +40,8 @@ jobs:
|
|||||||
context: server
|
context: server
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
cache-from: type=gha,scope=amd64
|
cache-from: type=gha,scope=amd64
|
||||||
cache-to: type=gha,mode=min,scope=amd64
|
cache-to: type=gha,mode=max,scope=amd64
|
||||||
|
github-token: ${{ secrets.GHA_CACHE_TOKEN }}
|
||||||
|
|
||||||
docker-arm64:
|
docker-arm64:
|
||||||
runs-on: linux-arm64
|
runs-on: linux-arm64
|
||||||
@@ -54,4 +55,5 @@ jobs:
|
|||||||
context: server
|
context: server
|
||||||
platforms: linux/arm64
|
platforms: linux/arm64
|
||||||
cache-from: type=gha,scope=arm64
|
cache-from: type=gha,scope=arm64
|
||||||
cache-to: type=gha,mode=min,scope=arm64
|
cache-to: type=gha,mode=max,scope=arm64
|
||||||
|
github-token: ${{ secrets.GHA_CACHE_TOKEN }}
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
FROM python:3.12-slim
|
FROM python:3.12-slim
|
||||||
|
|
||||||
ENV PYTHONUNBUFFERED=1 \
|
ENV PYTHONUNBUFFERED=1 \
|
||||||
UV_LINK_MODE=copy
|
UV_LINK_MODE=copy \
|
||||||
|
UV_NO_CACHE=1
|
||||||
|
|
||||||
# builder install base dependencies
|
# builder install base dependencies
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
@@ -13,8 +14,8 @@ ENV PATH="/root/.local/bin/:$PATH"
|
|||||||
# install application dependencies
|
# install application dependencies
|
||||||
RUN mkdir -p /app
|
RUN mkdir -p /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY pyproject.toml uv.lock /app/
|
COPY pyproject.toml uv.lock README.md /app/
|
||||||
RUN touch README.md && env uv sync --compile-bytecode --locked
|
RUN uv sync --compile-bytecode --locked
|
||||||
|
|
||||||
# pre-download nltk packages
|
# pre-download nltk packages
|
||||||
RUN uv run python -c "import nltk; nltk.download('punkt_tab'); nltk.download('averaged_perceptron_tagger_eng')"
|
RUN uv run python -c "import nltk; nltk.download('punkt_tab'); nltk.download('averaged_perceptron_tagger_eng')"
|
||||||
|
|||||||
@@ -40,3 +40,5 @@ uv run python -c "from reflector.pipelines.main_live_pipeline import task_pipeli
|
|||||||
```bash
|
```bash
|
||||||
uv run python -c "from reflector.pipelines.main_live_pipeline import pipeline_post; pipeline_post(transcript_id='TRANSCRIPT_ID')"
|
uv run python -c "from reflector.pipelines.main_live_pipeline import pipeline_post; pipeline_post(transcript_id='TRANSCRIPT_ID')"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
.
|
||||||
|
|||||||
Reference in New Issue
Block a user