Spring Boot MicroServices Course : Dockerizing Catalog Service

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ม.ค. 2025

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

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

    one reason why I think Siva has really made sure these videos are professional: he could have just copy pasted the docker commands for login but he went to the docker git profile to show where he picked up the command from.
    He has consistently done this for spotless et al. A really good chapter of the micro service course.

  • @TheDummyHead
    @TheDummyHead 8 หลายเดือนก่อน +1

    Cool to learn that paketo buildpacks are so easy to use. At work for some reason we have a custom Dockerfile, which requires a lot of maintenance and security hardening.

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

    please give more videos and concepts about microservices and the spring boot concept

  • @manuonda
    @manuonda 6 หลายเดือนก่อน

    Thanks for the video amazing!

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

    when we are already creating the image and pushing to DockerHub using MAven plugin CNI, what is the need to create docker compose for App again. Could you please clarify

  • @rsmpark
    @rsmpark 7 หลายเดือนก่อน

    Do you have a specific plugin that allows your template literals ${{var}} to be highlighted? In my intellij it doesn't seem to highlight the syntax for template literals

    • @sivalabs
      @sivalabs  7 หลายเดือนก่อน

      I am using Intellij IDEA Ultimate Edition which provides syntax highlighting for Thymeleaf tempates.

  • @rsmpark
    @rsmpark 7 หลายเดือนก่อน

    I'm getting an error when composing the app.yml. "service "catalog-service" depends on undefined service "catalog-db": invalid compose project" Do you know how to fix this issue?

    • @sivalabs
      @sivalabs  7 หลายเดือนก่อน

      The name should be the same as Postgres service name you define for catalog Postgres database.

    • @rsmpark
      @rsmpark 7 หลายเดือนก่อน

      @@sivalabs I have the same service name but it still produces error.
      ## infra.yml
      name: "microlib-microservices"
      services:
      catalog-db:
      image: postgres:16-alpine
      container_name: catalog-db
      environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=postgres
      - POSTGRES_DB=postgres
      ports:
      - "15432:5432"
      healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 10s
      timeout: 5s
      retries: 5
      deploy:
      resources:
      limits:
      memory: 500m
      ## apps.yml
      name: "microlib-microservices"
      services:
      catalog-service:
      image: rsmpark/micro-lib-catalog-service
      container_name: catalog-service
      environment:
      - SPRING_PROFILES_ACTIVE=docker
      - DB_URL=jdbc:postgresql://catalog-db:5432/postgres
      - DB_USERNAME=postgres
      - DB_PASSWORD=postgres
      ports:
      - "8081:8081"
      restart: unless-stopped
      depends_on:
      catalog-db:
      condition: service_healthy
      deploy:
      resources:
      limits:
      memory: 700m

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

    Thanks a lot!

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

    Whats the purpose of adding Spring profile docker in apps.yml? thanks

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

      Currently it doesn't serve any purpose apart from knowing the application is running in Docker containers. the application logs print that the application is running with "docker" profile.

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

      Also, the env variables (DB_URL, DB_USERNAME) are standard names or can use any user defined names? please clarify

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

      @@sakthinivas1840 They are not standard names. You can use any other variable names.

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

    Seems like the source code URL given is not correct. Please have a look.

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

      Thanks for letting me know. Corrected it pointing to github.com/sivaprasadreddy/spring-boot-microservices-course.

  • @DileepKumar-kg7ve
    @DileepKumar-kg7ve 8 หลายเดือนก่อน

    Hi Siva
    Facing issue in github actions part
    ./mvnw ntp verify command is giving permission denied error in github actions
    I have tried multiple things in windows but nothing is working

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

      It seems when project is created on Windows, the mvnw doesn't have executable permission.
      I have updated the pipeline configuration in the github repository.
      Adding the following should work:
      - name: Make Maven wrapper executable
      run: chmod +x mvnw

    • @DileepKumar-kg7ve
      @DileepKumar-kg7ve 8 หลายเดือนก่อน

      @@sivalabs Thank you so much It worked now.

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

    Pls Upload Remaing videos as quick as possible