The service-layer for the KPMP Atlas Repository
./gradlew test
If you have having troubles seeing changes during development, you can try to clear the gradle cache by running the following command:
./gradlew clean
./gradlew build docker
The default tag is the github branch if no verison is provided
To pass a version when building the docker image execute
./gradlew build docker -Ptag=<tagNumber>
docker kill spring
cd ~/proj/heavens-docker/atlas/knowledge-environment
docker-compose -f docker-compose.dev.yml up -d
docker-compose -f docker-compose.dev.yml logs --f spring
- Update .env ENV_MYSQL_HOST to the IP address of QA KE
- Update .env ENV_MYSQL_PASSWORD to the password for QA KE
- Add your IP address to a new security group called sg-0597e054f11d2e31a (Developer to KE Mariadb)
- Restart your knowledge-environment (don't worry that you have your own copy of mariadb, it'll be ignored)
- Login to the KE Enterprise Search console (see https://docs.google.com/document/d/1uMb_ooDEU6PDkZOuFQGnPHo07UtnA-mrfwe3lpuEiho)
- Delete the "repository" search engine
- Create a new "repository" search engine
- SSH to the appropriate KE machine
- Execute:
curl -X GET http://localhost:3050/api/v1/repository/load-search
This repository is equipped to build and push an image to docker hub when pushing to the repository (except for master and develop). The image will be named kingstonduo/hydra-data:<git-branch-name>