Skip to content

CI/CD server using Jenkins it covers the end to end process. It can run test cases automatically, builds an image from source code, and pushes it into the docker registry.

Notifications You must be signed in to change notification settings

mesadhan/local-devops-pipeline-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local DevOps Pipeline Configurations

1. Up and running guideline to start pipeline

  • vagrant ssh into machine
  • cd to home/vagrant/data-vagrant/jenkins-ci-cd-server
  • then docker-compose up -d Or
  • If container already started before then just use docker ps to show that container Id. then start it using docker start <containerId>

2. Open Jenkins Server

3. Jenkins CI/CD Server Post Configuration

Before post configuration read data-vagrant/sample-jenkins-app/Jenkinsfile properly.

  1. Make Sure jenkins-ci-cd-server server is up and running properly,
  2. Create Credential for MaxisHub and DockerHub
  3. To Maven & Docker Tools setup follow below steps,
  • Home -> Manage Jenkins -> Global Tool Configuration
  • Maven section add [ Name: myMaven, version: 3.5.2 ]
  • Docker section add [ Name: myDocker, Checked: Install automatically, Download from: docker.com: latest ]

Note: If you want to change myMaven and myDocker then makes sure Jenkinsfile also has the same label.

  1. Now setup Docker Hub credential Go -> Global credentials' -> Manage Jenkins ID=dockerHubAccount`, and put username, and password

4. Create new job using Multibrach Pipeline, following

1.From `General` -> `Branch Sources`

- Project Repository: `git project Url`
- Credentials: `put previous configuration credential`

2.Build Configuration

- Mode: `by Jenkinsfile`
- Script Path: `Jenkinsfile`

Apply, Save Then

5. Build Now

After Build Success, sample-jenkins-app pull and run from DockerHub

Please read data-vagrant/sample-jenkins-app/Jenkinsfile file properly.

SonarQube Setup

If you like to enable sonarqube server then data-vagrant/jenkins-devops-server/docker-compose.yml uncomment and check it.

About

CI/CD server using Jenkins it covers the end to end process. It can run test cases automatically, builds an image from source code, and pushes it into the docker registry.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published