Code Monkey home page Code Monkey logo

ruby-dockerize's Introduction

Description

This is a demo Jenkins Pipeline for a containerized ruby on rails app, & includes the following stags:

  1. Development Build & run unit tests
  2. Build the prod docker image
  3. Push the image to docker hub
  4. Deploy the app to the staging ENV (staging namespace)
  5. Deploy the app to the prod ENV (prod namespace) "Asks for confirmation"

As required by the task, Here is the Kubernetes yaml


Environment description

  • The work has been done on a Test K8s cluster which also hosts Jenkins
  • 3 namespaces has been used:
    • build -> Used by Jenkins to build the app (it utilized k8s pods as agent)
      • Also used to deploy the app on both staging & prod namespaces
    • staging -> imitation of the staging environment
    • prod -> imitation of the production environment

Staging URL: https://staging-app.demo.devops-caffe.com

Production URL: https://prod-app.demo.devops-caffe.com

Jenkins URL: https://jenkins.demo.devops-caffe.com/jenkins/

admin

password

Where the images are pushed: Docker hub


Usage

Since this is a "Proof of concept" pipeline, Trigger the pipeline manually

NOTE -- Github & Docker hub Credentials are removed from Jenkins

image

image

image


Thank you

ruby-dockerize's People

Contributors

eslam-gomaa avatar

Stargazers

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