Coder Social home page Coder Social logo

continuous-delivery's Introduction

Continuous Delivery with Maven, Puppet and Tomcat

Examples of setting up a continuous delivery process using Maven, Tomcat, Puppet, Vagrant, Jenkins, Cucumber and other helpful tools for my talk Continuous Delivery with Maven, Puppet and Tomcat at ApacheCon 2013.

  • Vagrant for VM creation and provisioning

  • librarian-puppet for automatic module installation

  • puppet-rspec for puppet manifest testing

  • Capybara and Cucumber for acceptance tests

    Continuous Integration, with Apache Continuum or Jenkins, can be extended to fully manage deployments and production environments, running in Tomcat for instance, in a full Continuous Delivery cycle using infrastructure-as-code tools like Puppet, allowing to manage multiple servers and their configurations.

This project is a fork of Puppet for Java Developers created for my talk at JavaZone Oslo 2012.

Installation

Install all required gems

bundle install

Change the $repo var in mymodules/acme/manifests/tomcat_node.pp to the location of a repository where you can deploy the Maven builds, accessible from the vagrant vms

$repo = 'http://carlos-mbook-pro.local:8000/repository/all/'

Install all Puppet modules with Puppet Librarian

librarian-puppet install

Run the specs with puppet-rspec

bundle exec rake

Start the "production" vms with Vagrant. We assume they are up all the time

vagrant up db tomcat1 www

Continuous integration jobs

Building these jobs in jenkins. Each job triggers the next. The production updates can run in parallel.

Use your repository url instead of localhost.

clean deploy -DaltDeploymentRepository=maestro-archiva::default::http://localhost:8000/repository/appfuse -P h2
bundle exec rake spec
bundle exec librarian-puppet install
vagrant destroy --force qa
vagrant up qa
bundle exec rake qa && vagrant destroy --force qa

Production boxes updates

Checkout this project and create jobs to run in parallel and update with Puppet. Could ssh into the boxes and run puppet agent --test too.

cd ~/continuous-delivery && vagrant provision db

cd ~/continuous-delivery && vagrant provision tomcat1

cd ~/continuous-delivery && vagrant provision www

continuous-delivery's People

Contributors

carlossg avatar

Watchers

 avatar

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.