Skip to content

Commit 18b7181

Browse files
committed
updating translator and speech container info
1 parent d7913de commit 18b7181

File tree

1 file changed

+27
-11
lines changed

1 file changed

+27
-11
lines changed

articles/cognitive-services/containers/disconnected-containers.md

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,10 @@ Now that you've downloaded your container, you will need to run the container wi
8585

8686
> [!IMPORTANT]
8787
> * You can only use a license file with the appropriate container that you've been approved for. For example, you cannot use a license file for a speech-to-text container with a form recognizer container.
88-
> * If you're using the [Translator container](../translator/containers/translator-how-to-install-container.md), you will need to add parameters for the downloaded translation models. For example:
89-
> ```bash
90-
> -e MODELS= /path/to/model1/, /path/to/model2/
91-
> -e TRANSLATORSYSTEMCONFIG=/path/to/model/config/translatorsystemconfig.json
92-
> ```
88+
> * If you're using the [Translator container](../translator/containers/translator-how-to-install-container.md), it will generate a docker `run` template that you can use to run the container, containing two additional parameters you will need. Make sure you save these values :
89+
> * `MODELS= /path/to/model1/, /path/to/model2/`
90+
> * `TRANSLATORSYSTEMCONFIG=/path/to/model/config/`
91+
9392

9493
The following example shows the formatting of the `docker run` command you'll use, with placeholder values. Replace these placeholder values with your own values.
9594

@@ -114,12 +113,8 @@ After you have configured the container, use the next section to run the contain
114113

115114
## Run the container in a disconnected environment
116115

117-
> [!NOTE]
118-
> If you're using the [Translator container](../translator/containers/translator-how-to-install-container.md), you will need to add the following parameters to your `docker run` command, to mount the downloaded translation models. For example:
119-
> ```bash
120-
> -e MODELS= /path/to/model1/, /path/to/model2/
121-
> -e TRANSLATORSYSTEMCONFIG=/path/to/model/config/translatorsystemconfig.json
122-
> ```
116+
> [!IMPORTANT]
117+
> If you're using the Translator or Speech-to-text containers, read the **Additional parameters** section below for information on commands or additional parameters you will need to use.
123118
124119
Once the license file has been downloaded, you can run the container in a disconnected environment. The following example shows the formatting of the `docker run` command you'll use, with placeholder values. Replace these placeholder values with your own values.
125120

@@ -142,6 +137,27 @@ Mounts:License={LICENSE_MOUNT}
142137
Mounts:Output={OUTPUT_PATH}
143138
```
144139

140+
### Additional parameters
141+
142+
See the following sections for additional parameters and commands you may need to run the container.
143+
144+
#### Translator container
145+
146+
If you're using the [Translator container](../translator/containers/translator-how-to-install-container.md), you will need to add parameters for the downloaded translation models and container configuration. These values are generated and displayed in the container output when you [configure the container](#configure-the-container-to-be-run-in-a-disconnected-environment) as described above. For example:
147+
```bash
148+
-e MODELS= /path/to/model1/, /path/to/model2/
149+
-e TRANSLATORSYSTEMCONFIG=/path/to/model/config/translatorsystemconfig.json
150+
```
151+
152+
#### Speech-to-text container
153+
154+
The [speech-to-text container](../speech-service/speech-container-howto.md?tabs=stt) provides two default directories, `license` and `output`, by default for writing the license file and billing log at runtime. When you're mounting these directories to the container with the `docker run -v` command, make sure the local machine directory is set ownership to `user:group nonroot:nonroot` before running the container.
155+
156+
Below is a sample command to set file/directory ownership.
157+
158+
```bash
159+
sudo chown -R nonroot:nonroot <YOUR_LOCAL_MACHINE_PATH_1> <YOUR_LOCAL_MACHINE_PATH_2> ...
160+
```
145161

146162
## Usage records
147163

0 commit comments

Comments
 (0)