GithubHelp home page GithubHelp logo

cditraining's Introduction

CDI Training

test13

Run tests with Maven

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

Cobertura code coverage

mvn clean test cobertura:cobertura -Dgroup=unit,integration (--> this will run both groups of tests)

SONAR

cd /home/gridfusion/SeleniumTraining/sonar-3.7.4/bin/linux-x86-32
./sonar.sh start
mvn clean test -Dgroup=unit sonar:sonar

start EC2 environment

knife ec2 server create -I ami-7d8bdb4d -f t1.micro --ssh-user ubuntu --identity-file ~/Desktop/gridfusion.pem --region us-west-2

start EC2 instance with Chef / Chef Server

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]"

Chef Server Web

https://manage.chef.io/login

SSH into EC2 instance

ssh -i ~/Desktop/gridfusion.pem [email protected]

Location of self created chef cookbooks

/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

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

cditraining's People

Contributors

freynaud avatar jenkins-e34s avatar gridfusion-training avatar

Watchers

 avatar James Cloos avatar Michael Palotas avatar François Reynaud - Element34 Solution avatar

cditraining's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.