Copyright (C) 2018-2023 The Open Library Foundation
This software is distributed under the terms of the Apache License, Version 2.0. See the file "LICENSE" for more information.
git clone ...
cd mod-erm-usage
mvn clean install
cd mod-erm-usage-server
env \
DB_USERNAME=folio_admin \
DB_PASSWORD=folio_admin \
DB_HOST=localhost \
DB_PORT=5432 \
DB_DATABASE=okapi_modules \
java -jar target/mod-erm-usage-server-fat.jar
$ docker build -t mod-erm-usage .
$ docker run -p 8081:8081 -e DB_USERNAME=folio_admin -e DB_PASSWORD=folio_admin -e DB_HOST=172.17.0.1 -e DB_PORT=5432 -e DB_DATABASE=okapi_modules mod-erm-usage
$ cd target
$ curl -w '\n' -X POST -D - -H "Content-type: application/json" -d @ModuleDescriptor.json https://localhost:9130/_/proxy/modules
Change nodeId in DockerDeploymentDescriptor.json to e.g. your hosts IP address (e.g. 10.0.2.15). Then execute:
$ curl -w '\n' -X POST -D - -H "Content-type: application/json" -d @DockerDeploymentDescriptor.json https://localhost:9130/_/discovery/modules
$ curl -w '\n' -X POST -D - -H "Content-type: application/json" -d '{ "id": "mod-erm-usage-1.0.0"}' https://localhost:9130/_/proxy/tenants/diku/modules
See project MODEUS at the FOLIO issue tracker.
Other modules are described, with further FOLIO Developer documentation at dev.folio.org