This is a simple web service with CRUD.
SpringBoot, Redis, Prometheus, Grafana.
- clone whaleservice
git clone https://github.com/kazumaz/whaleservice.git
- run docker
cd ./whaleservice/Docker
anddocker-compose up
- build application
cd ./whaleservice/
and./gradlew build
- run application
./whaleservice/build/libs/
andjava -jar whaleservice-0.0.1-SNAPSHOT.jar &
- access your local application
- access Prometheus
- access Grafana
when you connect grafana to prometheus, usinghttp://prometheus:9090
not usinghttp://localhost/9090
.
rm -rf whaleservice/
git clone https://github.com/kazumaz/whaleservice.git
cd ./whaleservice/
./gradlew build
cd ..
scp -i AWS.pem ./whaleservice/build/libs/whaleservice-0.0.1-SNAPSHOT.jar ubuntu@54.190.187.220:/home/ubuntu/
ssh -i AWS.pem ubuntu@54.190.187.220 'cd Docker;docker-compose up -d'
ssh -i AWS.pem ubuntu@54.190.187.220 'java -jar whaleservice-0.0.1-SNAPSHOT.jar &'