Giter VIP home page Giter VIP logo

cddemo's Introduction

CDDemo

This is the demo of the continuous deployment (Concurrently it is version 0.2).

A static website (index.html) is taken as an example to show how to run CD on the aws Tomcat server. Once a new branch, with the change in index.html, is merged into the master, git will send a "push" request to Jenkins, and Jenkins will checkout the source code of this git repo and build it into a war file. And this war file will be sent to the Tomcat web server for the deployment. Jenkins and Tomcat server are both installed in my AWS EC2 instance. The index.html can be checked from here, http://13.59.181.21:8080/demo/.

  1. Software dependency. You only need to install git in your local environment.

a) git (I am using git for windows https://git-for-windows.github.io/)

  1. Setup in my AWS EC2 instance.

a) Install Java8, Git, Ant, Jenkins, Tomcat8.

b) Jenkins' port 8081, Tomcat8's port 8080.

c) Config this repo to provide Webhooks.

d) Jenkins - install/config git plugin, deploy war to container plugin.

e) Run chmod to give permission to the aws ec2user to deploy the war file to webapps folder.

  1. Comparison from version 0.1

a) No need of script file, post-commit or post-merge to trigger the ant build and push to the Tomcat server.

b) Security: no need to expose my aws key file (since Jenkins and Tomcat are both sitting in my AWS EC2 instance).

cddemo's People

Contributors

zbhuang2008 avatar zbhuang avatar zbhuang0625 avatar

Watchers

James Cloos avatar  avatar

Forkers

zbhuang0625

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.