We are currently switching to Elasticsearch/Kibana 7.9.1 and creating new plugins, following the new architecture.
We were already using our own plugins before, and were building them via the build command of the plugin-helpers.
As the new plugins no longer use a package.json file, is it still possible de generate an archive/a binary? Is it possible to create a ZIP archive with all the files and distribute it as is?
I haven't found any information on that topic, sorry
@16318a22907f3cbfa04b It seems plugin_helpers build only legacy plugins in 7.9.
1.Could you update Kibana to 7.10?
2.Did you use plugin-generator to create my_plugin structure? If so, yarn build in /plugins/my_plugin will build a distributable version.
3.index.js is not required in/plugins/my_plugin folder.
Now yarn build create plugin zip and I can install plugin. Kibana starts with plugin. I see it in the list on the console (cli) when kibana starts. Now no errors. But kibana don't work, I see red banner when connect to http.
With yarn start --oss everything work fine.
Maybe someone has an example of how to build a plugin with dependencies
you are trying to build Kibana Platform plugin, but unfortunately plugin_helpers build only Legacy plugins in 7.9. You have to use this workaround https://github.com/elastic/kibana/issues/82466 or migrate Kibana to 7.10 where this problem has been fixed.
As I understand from what I read, the Kibana Platform plugin cannot use any additional nodejs modules. Is this correct? If this is incorrect, how and where should I specify dependencies?
I think I'm getting something wrong. If I can't use plugin-helpers, maybe I should do the build in some other way? Should I use node scripts/build_kibana_platform_plugins --dist? My plugin is made in a new format. What is the correct build sequence in this case?
All right. I Should have looked here. Now everything is working. I will only add that the plugin archive should be done on Linux. On a Windows machine it turns out to be incorrect and there will be an error during installation Plugin installation was unsuccessful due to error "EACCES: permission denied, open '/usr/share/kibana/plugins/.plugin.installing/package.json'"
No more problems.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.