Spring boot build docker image | Spring profiles, Runtime environment variables

  Рет қаралды 5,962

Coding with Max

Coding with Max

Күн бұрын

Пікірлер: 10
@GROOVETECHSETS
@GROOVETECHSETS 2 жыл бұрын
I will definitely watch this video when I finish my app! Highly interested ✌
@codingwmax
@codingwmax Жыл бұрын
Hope you like it!
@maneshipocrates2264
@maneshipocrates2264 2 жыл бұрын
Thanks alot! Do you think using this tags will help if I have to services each with their own application properties? And I will want service1 and service2 to kind of inherit from an application.properties. I will wish that each service loads its own appliation.properties file independently. The video quality if blurred. Not sure why.
@codingwmax
@codingwmax 2 жыл бұрын
What you can do is create additional profiles: service1, service2. This will allow you to have specific application.properties files for each profile e.g. application-service1.properties. Then you can activate multiple profiles: prod, service1. This way it will load the following files: application.properties, application-prod.proprties, application-service1.properties. You can do the same for the second service.
@maneshipocrates2264
@maneshipocrates2264 2 жыл бұрын
@@codingwmax Thanks alot! I will try that because my ultimate goal is to dockerize them when I finish. U really helped me this video,.
@maneshipocrates2264
@maneshipocrates2264 2 жыл бұрын
@@codingwmax Already tried but it seems to load just 1 profile service1. When I defined 2 ports and tried to run the services, service2 tells me the port is already in use. It means the application-service2.properties do not seem to run via its own port! So maybe this method works only if we are using several properties files in a single spring boot application, since in that case, we only need 1 port!
@AnkitKumarSoni-xf5xy
@AnkitKumarSoni-xf5xy Жыл бұрын
Hi, All worked but a facing a problem while building it, Getting "Builder lifecycle 'creator' failed with status code 51". in details, its not able to load the creator, , Stuck here!! Can you help here
@codingwmax
@codingwmax Жыл бұрын
Hi, I remember I faced similar problems one time and it turned out the website to download dependencies was down. Are you still facing this issue?
@AnkitKumar-jp1uw
@AnkitKumar-jp1uw Жыл бұрын
@@codingwmax no it didn’t work, so switched to old procedure jar with dockerfile, 😅😅 Thanks for the information though
@akpraha
@akpraha 3 ай бұрын
Another video that could have been an article... sigh.
5 Common Mistakes Spring Developers Make
18:06
Dan Vega
Рет қаралды 19 М.
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 43 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 199 МЛН
PIZZA or CHICKEN // Left or Right Challenge
00:18
Hungry FAM
Рет қаралды 16 МЛН
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 4,4 МЛН
Dockerfile | Building Custom Image | Deploying Spring Boot in Docker
19:20
Контейнеризация приложений - Spring Boot
58:52
Уголок сельского джависта
Рет қаралды 8 М.
How to dockerize your Spring Boot API | Docker Tutorial
8:17
Random code
Рет қаралды 98 М.
Java Virtual Threads - Reactive Programming Killer?
13:57
Viraj Shetty
Рет қаралды 21 М.
Rest API with JWT Access & Refresh Tokens | Spring Boot, MongoDB
17:22
Coding with Max
Рет қаралды 17 М.
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 43 МЛН