|
1 | 1 | TAG_COMMIT := $(shell git rev-list --abbrev-commit --tags --max-count=1) |
2 | 2 | VERSION := $(shell git describe --abbrev=0 --tags ${TAG_COMMIT} 2>/dev/null || true) |
3 | 3 |
|
4 | | -docker_build_develop: |
5 | | - docker build -t botium/botium-speech-frontend:develop frontend |
6 | | - #docker build -t botium/botium-speech-watcher:develop watcher |
7 | | - #docker build -f stt/Dockerfile.kaldi.en -t botium/botium-speech-kaldi-en:develop stt |
8 | | - #docker build -f stt/Dockerfile.kaldi.de -t botium/botium-speech-kaldi-de:develop stt |
9 | | - #docker build -f tts/Dockerfile.marytts -t botium/botium-speech-marytts:develop tts |
10 | | - #docker build -t botium/botium-speech-dictate:develop dictate |
11 | | - |
12 | | -docker_publish_develop: |
13 | | - docker push botium/botium-speech-frontend:develop |
14 | | - #docker push botium/botium-speech-watcher:develop |
15 | | - #docker push botium/botium-speech-kaldi-en:develop |
16 | | - #docker push botium/botium-speech-kaldi-de:develop |
17 | | - #docker push botium/botium-speech-marytts:develop |
18 | | - #docker push botium/botium-speech-dictate:develop |
19 | | - |
20 | | -docker_build_release: |
21 | | - docker build -t botium/botium-speech-frontend:$(VERSION) frontend |
22 | | - |
23 | | -docker_build_release_legacy: |
24 | | - docker build -t botium/botium-speech-watcher:$(VERSION) watcher |
25 | | - docker build -f stt/Dockerfile.kaldi.en -t botium/botium-speech-kaldi-en:$(VERSION) stt |
26 | | - docker build -f stt/Dockerfile.kaldi.de -t botium/botium-speech-kaldi-de:$(VERSION) stt |
27 | | - docker build -f tts/Dockerfile.marytts -t botium/botium-speech-marytts:$(VERSION) tts |
28 | | - docker build -t botium/botium-speech-dictate:$(VERSION) dictate |
29 | | - |
30 | | -docker_publish_release: |
31 | | - docker push botium/botium-speech-frontend:$(VERSION) |
32 | | - |
33 | | -docker_publish_release_legacy: |
34 | | - docker push botium/botium-speech-watcher:$(VERSION) |
35 | | - docker push botium/botium-speech-kaldi-en:$(VERSION) |
36 | | - docker push botium/botium-speech-kaldi-de:$(VERSION) |
37 | | - docker push botium/botium-speech-marytts:$(VERSION) |
38 | | - docker push botium/botium-speech-dictate:$(VERSION) |
39 | | - |
40 | | -docker_latest_release: |
41 | | - docker tag botium/botium-speech-frontend:$(VERSION) botium/botium-speech-frontend:latest |
42 | | - docker push botium/botium-speech-frontend:latest |
43 | | - |
44 | | - docker tag botium/botium-speech-watcher:$(VERSION) botium/botium-speech-watcher:latest |
45 | | - docker push botium/botium-speech-watcher:latest |
46 | | - |
47 | | - docker tag botium/botium-speech-kaldi-en:$(VERSION) botium/botium-speech-kaldi-en:latest |
48 | | - docker push botium/botium-speech-kaldi-en:latest |
49 | | - |
50 | | - docker tag botium/botium-speech-kaldi-de:$(VERSION) botium/botium-speech-kaldi-de:latest |
51 | | - docker push botium/botium-speech-kaldi-de:latest |
52 | | - |
53 | | - docker tag botium/botium-speech-marytts:$(VERSION) botium/botium-speech-marytts:latest |
54 | | - docker push botium/botium-speech-marytts:latest |
55 | | - |
56 | | - docker tag botium/botium-speech-dictate:$(VERSION) botium/botium-speech-dictate:latest |
57 | | - docker push botium/botium-speech-dictate:latest |
58 | | - |
59 | | -develop: docker_build_develop docker_publish_develop |
60 | | - |
61 | | -release: docker_build_release docker_publish_release docker_latest_release |
| 4 | +docker_build_dev: |
| 5 | + docker build -t botium/speech:develop frontend |
| 6 | + |
| 7 | +docker_login_dev: |
| 8 | + AWS_ACCESS_KEY_ID=${BOTIUM_DEV_AWS_ACCESS_KEY_ID} \ |
| 9 | + AWS_SECRET_ACCESS_KEY=${BOTIUM_DEV_AWS_SECRET_ACCESS_KEY} \ |
| 10 | + aws ecr get-login-password --region ${BOTIUM_DEV_AWS_REGISTRY_REGION} | \ |
| 11 | + docker login --username AWS --password-stdin ${BOTIUM_DEV_AWS_REGISTRY_ID}.dkr.ecr.${BOTIUM_DEV_AWS_REGISTRY_REGION}.amazonaws.com |
| 12 | + |
| 13 | +docker_publish_dev: docker_login_dev |
| 14 | + docker tag botium/speech:develop ${BOTIUM_DEV_AWS_REGISTRY_HOSTNAME}/botium/speech:develop |
| 15 | + docker push ${BOTIUM_DEV_AWS_REGISTRY_HOSTNAME}/botium/speech:develop |
| 16 | + |
| 17 | +docker_build: |
| 18 | + docker build -t botium/speech:$(VERSION) frontend |
| 19 | + |
| 20 | +docker_login: |
| 21 | + AWS_ACCESS_KEY_ID=${BOTIUM_AWS_ACCESS_KEY_ID} \ |
| 22 | + AWS_SECRET_ACCESS_KEY=${BOTIUM_AWS_SECRET_ACCESS_KEY} \ |
| 23 | + aws ecr get-login-password --region ${BOTIUM_AWS_REGISTRY_REGION} | \ |
| 24 | + docker login --username AWS --password-stdin ${BOTIUM_AWS_REGISTRY_ID}.dkr.ecr.${BOTIUM_AWS_REGISTRY_REGION}.amazonaws.com |
| 25 | + |
| 26 | +docker_publish: docker_login |
| 27 | + docker tag botium/speech:$(VERSION) ${BOTIUM_AWS_REGISTRY_HOSTNAME}/botium/speech:$(VERSION) |
| 28 | + docker push ${BOTIUM_AWS_REGISTRY_HOSTNAME}/botium/speech:$(VERSION) |
| 29 | + |
| 30 | +docker_latest: docker_login |
| 31 | + docker tag botium/speech:$(VERSION) ${BOTIUM_AWS_REGISTRY_HOSTNAME}/botium/speech:latest |
| 32 | + docker push ${BOTIUM_AWS_REGISTRY_HOSTNAME}/botium/speech:latest |
| 33 | + |
| 34 | + |
| 35 | +develop: docker_build_dev docker_publish_dev |
| 36 | + |
| 37 | +release: docker_build docker_publish docker_latest |
0 commit comments