Barebones repository demo for Springdata 4.x, Elasticsearch 7.5.1 and Springboot 2.3.x
- Docker
- Elasticsearch 7.5.1
- Tomcat 9
- Maven
Start the webserver at localhost port 8080
docker run -it --rm -p 8888:8080 tomcat:9.0
Test by accessing it through a browser. A 404 status will be displayed
http://container-ip:8888
Download Elasticsearch 7.5.1 image from docker
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.5.1
Start Elasticsearch from docker as single-node. Using docker-compose for multiple clusters is beyond this repo.
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.5.2
Add maven dependencies then run
mvn clean install package
To see the changes in the web server
docker cp api-container.target. mycontainer:/foo.txt