- Java 8
- Maven
- Tomcat 8.5
- ActiveMQ 5.14.0
- Elasticsearch 7.4.2
- PostgreSQL 9.5 or greater
git clone https://github.com/madgeek-arc/resource-catalogue.git
mvn clean package
CREATE USER <user> WITH PASSWORD 'your-password'; -- or use an existing user
CREATE DATABASE db WITH OWNER <user>;
- Log in to the created db using:
sudo -u postgres psql db
- Execute the following command:
CREATE EXTENSION tablefunc;
-
Ensure that PostgreSQL, ActiveMQ and Elasticsearch are up and running.
-
Create a file named
registry.properties
inside the /lib folder of your Tomcat installation and populate it with the Application Properties Example (or edit theapplication.properties
file of the project before you Build it). -
Deploy the webapp on Tomcat.
-
Before you begin using it for the first time, you must add the resourceTypes.
-
Navigate to eic/eic-registry/src/main/resources/resourceTypes
-
Execute
bash loadResourceTypes.sh localhost
(replace localhost with your host)
##########################
## Mandatory Properties ##
##########################
fqdn=localhost
platform.root=http://${fqdn}/
registry.host=http://${fqdn}:8080/eic-registry/
swagger.url=${platform.root}
## DB Properties ##
jdbc.url=jdbc:postgresql://${fqdn}:5432/db
jdbc.username=<user>
jdbc.password=<your-password>
## Elasticsearch Properties ##
elasticsearch.url=${fqdn}
elasticsearch.port=9300
elasticsearch.cluster=<clusterName>
## JMS Properties ##
jms.host=tcp://${fqdn}:61616
jms.prefix=<local>
## Openid Connect Properties ##
oidc.issuer=
oidc.authorization=
oidc.token=
oidc.jwk=
oidc.userinfo=
oidc.revocation=
oidc.logout=
oidc.clientId=
oidc.clientSecret=
oidc.scopes=openid,profile,email
## Project Properties ##
project.admins=admin1@email.com, admin2@email.com
project.admins.epot=epot1@email.com, epot2@email.com
project.debug=true/false
project.name=My Catalogue
project.catalogue.name=my_catalogue
project.registration.email=no-reply@my-catalogue.org
project.helpdesk.email=helpdesk@email.com
project.helpdesk.cc=helpdesk_cc@email.com
project.monitoring.email=monitoring@email.com
## Mail Properties ##
mail.smtp.auth=true/false
mail.smtp.host=
mail.smtp.port=
mail.smtp.protocol=
mail.smtp.ssl.enable=true/false
mail.smtp.from=
mail.smtp.user=
mail.smtp.password=
emails.send=true/false
emails.send.admin.notifications=true/false
emails.send.provider.notifications=true/false
#########################
## Optional Properties ##
#########################
## Login Properties ##
session.expiration.hours=
webapp.homepage=http://localhost:3000
webapp.oidc.login.redirectUris=http://localhost:8080/eic-registry/openid_connect_login
## Argo GRNET Monitoring Status ##
argo.grnet.monitoring.service.types=
argo.grnet.monitoring.availability=
argo.grnet.monitoring.status=
argo.grnet.monitoring.token=
## InternalToPublicConsistency ##
resource.consistency.enable=true/false
resource.consistency.email=email1@email.com
resource.consistency.cc=email1_cc@email.com
## Sync ##
sync.enable=true/false
sync.host=
sync.token.filepath=
## Matomo Properties ##
matomoHost=
matomoToken=
matomoSiteId=
matomoAuthorizationHeader=
apitracking.matomo.site=
apitracking.matomo.host=
## Auditing interval (in months) ##
auditing.interval=
## Openaire Datasources Manager ##
openaire.dsm.api=
openaire.ds.metrics=
openaire.ds.metrics.validated=
## PIDS ##
pid.username=
pid.key=
pid.auth=
pid.prefix=
pid.api=
marketplace.url=