Skip to content

Commit

Permalink
Add native dev scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
double16 committed Dec 16, 2024
1 parent 700fa7a commit a0293c5
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
32 changes: 32 additions & 0 deletions dev-native/docker-compose-langtools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# Stack for local development.
# Create a docker-compose.local.yml with your directories similar to:
#
# services:
# media-hare:
# volumes:
# - /path/to/host/data:/data
#
# Run with:
# docker compose -p mh -f docker-compose.yml -f docker-compose.local.yml up --build -d
#
# export LANGUAGE_TOOL_HOST=localhost LANGUAGE_TOOL_PORT=8100 KALDI_EN_HOST=localhost KALDI_EN_PORT=2700
#

services:

kaldi-en:
image: alphacep/kaldi-en:latest
restart: unless-stopped
environment:
- "VOSK_SHOW_WORDS=true"
- "VOSK_ALTERNATIVES=0"
ports:
- "2700:2700/tcp"

langtool:
image: ghcr.io/double16/libreoffice-langtool:main
restart: unless-stopped
ports:
- "8100:8100/tcp"

8 changes: 8 additions & 0 deletions dev-native/media-hare-activate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
docker compose -p mh -f "$(dirname "$0")/docker-compose-langtools.yml" up -d
source "$(dirname "$0")/../.venv/bin/activate"
export PATH="${PATH}:$(dirname "$0")/../dvrprocess"
export LANGUAGE_TOOL_HOST=localhost
export KALDI_EN_HOST=localhost
export KALDI_EN_PORT=2700
export LANGUAGE_TOOL_PORT=8100

0 comments on commit a0293c5

Please sign in to comment.