Skip to content

The metadata search is a Spring MVC web framework application that queries ISO XML metadata from a Solr index.

Notifications You must be signed in to change notification settings

Jamaliela/metadata-search-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sage-siparcs-metadata-search

The metadata search is a Spring MVC web framework application that queries ISO XML metadata from a Solr index.

Before Running

Solr

For more information on how to set up your Solr instance follow this Github repository.

Java

You need to have OpenJDK 8 or later installed.

Vagrant

For more information on how to set up your vagrant follow this GitHub repository.

Docker Swarm

docker swarm init
docker stack deploy -c <docker-compose.yaml> <custom-stack-name>

Docker Config

docker config create <application.properties.20200716> <application.properties>

Docker Secret

docker secret create <application.properties.20200717> <application.properties>

Dockerfile

The Dockerfile contains the version of Java,and it should copy the self-executable JAR file to the work directory.

Dockerfile Example:

FROM openjdk:8-jre-alpine

COPY <path-to-JAR-file> <path-to-be-copied-in-docker>

WORKDIR /usr/local

CMD ["/usr/bin/java", "-jar", "-Dspring.config.additional-location=/usr/local/properties/application.properties", "<JAR-file>"]

Docker Compose File

For more information on how to create docker-compose.yaml files for your services follow this Github repository.

Properties File

The application properties file (src/main/resources/application.properties) contains the spring.data.solr.host,and spring thymeleaf configuration.

Properties File Examples:

spring.thymeleaf.cache=false
spring.thymeleaf.enabled=true
spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html
spring.data.solr.host=
server.error.whitelabel.enabled=false
application.version=@application.version@

To Build and Run Metadata Search

In order to run a self-executable JAR file you will need to:

  • add the maven plugin that can create executable archives. You can find the build plugin here
  • You need to have maven installed and run
    clean install spring-boot:repackage
    
  • Now, you can run the jar file separately from command line in the target folder with:
    java -Dspring.config.location=file://<path to properties file> -jar <jar file to be executed>
    

About

The metadata search is a Spring MVC web framework application that queries ISO XML metadata from a Solr index.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published