Skip to content

Aldawsari395/nodeapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker Containerized NodeJS Application

Sample project made to apply some of my knowledge on the Automation topic.

Contains

  • Simple Express API that has one endpoint.
  • A test case made with Mocha & Chai.
  • Dockerfile to containerize the app with Docker.
  • Jenkinsfile pipline that performs the following steps:
    1. Clones this repo.
    2. builds then runs the test cases.
    3. Builds the Docker image.
    4. Pushes the image to a private repo on Docker Hub registry.

Needs

  • Jenkins instance with the following plugins:
  • Private Docker Hub repository
    (change registry variable inside Jenkinsfile)
  • Jenkins credentials entry with the ID: docker-cred
  • New Jenkins pipeline job that pulls definition from git scm.

About

Sample project made to apply some of my knowledge on the Automation topic.

Topics

Resources

Stars

Watchers

Forks