GithubHelp home page GithubHelp logo

adizzy71 / modern-jenkins Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cervator/modern-jenkins

0.0 1.0 0.0 2.42 MB

A repo containing code for a modern Docker + Jenkins CI / CD System

Home Page: http://cicd.life/tutorials/

Shell 55.16% Batchfile 6.13% Dockerfile 16.89% Groovy 21.82%

modern-jenkins's Introduction

Dockerized Jenkins Build System

This repo contains an example of a fully automated Jenkins & Docker build system. It was originally developed as part of a tutorial on the following blog: The CI/CD Life

It has been adopted by a new maintainer intending to take it further :-)

Table of contents

Here are links to the originally available tutorial sections:

Please follow along the original tutorial if you'd like to learn how to deploy a a Modern Jenkins Infrastructure on Docker!

New stuff

Beyond the original tutorial covering mostly base Jenkins and Docker topics some new topics have been added, with details in internal PRs:

  • PR #1 - Adding a Vagrant box to run Docker inside
  • PR #2 - Better Gradle and Groovy integration
  • PR #3 - Hooking up Job DSL including samples (later enhanced further)
  • PR #4 - Hobo GitOps! Expand control further to include external DSL and Manifest repos

At this stage to see the new stuff in action from a fresh clone using Vagrant do the following:

  • vagrant up to get your Vagrant box
  • vagrant ssh to get into your Vagrant box
  • cd /vagrant/images/jenkins-base + ./build.sh to build the first Docker image (the base for the other two images)
  • cd ../jenkins-master/ + ./build.sh to build the second image - this contains the Jenkins master itself
  • cd ../jenkins-plugins/ + ./build.sh to build the third and final image - this contains plugins, init scripts, and DSL stuff
  • cd ../../deploy/master/ + ./start.sh to then actually use Docker Compose to stand up everything involved, launching Jenkins to http://localhost:8080

A presentation PDF is included with the repo that covers "Hobo GitOps" - eventually a webinar recording of some sort should become available :-)

Future stuff

Plans and ideas

  • Convert from boring properties files and JSON to Jenkins CasC compatible YAML but still be able to read it from utility jobs
  • Rework the Docker image setup a bit - master war into master image, split apart plugin image from init scripts and DSL, etc
  • Run several Hobo GitOps tiered masters at the same time to better showcase the promotion flow
  • Prepare hooks for various GitOps operators, like WeaveWorks Flux
  • Improve the workspace to also support development work on setting up and configure things beyond Jenkins, such as Nexus or Sonarqube
  • Include support for local manifests / environments where you can begin, then later push those into external repos (nested Git roots yay!)

modern-jenkins's People

Contributors

cervator avatar technolo-g 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.