test13
Unit tests: mvn test -Dgroup=unit
Integration tests: mvn test -Dgroup=integration
E2E tests: mvn test -Dgroup=end2end
####Run in specific environments: mvn test -Dgroup=end2end -Denv=QA / PRODUCTION / VAGRANT
mvn clean test cobertura:cobertura -Dgroup=unit,integration (--> this will run both groups of tests)
cd /home/gridfusion/SeleniumTraining/sonar-3.7.4/bin/linux-x86-32
./sonar.sh start
mvn clean test -Dgroup=unit sonar:sonar
knife ec2 server create -I ami-7d8bdb4d -f t1.micro --ssh-user ubuntu --identity-file ~/Desktop/gridfusion.pem --region us-west-2
knife ec2 server create -I ami-7d8bdb4d -f t1.micro --ssh-user ubuntu --identity-file ~/Desktop/gridfusion.pem --region us-west-2 -r "role[cdi_tomcat_aws]"
ssh -i ~/Desktop/gridfusion.pem [email protected]
/Users/gridfusion/Desktop/programming/chef-repo/cookbooks/
Tomcat cookbook is in ~/.berkshelf. To change i.e. the port from 2808 to something else edit the default.rb in /Users/gridfusion/.berkshelf/cookbooks/tomcat-0.17.3/attributes
berks install : run it from above directory to install the local cookbooks in .berkshelf directory
berks upload –force : run to upload cookbooks from .berkshelf to chef server
Docker networking help: https://docs.docker.com/engine/installation/mac/#container-port-redirection
Show running docker containers: docker ps
Show IP / Port mapping of container: docker port stupefied_brattain
Show IP address of the VM: docker-machine ip default
Run container and expose port 8080: docker run -itP --expose 8080 tomcat:8.0
Open shell for container: docker exec -i -t bash