Just push on master branch: Connected with github
heroku pg:psql postgresql-cylindrical-43676 --app srf-group-back
https://data.heroku.com/datastores/99847b29-d576-4442-bd3c-b1d7223dce79#administration
run : mvn clean install -Pprod -DskipTests
run : heroku deploy:jar target/srfgroup-0.0.1-SNAPSHOT.jar --app srf-group-be
run: heroku open --app srf-group-be
heroku buildpacks:clear --app srf-group-be
log Heroku: heroku logs --app srf-group-back -t
change cmd: heroku config:set MAVEN_CUSTOM_GOALS="clean install -Pprod -DskipTests" --app srf-group-be
-
Run Spring boot (add logging.file.name)
-
Run Elasticsearch
- Version: elasticsearch-7.1.0
- Under folder bin command: elasticsearch.bat
- All the indexes that have ever been created inside elasticsearch: http://localhost:9200/_cat/indices
- ElasticSearch actually received the data: curl 'http://localhost:9200/_search?pretty'
-
Run Kibana
- Version: kibana-7.1.0
- Under folder bin command: kibana.bat
- Show data in Kibana:
- Go to Management → Kibana Index Patterns → Create index Pattern
- Enter “logstash-*” as the index pattern
- Time filter : @timestamp
- Go to the Discover tab in Kibana
- Select logstash-* (Dropdown)
-
Run Logstash:
- Version: logstash-7.6.1
- Add file config: logstash-7.6.1\bin\logstash.conf
- Under folder bin command: ./logstash -f logstash.conf
mvn clean install -DskipTests sonar:sonar
mvn sonar:sonar -Dsonar.host.url=http://localhost:9000 -Dsonar.login=admin -Dsonar.password=sonar
- Run: docker images
- docker rmi id_image_springboot-docker-compose-app
- Rebuild image:
- cd docker
- docker build -t springboot-docker-compose-app:1 .
Run: mvn clean install -Pprod -DskipTests run in the root project: - Start: docker-compose -f docker/full-app.yml up - Down: docker-compose -f docker/full-app.yml down -v --remove-orphans
Run: mvn clean install -Pprod -DskipTests run in the root project: - Start: docker-compose -f docker/api-without-jar.yml up - Down: docker-compose -f docker/api-without-jar.yml down -v --remove-orphans
$ docker build -t build-srf-group .
$ docker run build-srf-group
- run windos: services.msc
- check service pg and click stop
- docker exec -it container_id_redis redis-cli
- Fetch data: keys *
- Start : docker-compose -f docker/keycloak.yml up
- Browser : http://localhost:8082/auth/
Search global on website (with elastic and index)
$ just run
run server Zipkin
enable zipkin from application.properties
get url with Rest template (metrics)