-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from codeforequity-at/develop
Version 1.0.0
- Loading branch information
Showing
25 changed files
with
681 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
COMPOSE_PROJECT_NAME=botiumspeechprocessing | ||
TAG=latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
COMPOSE_PROJECT_NAME=botiumspeechprocessing | ||
TAG=develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
logs | ||
logs | ||
docker-compose.override.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
TAG_COMMIT := $(shell git rev-list --abbrev-commit --tags --max-count=1) | ||
VERSION := $(shell git describe --abbrev=0 --tags ${TAG_COMMIT} 2>/dev/null || true) | ||
|
||
docker_build_develop: | ||
docker build -t botium/botium-speech-frontend:develop frontend | ||
docker build -t botium/botium-speech-watcher:develop watcher | ||
docker build -f stt/Dockerfile.kaldi.en -t botium/botium-speech-kaldi-en:develop stt | ||
docker build -f stt/Dockerfile.kaldi.de -t botium/botium-speech-kaldi-de:develop stt | ||
docker build -f tts/Dockerfile.marytts -t botium/botium-speech-marytts:develop tts | ||
docker build -t botium/botium-speech-dictate:develop dictate | ||
|
||
docker_publish_develop: | ||
docker push botium/botium-speech-frontend:develop | ||
docker push botium/botium-speech-watcher:develop | ||
docker push botium/botium-speech-kaldi-en:develop | ||
docker push botium/botium-speech-kaldi-de:develop | ||
docker push botium/botium-speech-marytts:develop | ||
docker push botium/botium-speech-dictate:develop | ||
|
||
docker_build_release: | ||
docker build -t botium/botium-speech-frontend:$(VERSION) frontend | ||
docker build -t botium/botium-speech-watcher:$(VERSION) watcher | ||
docker build -f stt/Dockerfile.kaldi.en -t botium/botium-speech-kaldi-en:$(VERSION) stt | ||
docker build -f stt/Dockerfile.kaldi.de -t botium/botium-speech-kaldi-de:$(VERSION) stt | ||
docker build -f tts/Dockerfile.marytts -t botium/botium-speech-marytts:$(VERSION) tts | ||
docker build -t botium/botium-speech-dictate:$(VERSION) dictate | ||
|
||
docker_publish_release: | ||
docker push botium/botium-speech-frontend:$(VERSION) | ||
docker push botium/botium-speech-watcher:$(VERSION) | ||
docker push botium/botium-speech-kaldi-en:$(VERSION) | ||
docker push botium/botium-speech-kaldi-de:$(VERSION) | ||
docker push botium/botium-speech-marytts:$(VERSION) | ||
docker push botium/botium-speech-dictate:$(VERSION) | ||
|
||
docker_latest_release: | ||
docker tag botium/botium-speech-frontend:$(VERSION) botium/botium-speech-frontend:latest | ||
docker push botium/botium-speech-frontend:latest | ||
|
||
docker tag botium/botium-speech-watcher:$(VERSION) botium/botium-speech-watcher:latest | ||
docker push botium/botium-speech-watcher:latest | ||
|
||
docker tag botium/botium-speech-kaldi-en:$(VERSION) botium/botium-speech-kaldi-en:latest | ||
docker push botium/botium-speech-kaldi-en:latest | ||
|
||
docker tag botium/botium-speech-kaldi-de:$(VERSION) botium/botium-speech-kaldi-de:latest | ||
docker push botium/botium-speech-kaldi-de:latest | ||
|
||
docker tag botium/botium-speech-marytts:$(VERSION) botium/botium-speech-marytts:latest | ||
docker push botium/botium-speech-marytts:latest | ||
|
||
docker tag botium/botium-speech-dictate:$(VERSION) botium/botium-speech-dictate:latest | ||
docker push botium/botium-speech-dictate:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
version: '3' | ||
services: | ||
nginx: | ||
image: nginx | ||
restart: always | ||
volumes: | ||
- ./nginx.conf:/etc/nginx/nginx.conf | ||
ports: | ||
- 80:80 | ||
frontend: | ||
image: botium/botium-speech-frontend:latest | ||
restart: always | ||
environment: | ||
BOTIUM_API_TOKENS: | ||
BOTIUM_SPEECH_PROVIDER_TTS: google | ||
BOTIUM_SPEECH_PROVIDER_STT: google | ||
BOTIUM_SPEECH_GOOGLE_CLIENT_EMAIL: | ||
BOTIUM_SPEECH_GOOGLE_PRIVATE_KEY: | ||
volumes: | ||
- "./frontend/resources:/app/resources" | ||
watcher: | ||
image: botium/botium-speech-watcher:latest | ||
restart: always | ||
volumes: | ||
- "./watcher:/app/watch" | ||
- "./logs/watcher:/app/logs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
version: '3' | ||
services: | ||
nginx: | ||
image: nginx | ||
restart: always | ||
volumes: | ||
- ./nginx.conf:/etc/nginx/nginx.conf | ||
ports: | ||
- 80:80 | ||
frontend: | ||
image: botium/botium-speech-frontend:latest | ||
restart: always | ||
environment: | ||
BOTIUM_API_TOKENS: | ||
BOTIUM_SPEECH_PROVIDER_TTS: picotts | ||
BOTIUM_SPEECH_PROVIDER_STT: kaldi | ||
volumes: | ||
- "./frontend/resources:/app/resources" | ||
watcher: | ||
image: botium/botium-speech-watcher:latest | ||
restart: always | ||
volumes: | ||
- "./watcher:/app/watch" | ||
- "./logs/watcher:/app/logs" | ||
stt_en: | ||
image: botium/botium-speech-kaldi-en:latest | ||
restart: always | ||
volumes: | ||
- "./logs/stt_en:/opt/logs" | ||
stt_de: | ||
image: botium/botium-speech-kaldi-de:latest | ||
restart: always | ||
volumes: | ||
- "./logs/stt_de:/opt/logs" | ||
dictate: | ||
image: botium/botium-speech-dictate:latest | ||
restart: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: '3' | ||
services: | ||
dictate: | ||
image: botium/botium-speech-dictate:develop | ||
environment: | ||
STT_URL_DE: wss://speech.botiumbox.com/stt_de | ||
STT_URL_EN: wss://speech.botiumbox.com/stt_en |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
FROM ubuntu:18.04 | ||
|
||
RUN apt-get update && apt-get -y install curl gnupg && curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt-get -y install nodejs | ||
RUN apt-get install -y dos2unix sox libsox-fmt-mp3 libttspico-utils | ||
RUN apt-get update && apt-get install -y dos2unix sox libsox-fmt-mp3 libttspico-utils ffmpeg | ||
|
||
WORKDIR /app | ||
COPY . /app | ||
RUN find . -type f -print0 | xargs -0 dos2unix | ||
COPY ./package.json /app/package.json | ||
RUN npm install --no-optional --production | ||
COPY . /app | ||
COPY ./resources/.env /app/.env | ||
RUN find . -type f ! -path '*/node_modules/*' -print0 | xargs -0 dos2unix | ||
|
||
VOLUME /app/resources | ||
|
||
EXPOSE 56000 | ||
|
||
CMD npm start | ||
RUN groupadd --gid 1000 node && useradd --uid 1000 --gid node --shell /bin/bash --create-home node | ||
USER node | ||
CMD npm run start-dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.