Configure Library Microservice
The microservices requires config specified in yaml format. The template configuration file is:
The local-path variable is the relative filepath to the
location of the local directory which will be served to users
by the Library microservice.
Replace the default values the appropriate values for your setup.
Please save this config in a file as a yaml file, for example as libms.yaml.
Operation Modes
The mode indicates the backend storage for the files.
There are two possible modes - local and git.
The files available in the local-path are served to users in local mode.
In the git mode, the remote git repos are cloned and they are
served to users as local files.
git mode
A fragment of the config for git mode is:
Here, user1, user2 and common are the local directories into which
the remote git repositories get cloned. The name of the repository need not
match with the local directory name. For example, the above configuration
enables library microservice to clone
https://gitlab.com/dtaas/user1.git repository into
user1 directory. Any git server accessible over
HTTP(S) protocol is supported.
The .git suffix is optional.
Replace the default values the appropriate values for your setup.
The libms looks for
libms.yaml file in the working directory from which it is run.
If you want to run libms without explicitly specifying the configuration
file, run with -c <path-to-file>.