Тёмный

Dockerize any Spring Boot Microservice in minutes 

Fast and Simple Development
Подписаться 3,1 тыс.
Просмотров 2,2 тыс.
50% 1

Learn how to create a Dockerfile and create a Docker Image for your Spring Boot Application in minutes.
If you can program in Java, you can use Docker.
Follow these Fast and Simple instructions today.
Build your Project with Maven
mvn clean compile package -DskipTests
Create a Docker file
DockerfileFROM openjdk:8-jdk-alpineWORKDIR /optENV PORT 8181EXPOSE 8181COPY target/*.jar /opt/app.jarENTRYPOINT exec java $JAVA_OPT -jar app.jar
Build a Docker image from your jar file
docker build -t thomasjayconsulting/dockerme:0.0.1 .
Run your image in your Docker container
docker run -d -p 8181:8181 --name test_service thomasjayconsulting/dockerme:0.0.1
More can be found on my Udemy classes: www.udemy.com/...
Find this and more on my GitHub: github.com/Tho...
As well as my Web site: www.thomasjayc...
I want to help you learn and find an Amazing Job or just increase your Skills.
#java #docker #springboot

Опубликовано:

 

13 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
@fastandsimpledevelopment
@fastandsimpledevelopment Год назад
Amazing how fast you can create a Docker Image for a Spring Boot Microservice. In less than 10 minutes!
@youtubevideos415
@youtubevideos415 Год назад
What? Why are you using this ancient stone age technology like Java 8 in 2023? I thought this was going to be about the new integrated Spring Boot docker functionality of 3.1.
@fastandsimpledevelopment
@fastandsimpledevelopment Год назад
Oracle will be supporting Java 8 for 7 more years! All the fortune 100 companies I consult for use Java 8, too many legacy libraries to upgrade for a newer version. Even Spring Boot 3 does not work with Java 8. It's impossible to move to a new version of Java until all the companies can upgrade (or are forced to based on support). Trying to upgrade and have Security teams approve the change is all but impossible. Too many people want to stay in the 10 year old eco-system, DevOps teams always push back on upgrades. Now that we have more and more Microservices it really do not have the same issue any more but in reality Amazon is only at Java 11 (Lamdba, etc) and Spring Boot 3 requires Java 17. Even after Oracle saying they will not charge for Java now there are so many things stopping progress. Even with all the security issues in Legacy Java it has not been push forward. It would be great to have Records and all the new features but the simple changes of javax.* to jakarta.* in Spring Boot 3 kills so many legacy libraries that it will be a major update to move to Spring Boot 3.
Далее
Dockerizing Springboot Application | Docker @ashokit
17:54
Microservices using SpringBoot 3.0 | Full Example [NEW]
1:25:38
Integrate Bootstrap 5 with Spring Boot & Thymeleaf
32:48