locked
How to deploy my application in my ci/cd gitlab configuration RRS feed

  • Question

  • User-1204637165 posted

    Dear All,

    I have an application that has 5 micro services. All micro services talk to the same database for a special reason. Right now I have a sperate repo for each of the applications. 

    My current challenge is that if I make a change to the common library  that they all share. I would have to update all the repos with the new library dll.  So am thinking of a work arround, were I host all the projects in the same solution. 

    The solution for the entire microservices with the libraries they share would all be in one repo.

    I would also have a seperate docker file that starts each of the applications individually from their entry point.

    Then a single gitlab file that can be used to spin up the 5 docker containers.

    So once I do a push for updates. All the docker files are rebuilt and the containers are automatically updated with no downtime at all.

    Please how do I go about this.

    Thanks alot.

    Tuesday, November 10, 2020 12:28 PM

Answers

  • User1535942433 posted

    Hi InspiredJide,

    but do u think it is possible to have multiple apps in one repo

    As far as I think,it's possible to have multiple apps in one repo for Monorepos.

    More details,you could refer to below article:

    https://about.gitlab.com/direction/monorepos/

    Best regards,

    Yijing Sun

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 12, 2020 9:20 AM

All replies

  • User1535942433 posted

    Hi InspiredJide,

    One of the new trends in Continuous Integration/Deployment is to:

    1.Create an application image.

    2.Run tests against the created image.

    3.Push image to a remote registry.

    4.Deploy to a server from the pushed image.

    More details,you could refer to below article:

    https://docs.gitlab.com/ee/ci/docker/README.html

    Best regards,

    Yijing Sun

    Wednesday, November 11, 2020 6:12 AM
  • User-1204637165 posted

    Thanks but do u think it is possible to have multiple apps in one repo. so each docker file would use the dll for each pass as entry point to create multiple containers.

    Wednesday, November 11, 2020 7:18 PM
  • User1535942433 posted

    Hi InspiredJide,

    but do u think it is possible to have multiple apps in one repo

    As far as I think,it's possible to have multiple apps in one repo for Monorepos.

    More details,you could refer to below article:

    https://about.gitlab.com/direction/monorepos/

    Best regards,

    Yijing Sun

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 12, 2020 9:20 AM