Git Product home page Git Product logo

nomad-consul-jenkins's Introduction

nomad-consul-jenkins

Vagrantfile to create nomad and consul master, two nomad workers, one nginx server for reverse proxy and jenkins server for app deployments.

Single node master (with nomad and consul) is used due to local env limitation, consul and nomad master should be separated with 3 node (minimum) cluster.

Requirements

This project is tested on VirtualBox Build 5.2.22 and Vagrant 2.2.2, install VirtualBox Build 5.2.22 and Vagrant on your local system. Once vagrant is installed, install vbguest plugin as well using below command.

vagrant plugin install vagrant-vbguest

Usage


To clone repository

git clone https://github.com/faisalshah11/nomad-consul-jenkins.git
cd nomad-consul-jenkins/nomad/

Provision infrastructure with following IP addresses:

master-server -> 10.10.10.10
worker-1 -> 10.10.10.20
worker-2 -> 10.10.10.30
fabio-lb -> 10.10.10.40 (optional)
nginx (proxy) -> 10.10.10.50
jenkins -> 10.10.10.60

vagrant up --provision 

Jenkins server is provisioned with jobs, you just need to signup on jenkins page (10.10.10.60:8080) and you will be able to deploy application from there.

First run DEPLOY-AIRPORTv101-COUNTRYv101 job to deploy 101 version of both applications.

Now when commit is made on airport repository, jenkins will update the airport service with 110 version.


Nomad: 10.10.10.10:4646 Consul: 10.10.10.10:8500 Jenkins: 10.10.10.60:8080

Following endpoints will become available after successful deployment,

10.10.10.50:8000/airports
10.10.10.50:8000/countries

Services can not be accessed directly from outside world, and will only respond to requests from proxy server.


nomad-consul-jenkins's People

Contributors

faisalshah11 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.