I'm developing a plugin with Kibana v7.5.1, and I have it in a state where I want to build the plugin and install it into a docker container, and recommit the container and save it to my private registry.
All of these steps works just fine
yarn kbn bootstrap yarn start # for development yarn build
builds just fine, then trying to install and run, the following steps are actually in a Dockerfile, but behave the same done this way.
docker run --rm -it --name kb docker.elastic.co/kibana/kibana:7.5.1 bash
In another shell:
docker cp /path/to/built/plugin.zip kb:/plugin.zip
back in kibana container
bin/kibana-plugin install file:///plugin.zip ... # installs just fine bin/kibana
bin/kibana command will give me the following output:
FATAL Error: Cannot find module '/usr/share/kibana/plugins/myPlugin'
plugins/myPlugin exists, and has my code in it. Why cant it be found?