Ultra RealTime End to End CI/CD Project | Docker | Jenkins | Nexus | SonarQube | datree | Helm | K8s

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 พ.ย. 2022
  • #docker #kubernetes #ansible #git #linux #jenkins #dockerfile #k8 's #nexus
    Join this channel to get access to the perks:
    / @mrdevops
    📠📱You can book a paid call for a mock interview, career suggestion, and DevOps Consulting with me then you can refer below form 📃📑.
    forms.gle/cuSH76SWwZS1q9Fi7
    In this video below are the things we have achieved..
    ------------------------------------------------------------------------------------------------------------------------------------------------
    1. Application Overview & Overview of tools being used
    2. Git use cases
    3. Jenkins Declarative Pipeline Creation
    4. Maven Building jar/War files
    5. SonarQube Configuration
    6. Sonarqube-webhook Configuration & integration with Jenkins.
    7. Static code Analysis
    8. QualityGate Status
    09. Nexus Repo Overview
    10. Nexus Jenkins integration & Nexus Private Repo creation for Docker Images
    11. Nexus Private Repo creation to store Helm Charts.
    12. Error Debugging
    13. Multistage DockerFile
    14. Docker Image Build
    15. Docker Image Push
    16. Post block in Jenkins
    18. Sending email notifications to team to show Build status.
    19. Used datree.io to validate helmcharts against the policies.
    20. How to deal with different maven version for multiple evnironments, used docker as an agent.
    17. To be continued...
    For Jenkins installation:
    ----------------------------------------------------------------------------------
    www.digitalocean.com/communit...
    for docker installation
    www.digitalocean.com/communit...
    Nexus Installation
    --------------------------------------------------------------------------------
    www.howtoforge.com/how-to-ins...
    Files used in this Lab:
    --------------------------------------------------------------------------------
    github.com/vikash-kumar01/dem...

    Full Terraform course
    ► • Terraform explained - ...
    Complete Real-time Docker Project
    ► • End to End DevOps Proj...
    Complete Real-time Kubernetes project
    ► • Complete Real-time Dep...
    Complete DevOps Project
    ► • Complete CI/CD Project...
    ▬▬▬▬▬▬ Connect with me ▬▬▬▬▬▬
    INSTAGRAM
    ► bit.ly/3fPHLuz
    LINKEDIN
    ► bit.ly/3FSLQbZ
    FB
    ► bit.ly/3nRKYOB

