mirror of https://github.com/ekimekim/wubloader
buscribe-remainder: delete things we've already handled/don't need
parent
d5caace905
commit
5f3a02fd14
@ -1,3 +0,0 @@
|
|||||||
# buscribe
|
|
||||||
|
|
||||||
Transcription for DB
|
|
@ -1,15 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
VERSION=0.0.0
|
|
||||||
|
|
||||||
#bash fetch_models.sh
|
|
||||||
|
|
||||||
docker build -f buscribe/Dockerfile -t buscribe:$VERSION ..
|
|
||||||
docker build -f buscribe-api/Dockerfile -t buscribe-api:$VERSION ..
|
|
||||||
docker build -f professor-api/Dockerfile -t professor-api:$VERSION ..
|
|
||||||
|
|
||||||
docker build -f docker-less/Dockerfile -t lessc ..
|
|
||||||
docker run --rm -v "$(pwd)"/buscribe-web:/buscribe-web lessc /buscribe-web/style.less > buscribe-web/style.css
|
|
||||||
docker run --rm -v "$(pwd)"/professor:/professor lessc /professor/style.less > professor/style.css
|
|
||||||
|
|
||||||
docker build -f nginx/Dockerfile -t buscribe-web:$VERSION ..
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
mkdir models && cd models || exit
|
|
||||||
curl -LO http://alphacephei.com/vosk/models/vosk-model-en-us-0.22.zip
|
|
||||||
curl -LO http://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip
|
|
||||||
curl -LO https://alphacephei.com/vosk/models/vosk-model-spk-0.4.zip
|
|
||||||
|
|
||||||
mkdir extracted
|
|
||||||
unzip vosk-model-en-us-0.22.zip -d extracted
|
|
||||||
unzip vosk-model-small-en-us-0.15.zip -d extracted
|
|
||||||
unzip vosk-model-spk-0.4.zip -d extracted
|
|
@ -1,5 +0,0 @@
|
|||||||
FROM nginx:latest
|
|
||||||
|
|
||||||
COPY buscribe/buscribe-web /usr/share/nginx/html/buscribe
|
|
||||||
COPY buscribe/professor /usr/share/nginx/html/professor
|
|
||||||
COPY buscribe/nginx/nginx.conf /etc/nginx/nginx.conf
|
|
@ -1,57 +0,0 @@
|
|||||||
|
|
||||||
user nginx;
|
|
||||||
worker_processes auto;
|
|
||||||
|
|
||||||
error_log /var/log/nginx/error.log notice;
|
|
||||||
pid /var/run/nginx.pid;
|
|
||||||
|
|
||||||
|
|
||||||
events {
|
|
||||||
worker_connections 1024;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
http {
|
|
||||||
include /etc/nginx/mime.types;
|
|
||||||
default_type application/octet-stream;
|
|
||||||
|
|
||||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
||||||
'$status $body_bytes_sent "$http_referer" '
|
|
||||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log main;
|
|
||||||
|
|
||||||
sendfile on;
|
|
||||||
#tcp_nopush on;
|
|
||||||
|
|
||||||
keepalive_timeout 65;
|
|
||||||
|
|
||||||
gzip on;
|
|
||||||
gzip_comp_level 9;
|
|
||||||
|
|
||||||
absolute_redirect off;
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name localhost;
|
|
||||||
|
|
||||||
|
|
||||||
#access_log /var/log/nginx/host.access.log main;
|
|
||||||
|
|
||||||
location / { proxy_pass http://nginx; }
|
|
||||||
location /buscribelrr {
|
|
||||||
alias /usr/share/nginx/html/buscribe;
|
|
||||||
}
|
|
||||||
location /buscribe {
|
|
||||||
alias /usr/share/nginx/html/buscribe;
|
|
||||||
}
|
|
||||||
location /professor {
|
|
||||||
alias /usr/share/nginx/html/professor;
|
|
||||||
}
|
|
||||||
|
|
||||||
#location /buscribe/loadingreadyrun/json { proxy_pass http://buscribeapilrr:8010/buscribe/json; }
|
|
||||||
location /buscribe/desertbus/json { proxy_pass http://buscribeapidb:8010/buscribe/json; }
|
|
||||||
location /professor/desertbus { proxy_pass http://professorapidb:8011/professor; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
docker run \
|
|
||||||
--rm \
|
|
||||||
-v /srv/wubloader/segments/:/mnt/ \
|
|
||||||
buscribe:0.0.0 \
|
|
||||||
loadingreadyrun \
|
|
||||||
--start-time='2021-11-05T00:00' \
|
|
||||||
--end-time='2021-11-07T00:00' \
|
|
||||||
--database=postgresql://vst:flnMSYPRf@mula.lan:6543/buscribe_lrr \
|
|
||||||
--model=/usr/share/buscribe/vosk-model-en-us-0.22/
|
|
||||||
# --model=/usr/share/buscribe/vosk-model-small-en-us-0.15/
|
|
Loading…
Reference in New Issue