Packaging your .jar or .war files into a Docker container | Docker & Java

► Java/Spring courses & guides
www.marcobehler.com
► Newsletter
bit.ly/2K0Ao4F
► KZread sub
bit.ly/2lVExgm
You learned how to build your own Docker images, now it's time to put your application's .jar or .war file inside that docker image so that you can run endless container instances with your application. Let's find out how to do that in this episode.

Пікірлер: 40

  • @rammohan4056
    @rammohan40563 жыл бұрын

    Crisp & Clear session. Shows your clarity on this microservices subject . :)

  • @humaripragati
    @humaripragati4 жыл бұрын

    To the point, simple and precise explanation

  • @anantsoni6335
    @anantsoni63352 жыл бұрын

    I was struggling to put my java code into docker but your tutorial really completed all my doubts. Thank you very much for sharing this beautiful content.

  • @pacheco1bsb
    @pacheco1bsb4 жыл бұрын

    Thanks Man! You help me a lot.

  • @xX_dash_Xx
    @xX_dash_Xx3 жыл бұрын

    great video, very helpful!

  • 4 жыл бұрын

    thank you dude, its work awesome..

  • @mahendrahotte6831
    @mahendrahotte68314 жыл бұрын

    Thanks explained very nicely

  • @mikvar2022
    @mikvar20225 жыл бұрын

    Great video, thanks!

  • @oleksandrhusiev6544
    @oleksandrhusiev65445 жыл бұрын

    Nice video, thanks a lot!

  • @joaopedroandrademarques3919
    @joaopedroandrademarques39193 жыл бұрын

    very nice! thanks for the video

  • @yisongzhu799
    @yisongzhu7995 жыл бұрын

    Thanks my friend.

  • @mohammedmubeenhussain1143
    @mohammedmubeenhussain1143 Жыл бұрын

    very helpful. thank you

  • @UmKaraGamer
    @UmKaraGamer5 жыл бұрын

    Thanks bro!

  • @chanduchandu2343
    @chanduchandu23434 жыл бұрын

    Thanks bro

  • @mayurbagul1276
    @mayurbagul12763 жыл бұрын

    video is really nice.

  • @cesarjusto6225
    @cesarjusto62254 жыл бұрын

    How would you implement it with a .war file? I have a web service in Java but I want to implement it with Tomcat, Bell, I want to pack it in a .war file and mount it as a video player

  • @mertyertugrul
    @mertyertugrul4 жыл бұрын

    This is great thank you.

  • @MIt-ql5bo
    @MIt-ql5bo5 жыл бұрын

    cool. can you show how to setup a tomcat with my web application in a docker container?

  • @MarcoBehler

    @MarcoBehler

    5 жыл бұрын

    Hi M.It, unfortunately my backlog is already full at the moment, but the next question would probably be: Sure you might not just want to use an embedded tomcat inside your .jar file?

  • @javieraguirre1697
    @javieraguirre16975 жыл бұрын

    Is not necessary deploy the application in a tomcat inside the docker? I mean this works but it would't be better to deploy a server application in the container?

  • @MarcoBehler

    @MarcoBehler

    5 жыл бұрын

    You mean as in having a dedicated tomcat instance running in docker? It doesn't really matter: Embedded Tomcat or dedicated Tomcat, it's basically the same source code.

  • @MIt-ql5bo
    @MIt-ql5bo5 жыл бұрын

    how to fix the error "You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added" on windows??

  • @MarcoBehler

    @MarcoBehler

    5 жыл бұрын

    Does this help? stackoverflow.com/questions/46080312/windows-docker-build-warning-non-windows-docker-host

  • @arbazadam3407
    @arbazadam34074 жыл бұрын

    Hello Marco. Thats a very clear explanation. However i would like to ask you one thing, how are we able to run the application on 8080 without exposing the port in the dockerfile?

  • @pcphoenix123

    @pcphoenix123

    4 жыл бұрын

    I would like to know as well.

  • @ChickenCrafter007

    @ChickenCrafter007

    2 жыл бұрын

    @@pcphoenix123 my first guess would be that this is possible due to "-p 8080:8080" which maps the port the same as the dockerfile would do. Correct me if i am wrong.

  • @vinod575575
    @vinod5755753 жыл бұрын

    I am not much into java, Please share the .jar file for your viewers testing. It will be very helpful.

  • @Himanshu-xm8cw
    @Himanshu-xm8cw3 жыл бұрын

    I have a question, can we put all these steps in jenkins pipeline and run it..

  • @idreesahmed2051

    @idreesahmed2051

    3 жыл бұрын

    I am looking for the same question.

  • @aryemkret3026
    @aryemkret30262 жыл бұрын

    so where is war files packaging?

  • @suhagsarak6196
    @suhagsarak61964 жыл бұрын

    Whats taht java IDE name

  • @MarcoBehler

    @MarcoBehler

    4 жыл бұрын

    IntelliJ Idea.

  • @furkankamci
    @furkankamci4 жыл бұрын

    no such file or directory problem..

  • 4 жыл бұрын

    jar dosyan yanlış yerdedir dostum. Yorum bildirimi gelmeyecek. o yüzden dockerfile'ın hangi dizinde ise ordan baz alarak path yazman gerekiyor onu söyliim şimdilik..

  • @furkankamci

    @furkankamci

    4 жыл бұрын

    @ Aynen hocam bir değişiğini yaptım bende script 'in en üstüne bir satır daha ekledim önce bulunduğum dizine kopyalıyorum sonrasında build ve push işlemlerini yaptırıyorum. Uzaktaki bir dosyayı ne yazık ki kopyalamayı beceremeyince öyle yaptım ama dediğini de deneyeceğim. Ayrıca bilgilendirme için çok teşekkür ederim.

  • @MarcoBehler

    @MarcoBehler

    4 жыл бұрын

    Unfortunately my (hopefully) Turkish is non-existing. Did you manage to fix it?

  • @rened.lacruzibarra5974
    @rened.lacruzibarra59744 жыл бұрын

    your tutorial is wrong, no ? i have a complete proyect and i get an exit docker container in 6 seg

  • @jun-ki
    @jun-ki3 жыл бұрын

    Title is misleading. You are not doing it for .war

  • @GentianLicenji
    @GentianLicenji4 жыл бұрын

    Rename your title. you only showed how to package a jar file. You are not building a docker image with a war file.

  • @JackAbou2

    @JackAbou2

    3 жыл бұрын

    agree title is misleading. he did not package or run a war file