ความคิดเห็น • 125

  • @MrDevOps
    @MrDevOps  ปีที่แล้ว +7

    Hey guys. !!
    One of the best thing about this project is : you can attach to your resume if you're an experienced and you're well versed with the advance DevOps concepts.
    Switch to 2x for better experience !!
    Join this channel to get access to the perks:
    th-cam.com/channels/V4R0eN_xu57-t9VGK9KhRQ.htmljoin
    📠📱You can book a paid call for a mock interview, career suggestion, and DevOps Consulting with me then you can refer below form 📃📑.
    forms.gle/cuSH76SWwZS1q9Fi7
    In this video below are the things we have achieved..
    ------------------------------------------------------------------------------------------------------------------------------------------------
    1. Application Overview & Overview of tools being used
    2. Git use cases
    3. Jenkins Declarative Pipeline Creation
    4. Maven Building jar/War files
    5. SonarQube Configuration
    6. Sonarqube-webhook Configuration & integration with Jenkins.
    7. Static code Analysis
    8. QualityGate Status
    09. Nexus Repo Overview
    10. Nexus Jenkins integration & Nexus Private Repo creation for Docker Images
    11. Nexus Private Repo creation to store Helm Charts.
    12. Error Debugging
    13. Multistage DockerFile
    14. Docker Image Build
    15. Docker Image Push
    16. Post block in Jenkins
    18. Sending email notifications to team to show Build status.
    19. Used datree.io to validate helmcharts against the policies.
    20. How to deal with different maven version for multiple evnironments, used docker as an agent.
    17. To be continued...
    For Jenkins installation:
    Full Terraform course
    ► th-cam.com/video/_TK21qgr87U/w-d-xo.html
    Complete Real-time Docker Project
    ► th-cam.com/video/gvk9jZz0P6s/w-d-xo.html
    Complete Real-time Kubernetes project
    ► th-cam.com/video/JZL2tOncw3U/w-d-xo.html
    Complete DevOps Project
    ► th-cam.com/video/xxxc1KhuU5M/w-d-xo.html
    ▬▬▬▬▬▬ Connect with me ▬▬▬▬▬▬
    INSTAGRAM
    ► bit.ly/3fPHLuz
    LINKEDIN
    ► bit.ly/3FSLQbZ
    FB
    ► bit.ly/3nRKYOB

    • @akhilkarvanje4783
      @akhilkarvanje4783 11 หลายเดือนก่อน

      Hey Vikash, could we get the source code for this. The link mentioned in the description doesnt have correct code.

  • @taniaduggal6459
    @taniaduggal6459 ปีที่แล้ว +1

    Amazing! Please upload more projects

  • @99north52
    @99north52 ปีที่แล้ว +4

    Finally I have completed this big project..This is the best project i have ever done so far...bro i have almost handson all of your projects from your playlist..Thank you so much so again for your kind helps..Bro You are Awesom 👍🏻👍🏻👍🏻

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว +1

      Glad you learnt from my projects !! Keep learning keep rocking ❤️

    • @gauravsinghjethuri5405
      @gauravsinghjethuri5405 11 หลายเดือนก่อน

      can you please tell from where you get the source code? please help

    • @iknjoaguani8511
      @iknjoaguani8511 3 หลายเดือนก่อน

      Please is there a video before this one?

  • @shadhashmi3714
    @shadhashmi3714 10 หลายเดือนก่อน +1

    Ur project is very good for freshers. And practice. One thing is very in this video your error sounds on ur laptop it's so loud. Please look into this while recording

  • @felixgato27
    @felixgato27 ปีที่แล้ว +1

    Hi. Great session! Can you make a session with Microservices?

  • @khemchandkolhe3
    @khemchandkolhe3 ปีที่แล้ว

    very useful session bro thank u so much

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      Glad you liked it,
      please do support us by sharing on LinkedIn and you can tag me as well.

  • @dileepgutta1390
    @dileepgutta1390 ปีที่แล้ว +1

    Thanks so much bro in this video u have explained completely about ci what abt the CD part in kuberenets env..will you continue in next video please reply..

  • @abidshaikh5857
    @abidshaikh5857 ปีที่แล้ว

    Hello Sir,
    Please upload second part,and thanks for the videos.

  • @iknjoaguani8511
    @iknjoaguani8511 11 หลายเดือนก่อน

    Hi Mr Vikash, thank you for this video. Please is there a video before this one because it looks like this one is a continuation of a previous video

  • @jaydeepdutta9465
    @jaydeepdutta9465 ปีที่แล้ว

    this is absolutely a great project bro.. loved it . Its great for practice🤗 . Please tell when the next part will be introduced ??🙏

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว +1

      Thanks 😊, very soon

  • @guruGumma
    @guruGumma ปีที่แล้ว

    Hi Bro,
    Really I have learned lot from this video.
    Could you please add next as well.
    Thank!!!

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      Sure, stay tuned!!

  • @saadullahkhanwarsi5853
    @saadullahkhanwarsi5853 9 หลายเดือนก่อน

    thanks for video but you installed docker plugin just in jenkins server? or install the docker via commands in jenkins instance?

  • @digambarnandrekar6540
    @digambarnandrekar6540 ปีที่แล้ว

    waiting waiting waiting...!

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      Thanks !!

    • @almacnouzitti6706
      @almacnouzitti6706 ปีที่แล้ว

      @@MrDevOps ye topics hone hhie\\
      combine me 5-6 hours and one vedio bhi y small combine ho jati h
      small classes 20 -20 min
      ip --v4 v6 -----2 class
      cidr
      subnetting -------1 class -30 min
      vpn bastion jump server
      load balancer one class egress ingress bta skte
      proxy and reverse proxy
      azure active directory kese lgegi 200% case cloud based azure directory even aws ///accounts //admin --200 accounts ----50 vpn
      vpn , firewall yes hmesha lgta hai
      db vpn kese secure kroge kha se hit kroge
      app server --------one class
      proxy server and web server phli server -------one class
      one class --20 min osi possible h 15 min bas wireshark use krke packet kese move hota h
      kuch commands profiling and linux networks secur
      hardening kese krte server ki , secure kese, chiana hit kre bach jao
      kuberntes secuirty networking based ---3 lectures tools h
      direct connect kya terminilogy h
      backup and sync kese khaskar db p hack ho next? backup hai?
      sync kese kroge db server daily ka daily , no sql 200% install krwate all 3env staging prod and dev
      serverless in db , lambda yes how network works n that right ip hit ho, sara kam no sql serverlss lambda p

  • @user-pw6mv3gb3j
    @user-pw6mv3gb3j ปีที่แล้ว

    hello @mr devops kindly share link next part this video awesome explanation cool

  • @seeme-uu2jx
    @seeme-uu2jx ปีที่แล้ว

    Mr.DevOps your doing great Its making too great your replying each and every person in the comment section Than you so much for making others life easy.
    My question is how do you integrate visual studio code in this project I mean I didn't use this visual studio yet , so what should I do just need to copy and paste the git hub repo link over there in visual studio code or making new file ?

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว +1

      Glad you found it helpful!!
      You can download/clone the GitHub code to local.
      Created a GitHub repo in your account and configure git with you GitHub repo and push the codes simple.
      I have made video on git you can check, it'll help you.

  • @rahulsingh-iq4gd
    @rahulsingh-iq4gd ปีที่แล้ว

    Bro could you plz make monitoring tool tutorial as well.. it will really help us .

  • @HrudayaRanjan-mk1yu
    @HrudayaRanjan-mk1yu ปีที่แล้ว

    Hi Bro, Can you please make a video for monitoring with ELK.

  • @99north52
    @99north52 ปีที่แล้ว +2

    hey bro..this is really a nice project.. i really appreciate your big effort for this...Thanks for this project again... also i have small doubt that,, Bro can i use all these tools with only two t2-medium instance ??? coz i have already give a lot of excuses to AWS regarding to cost emission for using paid instances.🙃🙃... but i am really egger to learn from you and your project. plz bro answer me... thanks for your concern... also again a big thanks for your effort.. Have a good day bro !!!😘😇

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว +1

      Glad you loved the project & took time to appreciate.
      You can do with one t2 medium, launch everything using docker containers 😃.

    • @99north52
      @99north52 ปีที่แล้ว +1

      @@MrDevOps thank u so much bro..for ur suggestion..i will implement it...👍🏻👍🏻

  • @awssoorinje747
    @awssoorinje747 ปีที่แล้ว

    Dear Sir, kindly make one complete video on - Overview of all Kubernetes Objects . only theory .

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      Sure, I'll plan for it.

  • @99north52
    @99north52 ปีที่แล้ว

    thanks so much bro.. i finally completed a big project.. bro really you made everything so simple and easy way explanation. i love this...Btw bro i have request you that plz create a video on RUNNING A JAVA APPLICATION OR ANY REACT APP ON BROWSER USING JENKINS-SONAR-NEXUS-DOCKER-KUBERNETES. i to you think this will be real life scenario of deploying and running a java app or a react app in browser.. and also a kind request that, Bro plz plz help me to clear my doubts if i got any..You are so active n clearing all doubts in this channel immediately.. Thanks again a lot Bro..Wish you a very good time🙏🙏🙏

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว +1

      Thank you @99 North,
      Sure will do soon, do share with your friends too..

    • @99north52
      @99north52 ปีที่แล้ว

      @@MrDevOps yes bro for sure ..and also thanks again for ur quick reply...have a good time bro 👍🏻

  • @Rameshpowervlogs
    @Rameshpowervlogs ปีที่แล้ว

    Bro...Where can i get commnds that used in set up k8s master and node please help me out..

  • @akhilkarvanje4783
    @akhilkarvanje4783 ปีที่แล้ว

    I checked the github source file and i feel like the code/repo has been modified as the jenkins file is incomplete. can only find jenkins pipeline stages till quality gate status

  • @johnpaulpineda2476
    @johnpaulpineda2476 ปีที่แล้ว +1

    Can you make a MERN Application End To End CI/CD Project please?
    Jenkins | Docker | Ansible | Kubernetes | Sonarqube

  • @hdrc10
    @hdrc10 ปีที่แล้ว

    Hi Vikash, thank you for the detailed tutorial. Really appreciate it. I was able to follow through hands-on but I got this error while trying to push the helm chart to nexus
    Error: non-absolute URLs should be in form of repo_name/path_to_chart, got: myapp
    Can you point me to what is causing this error. Thanks

    • @rakeshkoduri4226
      @rakeshkoduri4226 ปีที่แล้ว

      script{
      withCredentials([string(credentialsId: '********', variable: '*******')]){
      dir('kubernetes/')
      directory path should be dir('kubernetes/')

  • @ehteshambhai
    @ehteshambhai ปีที่แล้ว

    Hi Vikash,
    Do you have continuation for this video, to download the helm charts onto the Kubernetes cluster.

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      Hi Khaja, stay tuned it's coming soon..

  • @snayeem6350
    @snayeem6350 ปีที่แล้ว

    We are add this project in our resume

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      Yes, you can..

    • @vasiliicojocari1758
      @vasiliicojocari1758 ปีที่แล้ว

      Please tell us how you add this project in your resume?

  • @seeme-uu2jx
    @seeme-uu2jx ปีที่แล้ว

    Hi, Mr.DevOps your doing greate, I would humbly request you please share the github repo link as well files which are using in this project so that we can easly perform the task.
    Also I would request you please start this project from scratch step by step because freshers can also go with that steps and perform easly.
    Will it complete project means from git commit to k8s deployment ?
    thank you so much.

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      Thank you !! This project is from scratch, a Beginner can also learn till advance level..

  • @Rameshpowervlogs
    @Rameshpowervlogs ปีที่แล้ว

    what is the project name u took from github please tell me the name..

  • @federico9505
    @federico9505 ปีที่แล้ว

    how much do you pay for the 3 instances on aws per month? (assuming the running state for all the month long)

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      You can calculate the same using aws calculater by choosing your instances type there.

    • @emmaaudu3461
      @emmaaudu3461 ปีที่แล้ว

      if you can, google cloud is free for mostly 50 days, and they give you about $300 credit.

  • @nkb9735
    @nkb9735 ปีที่แล้ว

    Sir how did you generate post block 😩😫

  • @pikachu3686
    @pikachu3686 ปีที่แล้ว

    BRO REPOSITORY GALAT DALA HAI DESCRIPTION MAE

  • @tejalshide-lt9fc
    @tejalshide-lt9fc ปีที่แล้ว

    Can u plz share the interview questions related on this project ..

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว +1

      Sure, stay tuned

  • @Vikranth4A5
    @Vikranth4A5 ปีที่แล้ว

    Hi Mr. Devops
    I am trying to use the docker credentials to login 1:40:05 at this time I am getting the error could not use the PASSWORD for cli can you suggest me

    • @shadhashmi3714
      @shadhashmi3714 10 หลายเดือนก่อน

      Did u connect Jenkins to sonarqub? I am facing issues to connect Jenkins to sonarqub

  • @subashreeg3254
    @subashreeg3254 8 หลายเดือนก่อน

    Bro, Kindly provide the link for deployment process

  • @rohitsingirikonda
    @rohitsingirikonda ปีที่แล้ว +1

    Bro, when will get next part?

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว +1

      Stay tuned, coming soon.

  • @tanmoysantra1112
    @tanmoysantra1112 ปีที่แล้ว

    Where is the Deployment part video?

  • @devopsflow707
    @devopsflow707 ปีที่แล้ว +1

    Why did you use old version kubelet?

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      You're open to choose any version.

  • @ritiktiwari360
    @ritiktiwari360 ปีที่แล้ว +3

    sir I got an error while run jenkins pipeline , java.io.IOException: Failed to run image 'maven'. Error: docker: Error response from daemon: error while creating mount source path '/var/lib/jenkins/workspace/mrdevops_nexus_helm_cicd_app@2': mkdir /var/lib/jenkins: read-only file system.

  • @Rameshpowervlogs
    @Rameshpowervlogs ปีที่แล้ว

    Please complete how to containriaztio with kubernetes

    • @Rameshpowervlogs
      @Rameshpowervlogs ปีที่แล้ว

      When did u make it bro?? Please complete as possible as early

  • @zeeshanali2805
    @zeeshanali2805 ปีที่แล้ว

    how to download kubrentes in ec2 inatnce where the process you are doing for setup can you pleas tell

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      Using terraform modules i have deployed the amazon eks and connected via ec2 instance.
      You can do minikube setup or using kubeadm you can do the installation 😊

  • @gauravsinghjethuri5405
    @gauravsinghjethuri5405 ปีที่แล้ว

    bhaiya you have provided different files in the description for this video. can you tell the repo name of this project?

    • @akhilkarvanje4783
      @akhilkarvanje4783 11 หลายเดือนก่อน

      did you get the code?

    • @gauravsinghjethuri5405
      @gauravsinghjethuri5405 11 หลายเดือนก่อน

      @@akhilkarvanje4783 no vroo. this man does not reply.

    • @gauravsinghjethuri5405
      @gauravsinghjethuri5405 11 หลายเดือนก่อน

      @@akhilkarvanje4783 i think he created this video only for his implementation.

  • @Rameshpowervlogs
    @Rameshpowervlogs ปีที่แล้ว +1

    Please suggest how to add this project in my resume

  • @shadhashmi3714
    @shadhashmi3714 10 หลายเดือนก่อน

    I am following same code still I am unable to connect Jenkins to sonarqub. Can any one help me who have done this project

  • @Rameshpowervlogs
    @Rameshpowervlogs ปีที่แล้ว

    Please tell me where can found the commnds u set up k8s on master and slave i want do this project please help me out

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      Check my GitHub repo..

    • @Rameshpowervlogs
      @Rameshpowervlogs ปีที่แล้ว

      Bro it lts 16.04 it work evry unbutu right??

    • @Rameshpowervlogs
      @Rameshpowervlogs ปีที่แล้ว

      @@MrDevOps wt is the file name

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว +2

      @@Rameshpowervlogs github.com/vikash-kumar01/installation_scripts/blob/master/kubeadm_install.docx

    • @Rameshpowervlogs
      @Rameshpowervlogs ปีที่แล้ว +1

      @@MrDevOps tanq so much bro

  • @morfawfidelis2849
    @morfawfidelis2849 ปีที่แล้ว

    How can I get in contact with you sir

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      CheckOut the video description link 🔗.

  • @spatil6884
    @spatil6884 ปีที่แล้ว

    guys make sure to open port of docker registry in inbound rule of nexus server i.e. 8083 which is shown in this video otherwise it will not connect. i was facing issue

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว +1

      Thanks for mentioning.

  • @Tony_stark551
    @Tony_stark551 ปีที่แล้ว +1

    PLEASE tell us how to add all thus in resume

  • @pikachu3686
    @pikachu3686 ปีที่แล้ว

    can i use minikube for this project

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      Yes, you can.

  • @SaiRam-qp1lf
    @SaiRam-qp1lf ปีที่แล้ว

    Hi Bro
    I have Doubt Regarding Devops Engineer with 2 year experience how much knowledge he want it and which tools and shortcut and responsibilities he want to learn and devops project please reply this comment it important for me

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      There is no such criteria based on experience, but yeah try cover atleast one tool from various DevOps tools for various purposes.
      For more you can check the link 🔗 in the video description and register yourself.

    • @SaiRam-qp1lf
      @SaiRam-qp1lf ปีที่แล้ว

      @@MrDevOps can you do daily roles and responsibilities of devops engineer video Bro

  • @Phoenix-ux8dh
    @Phoenix-ux8dh ปีที่แล้ว

    bruh pehle aws mai kaise login karke phir wo instance kaise banate hain wo dikha denatha, stuck in the beginning

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      Day 01 | How To Deploy A WebApplication on EC2 Instance | Real Time DevOps Project | #60daysofdevops
      th-cam.com/video/t9U3ffFX7iM/w-d-xo.html

  • @Rameshpowervlogs
    @Rameshpowervlogs ปีที่แล้ว

    Bro i want jenkins file to git repo it asking athentication or token please provide or how resolve it

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      Hope you're using your repo..

    • @Rameshpowervlogs
      @Rameshpowervlogs ปีที่แล้ว

      @@MrDevOps yes bro tabq so much for efforts..keep doing

  • @faisaliqbal7382
    @faisaliqbal7382 ปีที่แล้ว

    hello sir do you have any DevOps interview courses.

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      Hey Faisal, we have a interview preparation kit.

    • @faisaliqbal7382
      @faisaliqbal7382 ปีที่แล้ว

      @@MrDevOps how to contact with you

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      @@faisaliqbal7382 write me at vikashashoke@gmail.com or check the video description.

  • @udaykumar-tb5kn
    @udaykumar-tb5kn ปีที่แล้ว

    Where is starting video... Tell me pls

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว +2

      Its a separate complete project !!

    • @udaykumar-tb5kn
      @udaykumar-tb5kn ปีที่แล้ว

      @@MrDevOps where we can find that pls... End to end from scratch which playlist to be followed?

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว +1

      @@udaykumar-tb5kn i mean this project is complete only and same channel contains 70+ DevOps projects

    • @udaykumar-tb5kn
      @udaykumar-tb5kn ปีที่แล้ว

      @@MrDevOps got it

  • @pikachu3686
    @pikachu3686 ปีที่แล้ว

    http error:
    504 Gateway Time-out
    504 Gateway Time-out
    Error: plugin "datree" exited with error
    i got this error in stage 5

  • @taniaduggal6459
    @taniaduggal6459 ปีที่แล้ว

    Telegram group link please

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      t.me/MrDevOpss

  • @Rameshpowervlogs
    @Rameshpowervlogs ปีที่แล้ว

    Hi bro i need to talk with u

  • @Rameshpowervlogs
    @Rameshpowervlogs ปีที่แล้ว

    I want mock interview please help me

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว +1

      Get Registered through the link given in video description.

    • @Rameshpowervlogs
      @Rameshpowervlogs ปีที่แล้ว

      Where can I get commnds for install kubdeam ur used for k8s..in master and slave... please tell me

    • @Rameshpowervlogs
      @Rameshpowervlogs ปีที่แล้ว

      I didn't told in video where can get commnds

    • @Rameshpowervlogs
      @Rameshpowervlogs ปีที่แล้ว

      @@MrDevOps bro i want u used commnds in k8s kubedam one master and node how to setup that commnds please provide that doc

  • @user-sm5fn7zk9l
    @user-sm5fn7zk9l 8 หลายเดือนก่อน

    Hi,
    I followed all the steps in your video, but i am getting in my jenkins pipeline
    Could not create local repository at /.m2/repository -> [Help 1] . I tried many ways but not able to rectify , can you help

  • @Arunlatatiwari-vh1rr
    @Arunlatatiwari-vh1rr ปีที่แล้ว

    sir I got an error , I tried every solution but I can't resolve this error please help me
    while run jenkins pipeline , java.io.IOException: Failed to run image 'maven'. Error: docker: Error response from daemon: error while creating mount source path '/var/lib/jenkins/workspace/mrdevops_nexus_helm_cicd_app@2': mkdir /var/lib/jenkins: read-only file system.

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      At what stage it’s failing ? And brief me about issue with the respective step

    • @Arunlatatiwari-vh1rr
      @Arunlatatiwari-vh1rr ปีที่แล้ว

      @@MrDevOpssir here,
      Started by user shriniwas
      Obtained Jenkinsfile from git github.com/shriniwas-devops/-mrdevops_nexus_helm_cicd_app.git
      [Pipeline] Start of Pipeline
      [Pipeline] node
      Running on Jenkins in /var/lib/jenkins/workspace/mrdevops_nexus_helm_cicd_app
      [Pipeline] {
      [Pipeline] stage
      [Pipeline] { (Declarative: Checkout SCM)
      [Pipeline] checkout
      Selected Git installation does not exist. Using Default
      The recommended git tool is: NONE
      No credentials specified
      > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/mrdevops_nexus_helm_cicd_app/.git # timeout=10
      Fetching changes from the remote Git repository
      > git config remote.origin.url github.com/shriniwas-devops/-mrdevops_nexus_helm_cicd_app.git # timeout=10
      Fetching upstream changes from github.com/shriniwas-devops/-mrdevops_nexus_helm_cicd_app.git
      > git --version # timeout=10
      > git --version # 'git version 2.25.1'
      > git fetch --tags --force --progress -- github.com/shriniwas-devops/-mrdevops_nexus_helm_cicd_app.git +refs/heads/*:refs/remotes/origin/* # timeout=10
      > git rev-parse refs/remotes/origin/main^{commit} # timeout=10
      Checking out Revision b9ad1d561352d2acd5ad7552509970a7929e296a (refs/remotes/origin/main)
      > git config core.sparsecheckout # timeout=10
      > git checkout -f b9ad1d561352d2acd5ad7552509970a7929e296a # timeout=10
      Commit message: "Update README.md"
      > git rev-list --no-walk b9ad1d561352d2acd5ad7552509970a7929e296a # timeout=10
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] withEnv
      [Pipeline] {
      [Pipeline] withEnv
      [Pipeline] {
      [Pipeline] stage
      [Pipeline] { (sonar quality check)
      [Pipeline] node
      Running on Jenkins in /var/lib/jenkins/workspace/mrdevops_nexus_helm_cicd_app@2
      [Pipeline] {
      [Pipeline] checkout
      Selected Git installation does not exist. Using Default
      The recommended git tool is: NONE
      No credentials specified
      > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/mrdevops_nexus_helm_cicd_app@2/.git # timeout=10
      Fetching changes from the remote Git repository
      > git config remote.origin.url github.com/shriniwas-devops/-mrdevops_nexus_helm_cicd_app.git # timeout=10
      Fetching upstream changes from github.com/shriniwas-devops/-mrdevops_nexus_helm_cicd_app.git
      > git --version # timeout=10
      > git --version # 'git version 2.25.1'
      > git fetch --tags --force --progress -- github.com/shriniwas-devops/-mrdevops_nexus_helm_cicd_app.git +refs/heads/*:refs/remotes/origin/* # timeout=10
      > git rev-parse refs/remotes/origin/main^{commit} # timeout=10
      Checking out Revision b9ad1d561352d2acd5ad7552509970a7929e296a (refs/remotes/origin/main)
      > git config core.sparsecheckout # timeout=10
      > git checkout -f b9ad1d561352d2acd5ad7552509970a7929e296a # timeout=10
      Commit message: "Update README.md"
      [Pipeline] withEnv
      [Pipeline] {
      [Pipeline] isUnix
      [Pipeline] withEnv
      [Pipeline] {
      [Pipeline] sh
      + docker inspect -f . maven
      .
      [Pipeline] }
      [Pipeline] // withEnv
      [Pipeline] withDockerContainer
      Jenkins does not seem to be running inside a container
      $ docker run -t -d -u 114:120 -w /var/lib/jenkins/workspace/mrdevops_nexus_helm_cicd_app@2 -v /var/lib/jenkins/workspace/mrdevops_nexus_helm_cicd_app@2:/var/lib/jenkins/workspace/mrdevops_nexus_helm_cicd_app@2:rw,z -v /var/lib/jenkins/workspace/mrdevops_nexus_helm_cicd_app@2@tmp:/var/lib/jenkins/workspace/mrdevops_nexus_helm_cicd_app@2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** maven cat
      [Pipeline] // withDockerContainer
      [Pipeline] }
      [Pipeline] // withEnv
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] stage
      [Pipeline] { (Quality Gate Status)
      Stage "Quality Gate Status" skipped due to earlier failure(s)
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] }
      [Pipeline] // withEnv
      [Pipeline] }
      [Pipeline] // withEnv
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      java.io.IOException: Failed to run image 'maven'. Error: docker: Error response from daemon: error while creating mount source path '/var/lib/jenkins/workspace/mrdevops_nexus_helm_cicd_app@2': mkdir /var/lib/jenkins: read-only file system.
      at org.jenkinsci.plugins.docker.workflow.client.DockerClient.run(DockerClient.java:148)
      at org.jenkinsci.plugins.docker.workflow.WithContainerStep$Execution.start(WithContainerStep.java:200)
      at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:322)
      at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:196)
      at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:124)
      at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:47)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)
      at org.jenkinsci.plugins.docker.workflow.Docker$Image.inside(Docker.groovy:140)
      at org.jenkinsci.plugins.docker.workflow.Docker.node(Docker.groovy:66)
      at org.jenkinsci.plugins.docker.workflow.Docker$Image.inside(Docker.groovy:125)
      at org.jenkinsci.plugins.docker.workflow.declarative.DockerPipelineScript.runImage(DockerPipelineScript.groovy:54)
      at org.jenkinsci.plugins.docker.workflow.declarative.AbstractDockerPipelineScript.configureRegistry(AbstractDockerPipelineScript.groovy:63)
      at org.jenkinsci.plugins.docker.workflow.declarative.AbstractDockerPipelineScript.run(AbstractDockerPipelineScript.groovy:50)
      at org.jenkinsci.plugins.pipeline.modeldefinition.agent.CheckoutScript.checkoutAndRun(CheckoutScript.groovy:61)
      at ___cps.transform___(Native Method)
      at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:90)
      at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:116)
      at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:85)
      at jdk.internal.reflect.GeneratedMethodAccessor142.invoke(Unknown Source)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
      at com.cloudbees.groovy.cps.impl.ClosureBlock.eval(ClosureBlock.java:46)
      at com.cloudbees.groovy.cps.Next.step(Next.java:83)
      at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:152)
      at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:146)
      at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:136)
      at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:275)
      at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:146)
      at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
      at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)
      at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:187)
      at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:420)
      at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:330)
      at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:294)
      at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
      at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:30)
      at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:70)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      at java.base/java.lang.Thread.run(Thread.java:829)
      Finished: FAILURE

  • @johnknow4563
    @johnknow4563 ปีที่แล้ว

    Hi Vikash, I am getting this error at the step of 1:12:27 when you installed docker for the first build.
    maven cat
    $ docker top 1dc0ae0bf5c5bf23579fd599b45cef47391578eaa4b90ebcef49bc6b2c595df4 -eo pid,comm
    [Pipeline] {
    [Pipeline] script
    [Pipeline] {
    [Pipeline] withSonarQubeEnv
    Injecting SonarQube environment variables using the configuration: sonar-server
    [Pipeline] {
    [Pipeline] sh
    + mvn clean package sonar:sonar
    [ERROR] Could not create local repository at /.m2/repository -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] cwiki.apache.org/confluence/display/MAVEN/LocalRepositoryNotAccessibleException
    I checked and rechecked, but unable to understand what is the problem. Please have a look and let me know. Thank you.

    • @MrDevOps
      @MrDevOps  ปีที่แล้ว

      Steps to troubleshoot :
      1. check if you have sufficient disk space.
      2. Check if jenkins user have appropriate permission to create m2 directory.
      3. Or try manually creating the .m2/repository and set the permissions to -R 755.

  • @pikachu3686
    @pikachu3686 ปีที่แล้ว

    Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "%2Fvar%2Frun%2Fdocker.sock/v1.24/images/create?fromImage=maven&tag=latest": dial unix /var/run/docker.sock: connect: permission denied
    yae error hai