How to deploy your Java applications using Docker

preview_player
Показать описание
Here's our goal for this tutorial. We will compile the Java code, and on a successful build, we’ll package it up into a jar, and create a Docker container containing our Java application. We’ll do all of this within Maven. The Maven script can be called from any continuous integration tool.

From there we can push the docker file to a Docker repository, or we can use it to spin up as many instances of the machine that we want. That’s the power of Docker. We define our container once, and we can run it as many times as we want. This is important for microservices.

#java #docker #tutorial







Concepts: Java, Docker, microservices, maven

Social Links: Don't hesitate to contact me if you have any further questions.

Related Videos:



Maven ➜

Media credits: All images are owned by DJ Spiess or used under CC0 unless listed below

Music:
Рекомендации по теме
Комментарии
Автор

*DevOps* : Test, Build, Run
*Java* : Build, Deploy, Run

StEvUgnIn
Автор

Hie thanks a lot looking forward for more docker tutorials

doctortafadzwa
Автор

I really appreciate your tutorials. They are so good. I have a confusion about docker and kubernetes. Could you please give an example of combination of these two tools. Thanks in advance.

hadimohammadi
Автор

Great video. A small request if you could post a video on docker with CI tools that would be much better

azeemmohammed
Автор

Nice video about java + docker + maven

Kuzamazatsakara
Автор

Great video! Would be very cool if you could do one or more videos about Dicker!

jlongcheck
Автор

I do like such style of tutorials. could you please make some more about docker

altr
Автор

Great video, it will be good if you include how to create the configuration .xml file, so that it will be helpful for the new learners .
and the changes need to be done in.m2 folder (xml file)

mujjumcs
Автор

First of all: Great tutorial! How about Multi-Platform builds?
a) How would I start a dockerized Payara on Windows (with a windows base image).
b) Can I have my maven script build multiple docker images for different target platforms?
c) If I have three devs, one preferring a Windows, the other a Linux and the third one a Mac computer, can I have one maven file and use it to build+run for each of the different platforms?

brixomatic
Автор

Thank you for the great video .. a question : let's suppose if there is a project with 10 ear files deployed on weblogic Server domain, how can it be dockerized ..
Can you please suggest .. FYI : using Jenkins to build and deploy and its a maven project ..

Thanks again in advance !

gopal
Автор

Should we place the <Configuration> section just below the </plugin> in pom.xml?

felyiaalbert
Автор

Thank you very much! Can you make videos about Jenkis? Thank very much!

ibarrajuan
Автор

Thanks for nice video, Is there any way to launch java JFrame inside the docker container?

cbsarchi
Автор

this is grate video
I am new in docker implementation in my maven project Jenkins as continues integration tool so i want to deploy my web application on AWS 100 instances could you please guide us how to integrate Jenkins and docker

hemantbarawkar
Автор

is there a way to make the same using gradle? regards.

eriknykk
Автор

Thanks for the videos. They are the best on microservices and docker I've seen.

Just one thing: the pom.xml code on the web site has dropped the camelCase tag names in some places. e.g.

<plugin>


<version>0.4.10</version>

aussiebeermoney
Автор

Great video, can you show us the best workflow, using a helloWorld app and your IDE. From 0 to deploy ;) Thanks in advance

houssemzaier
Автор

Hi, Thanks for the video.
I would like to know how to add other Dockerfile commands such as ADD, CMD, COPY or RUN etc in to pom.xml ?
Is there any syntax for converting these commands to xml ?

farhoodhoseinpur
Автор

Hi, how can I host a java jar with my restlet server on docker cloud ?

prateeksharma
Автор

I have now switched from eclipse (where I have the build working) to a CentOS 7 Linux VM with JDK 8 and maven 3.3.9 installed. I am building from the command line "mvn clean package docker:build" and for some reason it can't find the docker plugin:

garycsaniz
join shbcf.ru