From 5f3a02fd147efd72d99a9d6ec4020e019025e239 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Fri, 18 Oct 2024 10:01:58 +1100 Subject: [PATCH] buscribe-remainder: delete things we've already handled/don't need --- buscribe-remainder/README.md | 3 - buscribe-remainder/build.sh | 15 ----- buscribe-remainder/fetch_models.sh | 11 ---- buscribe-remainder/nginx/Dockerfile | 5 -- buscribe-remainder/nginx/nginx.conf | 57 ------------------- buscribe-remainder/test_buscribe_container.sh | 12 ---- 6 files changed, 103 deletions(-) delete mode 100644 buscribe-remainder/README.md delete mode 100644 buscribe-remainder/build.sh delete mode 100644 buscribe-remainder/fetch_models.sh delete mode 100644 buscribe-remainder/nginx/Dockerfile delete mode 100644 buscribe-remainder/nginx/nginx.conf delete mode 100755 buscribe-remainder/test_buscribe_container.sh diff --git a/buscribe-remainder/README.md b/buscribe-remainder/README.md deleted file mode 100644 index d0add29..0000000 --- a/buscribe-remainder/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# buscribe - -Transcription for DB \ No newline at end of file diff --git a/buscribe-remainder/build.sh b/buscribe-remainder/build.sh deleted file mode 100644 index edbc783..0000000 --- a/buscribe-remainder/build.sh +++ /dev/null @@ -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 .. diff --git a/buscribe-remainder/fetch_models.sh b/buscribe-remainder/fetch_models.sh deleted file mode 100644 index c913d39..0000000 --- a/buscribe-remainder/fetch_models.sh +++ /dev/null @@ -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 diff --git a/buscribe-remainder/nginx/Dockerfile b/buscribe-remainder/nginx/Dockerfile deleted file mode 100644 index 56723f7..0000000 --- a/buscribe-remainder/nginx/Dockerfile +++ /dev/null @@ -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 diff --git a/buscribe-remainder/nginx/nginx.conf b/buscribe-remainder/nginx/nginx.conf deleted file mode 100644 index 178b6e3..0000000 --- a/buscribe-remainder/nginx/nginx.conf +++ /dev/null @@ -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; } - } - -} diff --git a/buscribe-remainder/test_buscribe_container.sh b/buscribe-remainder/test_buscribe_container.sh deleted file mode 100755 index 6702a97..0000000 --- a/buscribe-remainder/test_buscribe_container.sh +++ /dev/null @@ -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/