チーム内の知識共有のために、growiの構築を考えています。
しかし、proxy環境下で構築を行っている影響もあり、構築に手間取っています。
もしよろしければ、以下事象の解決策についてアドバイスいただければと思います。
【事象】
docker-composeを利用して、proxy環境でインストールを行おうとしたところ、
proxy認証エラーが発生する。
【インストール手順】
以下のURLを参考に構築を試してみました。
https://qiita.com/honex78/items/e2726d414c3d99657765
【作業状況】
上記URLでgrowiをgitからcloneで落としてきて、docker-compose.ymlの編集を行いました。
その後、elasticsearch配下にあるDockerファイルを編集し、
プロキシの設定を追記して、docker-composeを実行して、以下のエラーが発生しています。
- プロキシ設定追記内容
DockerFile
1RUN ES_JAVA_OPTS="-Xms256m -Xmx256m -Dhttp.proxyHost={HostURL} -Dhttp.proxyPort={Port} -Dhttps.proxyHost={HostURL} -Dhttps.proxyPort={Port} -Dhttp.proxyUser={ProxyUserId} -Dhttp.proxyPassword={ProxyUserPassword} -Dhttps.proxyUser={ProxyUserId} -Dhttps.proxyPassword={ProxyUserPassword}"
- エラー内容
Exception
1Exception in thread "main" java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required" 2 at java.base/sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2162) 3 at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183) 4 at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:163) 5 at org.elasticsearch.plugins.InstallPluginCommand.urlExists(InstallPluginCommand.java:352) 6 at org.elasticsearch.plugins.InstallPluginCommand.getElasticUrl(InstallPluginCommand.java:314) 7 at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:254) 8 at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:229) 9 at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:216) 10 at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) 11 at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) 12 at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:77) 13 at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) 14 at org.elasticsearch.cli.Command.main(Command.java:90) 15 at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:47)
【備考】
以下のことを試してみました。
- /etc/docker/配下にconfig.json、daemon.jsonを作成し、プロキシ設定やDNS設定を追記
- docker-compose.yml内の「elasticsearch」にあるenvironmentのES_JAVA_OPTSにもプロキシ設定を追記
以上です。
もしよろしければ、アドバイスいただければと思います。
あなたの回答
tips
プレビュー