This section describes how to build a custom plug-in registry. Following operations are covered:
-
Getting a copy of the source code necessary to build a custom plug-in registry.
-
Adding a new plug-in.
-
Building the custom plug-in registry.
-
Clone the plug-in registry repository:
$ git clone git@github.com:eclipse/che-plugin-registry.git $ cd che-plugin-registry
-
In the
./che-plugin-registry/v3/plugins/directory, create new directories<publisher>/<plugin-name>/<plugin-version>/and ameta.yamlfile in the last directory.File organization for a plugin./che-plugin-registry/v3/plugins/ ├── <publisher> │ └── <plugin-name> │ ├── <plugin-version> │ │ └── meta.yaml │ └── latest.txt
-
Add valid content to the
meta.yamlfile. See the “Using a Visual Studio Code extension in Che” section or the README.md file in theeclipse/che-plugin-registryrepository for a detailed description of themeta.yamlfile format. -
Create a file named
latest.txtwith content the name of the latest<plugin-version>directory.Example$ tree che-plugin-registry/v3/plugins/redhat/java/ che-plugin-registry/v3/plugins/redhat/java/ ├── 0.38.0 │ └── meta.yaml ├── 0.43.0 │ └── meta.yaml ├── 0.45.0 │ └── meta.yaml ├── 0.46.0 │ └── meta.yaml ├── 0.50.0 │ └── meta.yaml └── latest.txt $ cat che-plugin-registry/v3/plugins/redhat/java/latest.txt 0.50.0
-
Build the containers for the custom plug-in registry:
$ docker build -t my-devfile-registry .