GitLab CI CD Tutorial For Beginners | GitLab CI To Build A Java Maven Project Using Docker

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ส.ค. 2024
  • #devops #cicd #gitlab In this video we will learn How to use GitLab CI to build a Java Maven project. This will be a continuation of GitLab CI CD Tutorial For Beginners , and another GitLab CI/CD Examples. If you are looking for tutorial on GitLab CI/CD with Maven and Docker, this is the right place for you.
    Key words:
    gitlab ci cd demo, gitlab ci/cd pipeline configuration, gitlab ci cd pipeline, gitlab ci cd docker
    ---------------------------------------------------------------------------
    GitLab CICD basics:
    • Gitlab CI CD Tutorial ...
    ---------------------------------------------------------------------------
    -------------------------------------------------------------------------
    GitLab runners:
    • GitLab CI CD Tutorial ...
    • GitLab CI CD Tutorial ...
    -------------------------------------------------------------------------
    ------------------------------------------------------------------------
    GitLab CICD Pipeline
    • GitLab CI CD Tutorial ...
    --------------------------------------------------------------------
    -------------------------------------------------------------------
    GitLab Project link:
    gitlab.com/sha...
    --------------------------------------------------------------------
    ==================================
    Follow me @:
    / thetips4you
    / @thetips4you
    / thetipsforyou
    www.thetips4you...
    ================================
    Music credit: "Royalty Free Music from Bensound"

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

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

    Please upload a vedio on node js project with gitlab cicd. Although the vedio was very much informative

    • @Thetips4you
      @Thetips4you  3 ปีที่แล้ว

      Sure. Thank you for your suggestion.

  • @bobbiliharibabu336
    @bobbiliharibabu336 5 หลายเดือนก่อน +2

    Hi shazforiot, Super explaination

    • @Thetips4you
      @Thetips4you  5 หลายเดือนก่อน

      Thank you.

  • @shambhunathsahani6505
    @shambhunathsahani6505 4 วันที่ผ่านมา

    How can I add eslint steps to do in testing in gitlab

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

    Hi,
    It’s a wonderful explanation and so good for starters but I have a question how the gitlab url communicate with runner installed in some Linux or windows machine is that through the runner registration? If so how shared runner works?

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว

      Yes, you need to register runner. Shared runner is from gitlab itself and it picks up the job based on the load and tags you have given.

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

    Thanks for good explanation. Keep it up your good works

    • @Thetips4you
      @Thetips4you  3 ปีที่แล้ว

      Thank you friend for your feedback.

  • @kirankumarsukumar
    @kirankumarsukumar 2 ปีที่แล้ว

    Found it useful. Thanks🙂

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

      Glad it was helpful!

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

    Hi sir, thanks for your useful tutorial. But i just got one question, if i need to include some 3rd party jar in the build process (e.g. ojdbc), how can i do?
    Because those jar is not on maven repository which will cause error during build process. Thanks!!

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

      You can download the ojdbc jar and add to local maven repository and then add to pom file. There are lot of internet resource on this, how to do.

  • @venkyjaa7736
    @venkyjaa7736 2 ปีที่แล้ว

    Hi , I have a doubt .
    1. Why we are creating pipelines ?
    2. We will see the output of selenium class files by give run in eclipse , in same way what is the output we will get ? Once the test job is passed, it will automatically launch browser ?
    3. What happens all the jobs are passed ? Where the codes are deploying ?
    4. Why we using variables in yml file ?
    I m new to ci CD concept. Kindly give me a reply .

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

      Since you are new to CICD concept, I would request you to start with the basics in DevOps and GitLab from the basic tutorial.

    • @venkyjaa7736
      @venkyjaa7736 2 ปีที่แล้ว

      @@Thetips4you tq 4 d reply

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

    Hi sir. What does the first image keyword signify ? Which image should we give here ?

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว

      Yes, image used to run the maven builds and the commands.

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

    Can you point to the video on how to deploy the jar file and build th docker container for this jar file

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

      There are videos on it. Please check the playlist

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

      @@Thetips4you I cant see any video where a java project is deployed being demonstrated.

  • @jyoti1221
    @jyoti1221 2 ปีที่แล้ว

    Hello Sir, how can we implement Sonar on gitlab with maven project?
    So that whenever pipelines runs and if sonar fails then fail complete pipeline.

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว

      You need to add Sonarqube check in to the pipeline , unfortunately I have not created a video on gitlab ci i believe. It is available for Jenkins in the channel.

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

      @@Thetips4you yes sir i will try the same,thanks

  • @satyanarayana-oh2sx
    @satyanarayana-oh2sx 2 ปีที่แล้ว

    Please update video for specific runnner jobs

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว

      Sure. Will plan it in upcoming video's

  • @raminkarimi6757
    @raminkarimi6757 2 ปีที่แล้ว

    Hi, Thanks very much for your instructive and useful video.I have a question, which I. appreciate very much, if you can answer it for me. I have a Maven project in Appium, which install app on IOS real device(iPhone) and launch it. I am running this using Eclipse editor, now I want to run it in gitlab CI. According to your instruction, I created .gitlab-ci.yml to be like the following:
    stages:
    - build
    -test
    build_jobs:
    stage: build
    script:
    - echo "Maven compile started"
    - "mvn compile"
    test_jobs:
    stage: test
    script:
    - "mvn test"
    I am going to install any necessary component on the new testing machine and avoid using docker image ( as I had on my local Mac machine like Appium server, Maven, Java jdk1.8, also I am staring Appium server programmatically from my test. so there is no problem.)
    I am using company gitlab CI, but I do not know how to register a runner or which one to use? So I appreciate very much, if you let me know what I should do, step by step (because I am very new), or if you kindly make a a quick video on that, I would be eternally grateful. Thank you very much

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว

      You can refer my video on Gitlab CI in which I have covered on setting up your own runner or use shared runner.

    • @raminkarimi6757
      @raminkarimi6757 2 ปีที่แล้ว

      @@Thetips4you Thank you so much for quick reply. I will surely check that.

  • @Xaalek
    @Xaalek 2 ปีที่แล้ว

    How can I include sonarqube in the process ?

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

      You can refer my Jenkins pipeline for Sonarqube and use similar approach. The steps will be different, I will check to create a video for Sonarqube and gitlab.

    • @Xaalek
      @Xaalek 2 ปีที่แล้ว

      @@Thetips4you I try to find a video that explains how to implement gitlab pipeline with docker maven and sonarqube

  • @satyanarayana-oh2sx
    @satyanarayana-oh2sx 2 ปีที่แล้ว

    Need Full git lab video s can any one help in this

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว

      Please check the GitLab Playlist.

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

    where s the docker?

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

      Do you mean where the docker is installed?

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

      @@Thetips4you no, i mean, is the docker inside the gitlab-runner or is it inside the linux server?

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

      @@fkbey5756 You can have gitlab shared runner or your own runner on which docker is installed.

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

      @@Thetips4you I have a vps ubuntu server , and i installed gitlab-runner and docker. ( gitlab-runner is not an docker image, it installed on docker),
      but i would like to share my maven java project inside the docker as a image. how can i do it?

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

      You build a docker image using dockerfile if you ant to create a docker image.

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

    Более нудного дикломатора я не встречал... Вам бы в театр читать сказки, а не инструкции создавать

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

      Сожалеем о вашем отзыве.