Add docker steps for eland model upload (#489)

This commit is contained in:
Benjamin Trent 2022-07-21 15:27:19 -04:00 committed by GitHub
parent fbb01e5698
commit 11ea68a443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,6 +88,36 @@ Downloading: 100%|██████████| 249M/249M [00:23<00:00, 11.2MB
100%|██████████| 63/63 [00:12<00:00, 5.02it/s] 100%|██████████| 63/63 [00:12<00:00, 5.02it/s]
------------------------ ------------------------
[discrete]
[[ml-nlp-pytorch-docker]]
==== Import model with Docker
IMPORTANT: To use the Docker container, you need to clone the Eland repository: https://github.com/elastic/eland
If you want to use Eland without installing it, you can build the Docker container to run the available scripts:
```bash
$ docker build -t elastic/eland .
```
You can now use the container interactively:
```bash
$ docker run -it --rm --network host elastic/eland
```
Running installed scripts is also possible without an interactive shell, for example:
```bash
docker run -it --rm elastic/eland \
eland_import_hub_model \
--url $ELASTICSEARCH_URL \
--hub-model-id elastic/distilbert-base-uncased-finetuned-conll03-english \
--start
```
Replace the `$ELASTICSEARCH_URL` with the URL for your Elasticsearch cluster. For authentication purposes, include an administrator username and password in the URL in the following format: `https://username:password@host:port`.
[discrete] [discrete]
[[ml-nlp-pytorch-auth]] [[ml-nlp-pytorch-auth]]
==== Authentication methods ==== Authentication methods