GithubHelp home page GithubHelp logo

sukelluskello / ise-hardened-docker-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gsa/ise-hardened-docker-example

0.0 1.0 0.0 3 KB

Example Jenkins pipeline that harden a Docker Image

Shell 85.15% Dockerfile 14.85%

ise-hardened-docker-example's Introduction

ise-hardened-docker-example ======

This is an example repo of docker image hardening Jenkins Pipeline.

How to setup a new CICD Pipeline for new Docker Image ------

Step1, Prepare git repo to host jenkins scripts:

  1. Duplicate this GitHub Repo, give it a name like ise-hardened-${your-docker-image-descriptor}
  2. Update Dockerfile, put your source docker image at FROM, update other metadata.

Step2, Setup Jenkins pipeline in Consol

  1. Go to Jenkins Console -> New Item -> Choose Pipeline or Multibranch Pipeline project.
  2. Configure Parameters:
  3. Configure SCM:
    • Pipeline -> Pipeline script from SCM -> Git, fill in Git URL, credentials, branch. You can define a parameter gitBranch and use */${gitBranch} in Branch Specifier input box -> set Script Path Jenkinsfile -> Uncheck Lightweight Checkout (otherwise you cannot use gitBranch parameter to control what branch you want to build from.

Step3, Import Jenkins Shared Library into Jenkins System

Jenkins -> Manage Jenkins -> Configure System -> Search: Global Pipeline Libraries

Fill in https://github.com/GSA/ise-jenkins-shared-library url, it will load the latest jenkins shared library into the runtime, so you can start using those libraries in Jenkinsfile. Check "Load Implicitly" (if not check, you need to manually declare @Library("${LibraryName}") at begin of your Jenkinsfile).

ise-hardened-docker-example's People

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.