platform/tests/install-elastic-plugin.sh
火焚 富良 8003611c37
Change shebangs to /usr/bin/env calls for better portability (#5961)
Signed-off-by: Egor Savkin <tomasfire@live.com>
2024-07-01 23:21:52 +07:00

11 lines
431 B
Bash
Executable File

#!/usr/bin/env bash
# Usage
# ./install-elastic-plugin.sh sanity_elastic_1
curdir=$(dirname $0)
# Direct download, or use VPN.
#wget https://artifacts.elastic.co/downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-7.14.2.zip
docker cp $curdir/ingest-attachment-7.14.2.zip $1:/ingest-attachment-7.14.2.zip
docker exec -ti $1 ./bin/elasticsearch-plugin install file:///ingest-attachment-7.14.2.zip
docker restart $1