GitLab CI CD Tutorial For Beginners | Continuous Deployment of Node JS app with GitLab CI

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ต.ค. 2024
  • Welcome to another interesting GitLab tutorial for beginners. In this video we are going to learn how to set up CI/CD Pipeline for a node.js app with GitLab CI. We will create NodeJs GitLab CICD pipeline and will show you the completed process of deploying a Node JS application as docker container.
    We will have 4 stages:
    1. Build
    2. Test
    3. Release
    4. Deploy
    ------------------------------------------------------------------------------
    How to build image and push to container registry:
    • GitLab Tutorial For Be...
    -----------------------------------------------------------------------------
    -----------------------------------------------------------------------------
    GitLab maven pipeline:
    • GitLab CI CD Tutorial ...
    ---------------------------------------------------------------------------
    ----------------------------------------------------------------------------
    Check out the github link for the node js application and .gitlab-ci.yml file:
    github.com/sha...
    ---------------------------------------------------------------------------
    ======================================
    Follow me @:
    / thetips4you
    / @thetips4you
    / thetipsforyou
    www.thetips4you...
    =======================================
    Music credit: "Royalty Free Music from Bensound"

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

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

    I finally get it, I didn't know what that was for. I have never had to work with CI/CD or docker but now I need it for a project. Thank you very much, you have opened my vision

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

      That is great to hear. Wishing you all the best for your learning.

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

    Thanks I recently came across this channel and feels like lots of useful videos here. Thanks again for taking effort and creating videos. Keep posting.

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

      Thank you for your feedback.

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

    Thank you it's my first time using CI/CD with you

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

      You are welcome.

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

      @@Thetips4you thanks, I have a problem now, how can I reuse port 3000 with another pipeline ( build job with docker run stuck)

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

      @@ayoubjamouhi6890 You need to kill the previous running containers. Otherwise you can't as the port is already in use. Change the port to a different port number.

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

      @@Thetips4you thanks, in the build I’m running docker rm name , then run with this name

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

    Great video! Would be awesome with a video showing the CI/CD flow of a containerized app being deployed to a Kubernetes cluster. Preferably using one of the more commonly used templating tools like Helm or Kustomize. Perhaps even to multiple namespaces according to a CD process

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

      Thank you for your feedback. Will consider it for future video's.

  • @nicolasduclos-hindie9030
    @nicolasduclos-hindie9030 ปีที่แล้ว +1

    Thanks, great tutorial (thanks a lot).
    Encountered two glitches with self hosted docker gitlab-runners:
    Using "docker" executor gitlab-runners (themselves as docker containers), needed to "modify" the gitlab-runners config.toml "volumes" to:
    volumes = ["/var/run/docker.sock:/var/run/docker.sock","/cache"]
    and "npm test" was hanging until "modified" the "test" in package.json to add "--exit" to mocha:
    "test": "./node_modules/.bin/mocha --exit ./test/test.js"

  • @holyindian
    @holyindian 4 หลายเดือนก่อน +1

    Thanks this is a great tutoral, do you by any chance have the project files to download for this?

    • @Thetips4you
      @Thetips4you  4 หลายเดือนก่อน +1

      Thank you. All details check the GitHub link in video description.

    • @holyindian
      @holyindian 4 หลายเดือนก่อน

      @@Thetips4you Amazing thank you this helps a lot. Again hats off for you to check your older videos and add comments when someone is in need

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

      @@holyindian Appreciate your feedback. Thanks

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

    very good video thanks a lot i really enjoy watching it .I will be thankful if you talk about continous deployment of node js app with gitlab ci and ssh

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

      This video is for nodejs app with gitlab ci. Can you explain more about the requirement.

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

      @@Thetips4you I mean Gitlab CI deploy to VPS using ssh and thanks for your response :)

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

      Sure. Will look in to this.

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

    Hi this is vedio is very help full for me,could you please create vedion on Gitlab CICD Setup with kubernetes.

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

      Thank you for your feedback, I will consider it for future video's.

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

    great video, would like to see this with Kubernetes

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

      Thank you, I do have video for deploying to kubernetes however using Jenkins pipeline.

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

    Thank you sir!

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

    thank you for the video. I have a question. I dont understand, why you push the docker image to the hub? i think it will increase the deploy time.
    Can we do the same thing without uploading the docker image to hub. Just build the docker image locally and start the container in docker?

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

      If you just want to use a local image that should be fine. That is not a good process, you need to keep your images in a repository for use in all machines, for versioning and having the same environment.

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

      @@Thetips4you yes. thank you. i didnt think that aspect.

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

    Perfect Video

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

    can you make a video about cicd with k8s ? thank you so much

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

      Yes, that's in plan.

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

    Great video! That was so insightful. How do we deploy the code to a server running on AWS cloud? Do you have any resources for that?

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

      Sorry.. Not at this point. Maybe later I will add them.

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

      @@Thetips4you Thanks for the reply. Good luck

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

    Cool!

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

    Hi perfect & cool

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

    Cool, thank

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

    all that building and testing for me seems to run on the docker runner. Hwr, where does the production image run???

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

      You can use the runner on your production system which is a docker or kubernetes system.

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

    Where can we find the code repo including the ci.yml file?

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

      Please check the video description for github link.

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

    does it use vps?

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

      I believe you meant vps as virtual private server in cloud , no we are not deploying to cloud.

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

    Can i see your variables

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

      These are default gitlab variables and you don't need to set anything seperate.

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

    more interactive content

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

      Do you mean about this video or it's a suggestion?

  • @CarenNina-e8k
    @CarenNina-e8k 10 หลายเดือนก่อน

    why does the build fail?

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

      With what error?

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

      in this section :
      The command '/bin/sh -c npm install' returned a non-zero code: 134
      looks like it's inside Dockerfile
      @@Thetips4you

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

      @@CarenNina-e8k yeah same issue

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

      @@Thetips4you plz check

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

    thank you sir!