Skip to content

Commit 44723e3

Browse files
author
Florian Treml
committed
Using prebuilt images
1 parent 0c40a26 commit 44723e3

File tree

5 files changed

+82
-18
lines changed

5 files changed

+82
-18
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,25 @@ Some examples what you can do with this:
4343

4444
_Note: memory usage can be reduced if only one language is required - default configuration comes with two languages._
4545

46-
### Build Docker Containers
46+
### Use Prebuilt Docker Images
4747

4848
Clone or download this repository and start with docker-compose:
4949

5050
> docker-compose up -d
5151

52-
This will take some time to build.
52+
This will download the prebuilt images from Dockerhub.
5353

5454
Point your browser to http://127.0.0.1 to open the [Swagger UI](https://swagger.io/tools/swagger-ui/) and browse/use the API definition.
5555

56+
57+
### Optional: Build Docker Images
58+
59+
You can optionally built your own docker images (if you made any changes in this repository, for instance to download the latest version of a model). Clone or download this repository and run docker-compose:
60+
61+
> docker-compose -f docker-compose-dev.yml up -d
62+
63+
This will take some time to build.
64+
5665
### Configuration
5766

5867
This repository includes a reasonable default configuration:

build_and_push.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
echo "building docker images"
4+
docker build -t botium/botium-speech-frontend frontend
5+
docker build -t botium/botium-speech-watcher watcher
6+
docker build -f Dockerfile.kaldi.en -t botium/botium-speech-kaldi-en stt
7+
docker build -f Dockerfile.kaldi.de -t botium/botium-speech-kaldi-de stt
8+
docker build -f Dockerfile.marytts -t botium/botium-speech-marytts tts
9+
docker build -t botium/botium-speech-dictate dictate
10+
11+
if [ "$1" == "--push" ]; then
12+
echo "pushing docker images"
13+
docker push botium/botium-speech-frontend
14+
docker push botium/botium-speech-watcher
15+
docker push botium/botium-speech-kaldi-en
16+
docker push botium/botium-speech-kaldi-de
17+
docker push botium/botium-speech-marytts
18+
docker push botium/botium-speech-dictate
19+
fi

docker-compose-dev.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
version: '3'
2+
services:
3+
nginx:
4+
image: nginx
5+
restart: always
6+
volumes:
7+
- ./nginx.conf:/etc/nginx/nginx.conf
8+
ports:
9+
- 80:80
10+
frontend:
11+
build:
12+
context: frontend
13+
restart: always
14+
volumes:
15+
- "./frontend/resources:/app/resources"
16+
watcher:
17+
build:
18+
context: watcher
19+
restart: always
20+
volumes:
21+
- "./watcher:/app/watch"
22+
- "./logs/watcher:/app/logs"
23+
stt_en:
24+
build:
25+
context: stt
26+
dockerfile: Dockerfile.kaldi.en
27+
restart: always
28+
volumes:
29+
- "./logs/stt_en:/opt/logs"
30+
stt_de:
31+
build:
32+
context: stt
33+
dockerfile: Dockerfile.kaldi.de
34+
restart: always
35+
volumes:
36+
- "./logs/stt_de:/opt/logs"
37+
tts:
38+
build:
39+
context: tts
40+
dockerfile: Dockerfile.marytts
41+
restart: always
42+
dictate:
43+
build:
44+
context: dictate
45+
restart: always

docker-compose.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,29 @@ services:
88
ports:
99
- 80:80
1010
frontend:
11-
build:
12-
context: frontend
11+
image: botium/botium-speech-frontend:latest
1312
restart: always
1413
volumes:
1514
- "./frontend/resources:/app/resources"
1615
watcher:
17-
build:
18-
context: watcher
16+
image: botium/botium-speech-watcher:latest
1917
restart: always
2018
volumes:
2119
- "./watcher:/app/watch"
2220
- "./logs/watcher:/app/logs"
2321
stt_en:
24-
build:
25-
context: stt
26-
dockerfile: Dockerfile.kaldi.en
22+
image: botium/botium-speech-kaldi-en:latest
2723
restart: always
2824
volumes:
2925
- "./logs/stt_en:/opt/logs"
3026
stt_de:
31-
build:
32-
context: stt
33-
dockerfile: Dockerfile.kaldi.de
27+
image: botium/botium-speech-kaldi-de:latest
3428
restart: always
3529
volumes:
3630
- "./logs/stt_de:/opt/logs"
3731
tts:
38-
build:
39-
context: tts
40-
dockerfile: Dockerfile.marytts
32+
image: botium/botium-speech-marytts
4133
restart: always
4234
dictate:
43-
build:
44-
context: dictate
35+
image: botium/botium-speech-dictate
4536
restart: always

frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM ubuntu:18.04
22

3-
RUN apt-get update && apt-get -y install curl gnupg && curl -sL https://deb.nodesource.com/setup_13.x | bash - && apt-get -y install nodejs
3+
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
44
RUN apt-get install -y dos2unix sox libsox-fmt-mp3 libttspico-utils
55

66
WORKDIR /app

0 commit comments

Comments
 (0)