ググって出てくる記事ではパッケージのインストール(zipアップロード)が必要で、
ほんまかいな。という気持ちになったのでcurlでAPIを叩くコードにしました。
Install elasticsearch plugins and kibana plugins behind the proxy.
elasticsearch
Set proxy configurations to env $ES_JAVA_OPTS
like below.
ex: installing x-pack
ES_JAVA_OPTS="-Dhttp.proxyHost=proxy.example.com -Dhttp.proxyPort=8888 -Dhttps.proxyHost=proxy.example.com -Dhttps.proxyPort=8888" ./bin/elasticsearch-plugin install x-pack
kibana
Kibana doesn't support proxy yet...
You need to download plugins directory by curl, wget, etc. and run bin/kibana-plugin
.
curl -LO https://artifacts.elastic.co/downloads/packs/x-pack/x-pack-5.4.1.zip ./bin/kibana-plugin install file://$(pwd)/x-pack-5.4.1.zip
標準入力の内容をチャットに投稿する2 (Node.js版)
プロキシ環境下でdocker buildするときのコマンドオプション
プロキシ環境下でapt-get update
等を含むDockerfileを docker build
するときは --build-arg
でプロキシの設定を渡す。
docker build --build-arg HTTP_PROXY=$HTTP_PROXY --build-arg http_proxy=$http_proxy --build-arg HTTPS_PROXY=$HTTPS_PROXY --build-arg https_proxy=$https_proxy .