Giter Site home page Giter Site logo

nodejs-openshift-app's Introduction

OpenShift Development Environment with GitHub and Visual Studio Code

  1. To Access Openshit from command you need to install OpenShift command line interface (CLI). Link https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/.

  2. Download the openshift-client--.* .

  3. Windows user need to add the path of the file to environment variable To Help https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/

  4. Check the the version through command promit

     oc version
    
  5. To login the Openshift account using API end point URL

     oc login <API END POINT Url>
     Username: <enter your user anem>
     Password: <enter your password>
    
  6. Creating a new project

     oc new-project <projectname>
     Ex: oc new-project node-test1
    

    or creating a project in web console

    Image of project

  7. Deploy the application

     oc new-app -- name node-express-hello https://github.com/sada498/OpenShift-Apps.git#test-1  --context-dir node-express-       hello
    

Note: #test-1 is the branch of the GitHub repo to test application

  1. Open your web console and check the app deploy In developer topology

  2. Expose the application to public

     oc expose svc/node-express-hello
    
  3. Go the web console check the application public end point

    Image of finall check

How to make CI/CD pipe line for GitHub and OpenShift

  1. Go to your GitHub project repo then settings
  2. Click on webhooks > add webhook
  3. To get the payload URL, switch to the OpenShift web console in your browser, and then click on Builds in the navigation pane.
  4. Click the your project build config to bring up the Build Config Overview page.
  5. Scroll to the bottom of this page and locate the Copy URL with Secret link next to the GitHub type.
  6. Click on the notepad icon to copy the payload URL. Image of webhook
  7. When you make changes or commits to github project.OpenShift make a automatic builds for the application.

nodejs-openshift-app's People

Contributors

sada498 avatar

Watchers

James Cloos avatar  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.