Skip to content

Commit a12cc9e

Browse files
committed
move-disconnected-container-to-fr
1 parent 222b792 commit a12cc9e

File tree

1 file changed

+52
-54
lines changed

1 file changed

+52
-54
lines changed

articles/applied-ai-services/form-recognizer/containers/form-recognizer-disconnected-containers.md

Lines changed: 52 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ Complete and submit the [request form](https://aka.ms/csdisconnectedcontainers)
3737
Access is limited to customers that meet the following requirements:
3838

3939
* Your organization should be identified as strategic customer or partner with Microsoft.
40-
* Disconnected containers are expected to run fully offline, hence your use cases must meet one of below or similar requirements:
40+
* Disconnected containers are expected to run fully offline, hence your use cases must meet one of the following or similar requirements:
4141
* Environment or device(s) with zero connectivity to internet.
4242
* Remote location that occasionally has internet access.
4343
* Organization under strict regulation of not sending any kind of data back to cloud.
44-
* Application completed as instructed - Please pay close attention to guidance provided throughout the application to ensure you provide all the necessary information required for approval.
44+
* Application completed as instructed - Pay close attention to guidance provided throughout the application to ensure you provide all the necessary information required for approval.
4545

4646
## Create a new resource and purchase a commitment plan
4747

@@ -80,7 +80,7 @@ Download the Docker container that has been approved to run in a disconnected en
8080
|----------|-------|------|
8181
|&bullet; **`docker pull [image]`**</br>&bullet; **`docker pull [image]:latest`**|The latest container image.|&bullet; mcr.microsoft.com/azure-cognitive-services/form-recognizer/layout</br> </br>&bullet; mcr.microsoft.com/azure-cognitive-services/form-recognizer/invoice: latest |
8282
|||
83-
|&bullet; **`docker pull [image]:[version]`** | A specific container image |docker pull mcr.microsoft.com/azure-cognitive-services/form-recognizer/receipt:2.1-preview |
83+
|&bullet; **`docker pull [image]:[version]`** | A specific container image |dockers pull mcr.microsoft.com/azure-cognitive-services/form-recognizer/receipt:2.1-preview |
8484

8585
**Example Docker pull command**
8686

@@ -130,16 +130,23 @@ Mounts:License={CONTAINER_LICENSE_DIRECTORY}
130130

131131
After you've configured the container, use the next section to run the container in your environment with the license, and appropriate memory and CPU allocations.
132132

133-
**TODO**
134-
135-
## Form Recognizer models and container configuration
133+
## Form Recognizer container models and configuration
136134

137135
> [!IMPORTANT]
138-
> If you're using the Translator, Neural text-to-speech, or Speech-to-text containers, read the **Additional parameters** section below for information on commands or additional parameters you will need to use.
136+
> If you're using the Translator, Neural text-to-speech, or Speech-to-text containers, read the **Additional parameters** section for information on commands or additional parameters you will need to use.
137+
138+
After you've [configured the container](#configure-the-container-to-be-run-in-a-disconnected-environment), the values for the downloaded translation models and container configuration will be generated and displayed in the container output:
139+
140+
```bash
141+
-e MODELS= /path/to/model1/, /path/to/model2/
142+
-e TRANSLATORSYSTEMCONFIG=/path/to/model/config/translatorsystemconfig.json
143+
```
144+
145+
## Run the container in a disconnected environment
139146

140-
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.
147+
Once the license file has been downloaded, you can run the container in a disconnected environment with your license, appropriate memory, and suitable CPU allocations. The following example shows the formatting of the `docker run` command with placeholder values. Replace these placeholders values with your own values.
141148

142-
Wherever the container is run, the license file must be mounted to the container and the location of the license folder on the container's local filesystem must be specified with `Mounts:License=`. An output mount must also be specified so that billing usage records can be written.
149+
Whenever the container is run, the license file must be mounted to the container and the location of the license folder on the container's local filesystem must be specified with `Mounts:License=`. In addition, an output mount must be specified so that billing usage records can be written.
143150

144151
Placeholder | Value | Format or example |
145152
|-------------|-------|---|
@@ -151,54 +158,41 @@ Placeholder | Value | Format or example |
151158
| `{CONTAINER_LICENSE_DIRECTORY}` | Location of the license folder on the container's local filesystem. | `/path/to/license/directory` |
152159
| `{CONTAINER_OUTPUT_DIRECTORY}` | Location of the output folder on the container's local filesystem. | `/path/to/output/directory` |
153160

154-
```bash
155-
docker run --rm -it -p 5000:5000 --memory {MEMORY_SIZE} --cpus {NUMBER_CPUS} \
156-
-v {LICENSE_MOUNT} \
157-
-v {OUTPUT_PATH} \
158-
{IMAGE} \
159-
eula=accept \
160-
Mounts:License={CONTAINER_LICENSE_DIRECTORY}
161-
Mounts:Output={CONTAINER_OUTPUT_DIRECTORY}
162-
```
163-
164-
### Additional parameters and commands
161+
**Example `docker run` command**
165162

166-
See the following sections for additional parameters and commands you may need to run the container.
163+
```docker
164+
docker run --rm -it -p 5000:5000 --memory {MEMORY_SIZE} --cpus {NUMBER_CPUS} \
167165
168-
#### Translator container
166+
-v {LICENSE_MOUNT} \
169167
170-
If you're using the [Translator container](../translator/containers/translator-how-to-install-container.md), you'll 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:
168+
-v {OUTPUT_PATH} \
171169
172-
```bash
173-
-e MODELS= /path/to/model1/, /path/to/model2/
174-
-e TRANSLATORSYSTEMCONFIG=/path/to/model/config/translatorsystemconfig.json
175-
```
170+
{IMAGE} \
176171
177-
#### Speech-to-text and Neural text-to-speech containers
172+
eula=accept \
178173
179-
The [speech-to-text](../speech-service/speech-container-howto.md?tabs=stt) and [neural text-to-speech](../speech-service/speech-container-howto.md?tabs=ntts) containers provide a default directory for writing the license file and billing log at runtime. The default directories are /license and /output respectively.
174+
Mounts:License={CONTAINER_LICENSE_DIRECTORY}
180175
181-
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.
176+
Mounts:Output={CONTAINER_OUTPUT_DIRECTORY}
177+
```
182178

183-
Below is a sample command to set file/directory ownership.
179+
## Other parameters and commands
184180

185-
```bash
186-
sudo chown -R nonroot:nonroot <YOUR_LOCAL_MACHINE_PATH_1> <YOUR_LOCAL_MACHINE_PATH_2> ...
187-
```
181+
Here are a few more parameters and commands you may need to run the container.
188182

189-
## Usage records
183+
#### Usage records
190184

191-
When operating Docker containers in a disconnected environment, the container will write usage records to a volume where they're collected over time. You can also call a REST endpoint to generate a report about service usage.
185+
When operating Docker containers in a disconnected environment, the container will write usage records to a volume where they're collected over time. You can also call a REST API endpoint to generate a report about service usage.
192186

193-
### Arguments for storing logs
187+
#### Arguments for storing logs
194188

195-
When run in a disconnected environment, an output mount must be available to the container to store usage logs. For example, you would include `-v /host/output:{OUTPUT_PATH}` and `Mounts:Output={OUTPUT_PATH}` in the example below, replacing `{OUTPUT_PATH}` with the path where the logs will be stored:
189+
When run in a disconnected environment, an output mount must be available to the container to store usage logs. For example, you would include `-v /host/output:{OUTPUT_PATH}` and `Mounts:Output={OUTPUT_PATH}` in the following example, replacing `{OUTPUT_PATH}` with the path where the logs will be stored:
196190

197191
```Docker
198192
docker run -v /host/output:{OUTPUT_PATH} ... <image> ... Mounts:Output={OUTPUT_PATH}
199193
```
200194

201-
### Get records using the container endpoints
195+
#### Get records using the container endpoints
202196

203197
The container provides two endpoints for returning records about its usage.
204198

@@ -210,16 +204,20 @@ The following endpoint will provide a report summarizing all of the usage collec
210204
https://<service>/records/usage-logs/
211205
```
212206

213-
It will return JSON similar to the example below.
207+
**Example HTTPS endpoint**
208+
209+
`http://localhost:5000/records/usage-logs`
210+
211+
The usage-log endpoint will return a JSON response similar to the following example:
214212

215213
```json
216214
{
217-
"apiType": "noop",
218-
"serviceName": "noop",
215+
"apiType": "string",
216+
"serviceName": "string",
219217
"meters": [
220218
{
221-
"name": "Sample.Meter",
222-
"quantity": 253
219+
"name": "string",
220+
"quantity": 256345435
223221
}
224222
]
225223
}
@@ -233,7 +231,7 @@ The following endpoint will provide a report summarizing usage over a specific m
233231
https://<service>/records/usage-logs/{MONTH}/{YEAR}
234232
```
235233

236-
it will return a JSON response similar to the example below:
234+
This usage-logs endpoint will return a JSON response similar to the following example:
237235

238236
```json
239237
{
@@ -242,29 +240,29 @@ it will return a JSON response similar to the example below:
242240
"meters": [
243241
{
244242
"name": "string",
245-
"quantity": 253
243+
"quantity": 56097
246244
}
247245
]
248246
}
249247
```
250248

251-
## Purchase a different commitment plan for disconnected containers
249+
### Purchase a different commitment plan for disconnected containers
252250

253-
Commitment plans for disconnected containers have a calendar year commitment period. When you purchase a plan, you'll be charged the full price immediately. During the commitment period, you can't change your commitment plan, however you can purchase additional unit(s) at a pro-rated price for the remaining days in the year. You have until midnight (UTC) on the last day of your commitment, to end a commitment plan.
251+
Commitment plans for disconnected containers have a calendar year commitment period. When you purchase a plan, you'll be charged the full price immediately. During the commitment period, you can't change your commitment plan, however you can purchase more unit(s) at a pro-rated price for the remaining days in the year. You have until midnight (UTC) on the last day of your commitment, to end a commitment plan.
254252

255-
You can choose a different commitment plan in the **Commitment Tier pricing** settings of your resource.
253+
You can choose a different commitment plan in the **Commitment tier pricing** settings of your resource under the **Resource Management** section.
256254

257-
## End a commitment plan
255+
### End a commitment plan
258256

259-
If you decide that you don't want to continue purchasing a commitment plan, you can set your resource's auto-renewal to **Do not auto-renew**. Your commitment plan will expire on the displayed commitment end date. After this date, you won't be charged for the commitment plan. You'll be able to continue using the Azure resource to make API calls, charged at pay-as-you-go pricing. You have until midnight (UTC) on the last day of the year to end a commitment plan for disconnected containers, and not be charged for the following year.
257+
If you decide that you don't want to continue purchasing a commitment plan, you can set your resource's auto-renewal to **Do not auto-renew**. Your commitment plan will expire on the displayed commitment end date. After this date, you won't be charged for the commitment plan. You'll be able to continue using the Azure resource to make API calls, charged at pay-as-you-go pricing. You have until midnight (UTC) on the last day of the year to end a commitment plan for disconnected containers. If you cancel at or before that time, you won't be charged for the following year.
260258

261259
## Troubleshooting
262260

263-
If you run the container with an output mount and logging enabled, the container generates log files that are helpful to troubleshoot issues that happen while starting or running the container.
261+
Run the container with an output mount and logging enabled. These settings will enable the container generates log files that are helpful for troubleshooting issues that occur while starting or running the container.
264262

265263
> [!TIP]
266-
> For more troubleshooting information and guidance, see [Disconnected containers Frequently asked questions (FAQ)](disconnected-container-faq.yml).
264+
> For more troubleshooting information and guidance, see [Disconnected containers Frequently asked questions (FAQ)](../../../cognitive-services/containers/disconnected-container-faq.yml).
267265
268266
## Next steps
269267

270-
[Azure Cognitive Services containers overview](../cognitive-services-container-support.md)
268+
[Deploy the Sample Labeling tool to an Azure Container Instance (ACI)](../deploy-label-tool.md#deploy-with-azure-container-instances-aci)

0 commit comments

Comments
 (0)