- Jenkins
- Nexus
- Kafka
- Postgres
- Sonarqube
- Grafana & Prometheus
credentials:
- username: admin
- password: the password can be found at: /var/jenkins_home/secrets/initialAdminPassword
Environment: Enter your machine name
- KAFKA_ZOOKEEPER_CONNECT=:2181
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://:9092
credentials:
- username: admin
- password: the password can be found at: /nexus-data/admin.password
Nexus can be added in your java project and therefore it's possible to push an artifact into Nexus.
See: https://www.baeldung.com/maven-deploy-nexus
credentials:
- login: admin
- password: admin123
Sonarqube can be run locally in your java project.
Steps:
- Make sure you have a local instance up
- The project must be already initialized by git
- Add the dependency in plugin section: https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin
- Run the maven command in the root project: mvn sonar:sonar -Dsonar.login=[your-sonar-token]
credentials:
- login: admin
- password: admin
- to access psql enter the folowing cmd:
> winpty docker exec -it postgres-container sh
> psql --username postgres
> test it by run the cmd to show all database: \l