Add a Registry
Description
The registry is used to index all released versions of the modules. It may be a local directory or a remote git repository. A remote registry may be updated in the cache using the command edifice fetch.
Use a registry
Update your environement variables
export EDIFICE_REGISTRY="/project/registry:${EDIFICE_REGISTRY}"
export EDIFICE_REGISTRY="git@github.com:Annrtl/Edifice_registry.git:${EDIFICE_REGISTRY}"
Add a edifice.toml configuration locally
# edifice.toml
[config]
EDIFICE_REGISTRY = 'git@github.com:Annrtl/Edifice_registry.git:/project/registry'
Add a edifice.toml user configuration
# ~/.config/edifice/edifice.toml
[config]
EDIFICE_REGISTRY = 'git@github.com:Annrtl/Edifice_registry.git:/project/registry'
Add a edifice.toml global configuration
# /etc/edifice/edifice.toml
[config]
EDIFICE_REGISTRY = 'git@github.com:Annrtl/Edifice_registry.git:/project/registry'
Create your own registry
Remote repository
- Create a new repository
- For each module to index add a
module.tomlanywhere in the repository.
It is recommanded to put a file module.toml in a a folder name/version/module.toml
Local directory
- Create a new directory
- For each module to index add a
module.tomlanywhere in the repository.
It is recommanded to put a file module.toml in a a folder name/version/module.toml