Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


Install the tools you will need with the mac package manager homebrew

...

  • /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install java8: 

brew update 
brew cask install java8

- install maven

...

3. Connect your shell to the default machine.

$ eval "$(docker-machine env default)"

- create an Elastic Search docker container

...

  • docker-compose up  ( use "-d" option to run in the background)
  • docker ps → verify the container is running
  • in a Chrome browser http://192.168.99.100:9200/ (localhost:9200 if your using docker for mac - native) - you should get an elastic search REST response

...

mvn clean spring-boot:run -Dspring.profiles.active=local

After running the etl test if the elastic search indexes have been created properly. In your browser or rest client do a get on:

http://loalhost:9200/revalidations/?pretty

You are looking for: 

"designatedBodyCode": {
"type": "string",
"index": "not_analyzed"
},

If the designated body code is missing the "not_analyzed" entry then you won't see any data inside revalidation (it's an intermittent bug that we have not been able to fix). To fix it just delete the elastic search indexes:

curl -XDELETE "http://localhost:9200/_all"

Then rerun the ETL.

Setup an RO user on your local DB: 

...