A wildfly cluster written in docker-compose
at least docker-compose version 1.18.0 installed at least Docker version 17.12.1-ce installed
Wildfly node 1 in cluster running on port 8080
Wildlfy node 2 in cluster running on port 8081
A nexus instance running on port 8580
url: http://localhost:8580/nexus/#welcome user: admin password: admin123
a gitlab instance to store the wildfly-samples code. listening port 80
a gitlab runner to run the CI server
node 1 http://localhost:8080/http/MyServlet?param1=value1
node 2 http://localhost:8081/http/MyServlet?param1=value2
on wildfly-samples folder run
mvn clean package
mvn clean deploy
mvn versions:set -DnewVersion=X.X
1 - test the code in sonar
2 - deploy to nexus
3 - get the generated artifact from nexus
3 - deploy the code in a maven container to wildfly node 1
4 - deploy the code in a maven container to wildfly node 2
1 - docker exec -it gitlab-runner gitlab-runner register
docker exec -it sonarqube /bin/bash
cd extensions/plugins/
exit
docker restart sonarqube