2024-07-01 19:21:52 +03:00
|
|
|
#!/usr/bin/env bash
|
2022-04-01 08:57:22 +03:00
|
|
|
|
2022-04-19 12:38:31 +03:00
|
|
|
# Usage
|
|
|
|
# ./install-elastic-plugin.sh sanity_elastic_1
|
|
|
|
|
2022-04-21 10:40:15 +03:00
|
|
|
curdir=$(dirname $0)
|
2022-04-19 12:38:31 +03:00
|
|
|
# Direct download, or use VPN.
|
2022-04-01 08:57:22 +03:00
|
|
|
#wget https://artifacts.elastic.co/downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-7.14.2.zip
|
2022-04-21 10:40:15 +03:00
|
|
|
docker cp $curdir/ingest-attachment-7.14.2.zip $1:/ingest-attachment-7.14.2.zip
|
2022-04-19 12:38:31 +03:00
|
|
|
docker exec -ti $1 ./bin/elasticsearch-plugin install file:///ingest-attachment-7.14.2.zip
|
|
|
|
docker restart $1
|