Failed installing file:///tmp/analysis-phonetic-7.17.7.zip

I am trying to install the analysis-phonetic plugin from a downloaded .zip file. I have copied the files to the local filesystem /tmp directory and inside the container to the /tmp directory. Below is the dockerfile that I am running to install the plugin:

FROM elasticsearch:7.17.7
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///tmp/analysis-phonetic-7.17.7.zip

Below is the error I am getting while running the following command: docker build -t elasticsearch_mm .

[+] Building 1.8s (5/8)
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from dockerfile 0.0s
=> => transferring dockerfile: 540B 0.0s
=> [internal] load metadata for Docker 0.3s
=> CACHED [1/5] FROM Docker 0.0s
=> ERROR [2/5] RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///tmp/analysis-phonetic-7.17.7.zip 1.4s

[2/5] RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///tmp/analysis-phonetic-7.17.7.zip:
#0 1.349 -> Installing file:///tmp/analysis-phonetic-7.17.7.zip
#0 1.349 -> Downloading file:///tmp/analysis-phonetic-7.17.7.zip
#0 1.352 -> Failed installing file:///tmp/analysis-phonetic-7.17.7.zip
#0 1.352 -> Rolling back file:///tmp/analysis-phonetic-7.17.7.zip
#0 1.352 -> Rolled back file:///tmp/analysis-phonetic-7.17.7.zip
#0 1.353 Exception in thread "main" java.io.FileNotFoundException: /tmp/analysis-phonetic-7.17.7.zip (No such file or directory)

Any idea why it can't find the file?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.