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.
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.
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
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
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?
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.
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
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
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.
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.
please give more videos and concepts about microservices and the spring boot concept
Thanks for the video amazing!
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
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
I am using Intellij IDEA Ultimate Edition which provides syntax highlighting for Thymeleaf tempates.
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?
The name should be the same as Postgres service name you define for catalog Postgres database.
@@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
Thanks a lot!
Whats the purpose of adding Spring profile docker in apps.yml? thanks
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.
Also, the env variables (DB_URL, DB_USERNAME) are standard names or can use any user defined names? please clarify
@@sakthinivas1840 They are not standard names. You can use any other variable names.
Seems like the source code URL given is not correct. Please have a look.
Thanks for letting me know. Corrected it pointing to github.com/sivaprasadreddy/spring-boot-microservices-course.
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
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
@@sivalabs Thank you so much It worked now.
Pls Upload Remaing videos as quick as possible