Commit a3e91ec0 authored by Valérian STG_CAZANAVE's avatar Valérian STG_CAZANAVE
Browse files


parent 4c802ac7
Pipeline #2790 passed with stage
in 39 seconds
# Hublot
This is the repository for the Hublot project.
## Install Docker and Docker Compose
You will need to have Docker and Docker Compose installed on your machine. If they are already installed, you can skip this part.
Otherwise, you can install them referring to []( "Install Docker"), and to []( "Install Docker Compose").
## Get all the docker images
### Kaldi-gstreamer
You have two options:
* Run `git clone`
In the docker-kaldi-gstreamer-server directory, run `docker build -t linagora/kaldi-gstreamer .`
* Or you can directly build the docker image running:
`docker build -t linagora/kaldi-gstreamer`
### Recommender
* Clone the project:
`git clone`
Don't forget to **add the file** in the openpaas-summary directory, and then you can build the docker image (being in the openpaas-summary directory):
`docker build -t linagora\recommender .`
### Selenium
If you want, you can pull the selenium image from Docker Hub: run `docker pull selenium/standalone-chrome`
This image will be pulled the first time you run `docker-compose up`, if you don't pull it now.
## Clone Hublot
Run `git clone`
You can build the docker image of Hublot running `docker build -t linagora/hublot .` in the hublot directory, but if you don't do it, the image will be built the first time you run `docker-compose up`.
Note that if you have an old docker image tagged linagora/hublot on your machine, the image will never be built when you run `docker-compose up`, and the old image will be used. In order to have the latest version of the image, you must build it now. Every time you change some code in hublot, you will need to build the image, because docker compose will use linagora/hublot image if it exists. If you want the image to be built every time you run `docker-compose up`, remove the `image: linagora/hublot` line in docker-compose.yml
## Environment variables
Three environment variables are defined in the .env file:
* NB_WORKERS is the number of workers of the kaldi gstreamer server
* MODELS_PATH is the path of the directory containing the models used by kaldi
* YAML is the path of the yaml file describing the model that you want to use
You can modify the values of these environment variables in the .env file. For example, MODELS\_PATH is by default set to _./models/_ and it should be set to a directory containing the yaml files describing the models. You can either create the models directory in hublot, and copy your models in hublot/models, or you can set the MODELS_PATH value to the right directory in your machine.
If you don't want to edit the .env file, you can define environment variables in your shell (with the same names as above). The values of the variables defined in your shell will overwrite those defined in the .env file. You must know that if you define environment variables in your shell, their values set in the .env file will no longer be taken into consideration.
The simpliest way to change values of environment variables without editing the .env file, and without setting permanent environment variables in your shell is to specify it when you run `docker-compose up`. For example, you can run:
`MODELS_PATH=/your/path/to/models YAML=/opt/models/gmm_hmm5.yaml docker-compose up`
## Run Hublot
Be sure that you are in the hublot directory, and run `docker-compose up`. You can set environment variables in the same command line, as explained above.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment