Deploy Spring Boot WAR to Tomcat in Docker Container

preview_player
Показать описание
Learn How to develop and deploy your Spring Boot war application to a Remote Apache Tomcat Server running in a Docker Container.
Covers building a Docker Image through the Spotify Apache Maven plugin and a Dockerfile.

As a bonus, I'll show you how to use the Spotify plugin to push your Docker Image to a public Docker Hub repository. This Java tutorial uses the Netbeans 8.2 IDE which also runs in its own Docker Container so you'll learn how to have it communicate with the Docker host in order for your Docker Image to be built.

I'll demo the basic Docker commands you need to know from the command line to start, stop and view the logs in your Apache Tomcat 8.5 Docker Container.

You can download the docker image tutorial straight from DockerHub by executing ...
docker pull mvpjava/springboot_docker_tomcat

If you want to learn how to Setup your Netbeans IDE (or any really) in a Docker Container then Click on the link below to see the video "Docker for your Java Development Environment" ...
==============================================

Subscribe to MVP Java ...

Follow me ...
Рекомендации по теме
Комментарии
Автор

I have an error

[ERROR] Failed to execute goal (default-cli) on project quality: Exception caught:
COPY failed: stat no such file or directory ->]

COPY quality-0.0.1-SNAPSHOT.war

HectorFlores-spok
Автор

I am getting no main manifest attribute, in /usr/local/tomcat/webapps/, , , what can be the error

vipinjain
Автор

Hello, If I have an existed java application, Do I apply the same you for the tutorial it is amazing

lotaleta
Автор

Hi,
thanks for the tutorial.
Can you please provide the docker-compose.yml file ?

lovr
Автор

Colud i know the font that you are used in? Thanking you.

ramesh_panthangi
Автор

could you please mention other maven dependencies instead of spotify

misterxnordic
Автор

great tutorial, thanks! can you please upload the to a git repo ?

adizergu
Автор

Hi,

Great tutorial.

By the way, you don't need a tomcat image but a java image. Your entry point launches the spring boot application (the tomcat in it), not the tomcat from the docker image.

Cheers,

ArnaudVandyck
Автор

May you provide the source code of this app!

alesblaze