Giter Club home page Giter Club logo

jenkins-slave-nodejs6's Introduction

Jenkins Slave to build Node.js 6 apps (CentOS/RHEL7 based)

Project for creating a Node.js 6 based Jenkins Slave container image (for use in OpenShift).

OCP logo

Build it yourself or try using the Dockerhub version (tag latest is CentOS, tag rhel7-latest is Red Hat E.Linux).

docker hub stats

Versions available

This is targeted towards OpenShift 3.7 and later, CentOS/RHEL7, and Node.js 6.

Using this image

Assuming you already have an OpenShift cluster up and running and your Jenkins pipeline setup. You need to:

  1. Update the Jenkins Kubernetes plugin to reference the builder image. Open your Jenkins webconsole and in Jenkins->Manage Jenkins->Configure System. Then look in Cloud->Kubernetes->Kubernetes Pod Template. Depending on where your container image lives, the new setup should look something like this:

Screenshot

  1. Update your pipeline to reference the correct slave image by name. Something like:

    pipeline {
        agent {
            node {
                // spin up a node.js slave pod to run this build on
                label 'nodejs6'
            }
        }
    
        [THE STAGES AND STEPS...]
    

    or with the older syntax:

    node('nodejs6') {
        stage('build') {
            openshiftBuild(buildConfig: '${NAME}', showBuildLogs: 'true')
        }
        
        [OTHER STAGES...]
    

Need a pipeline to test this out on?

Try this one

References

If you want to read more about the Jenkins slave builder images see below links.

For OpenShift Origin:

For the production version - OpenShift Container Platform:

The upstream official source for these images that eventually goes into OpenShift:

Upstream built image (which I think is currently nodejs8):

jenkins-slave-nodejs6's People

Contributors

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