Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Jib – Containerize Your Java Application

Image Credit: https://github.com/GoogleContainerTools/jib

                           Building containerized applications require a lot of configurations. If you are building a Java Application and planning to use Docker, you might need to consider Jib. Jib is an opensource plugin for Maven and Gradle. It uses the build information to build a Docker image without requiring a Dockerfile and Docker daemon. In this article, we will build a simple Spring Boot application with Jib Maven configuration to see Jib in action. The pom.xml configuration with Jib is given below.

After the above change, use the below Maven command to build the image and push that image to DockerHub. If you face any authentication issues with DockerHub, refer https://github.com/GoogleContainerTools/jib/tree/master/jib-maven-plugin#authentication-methods

Now, pull the image which we created with the above command to run it.

That’s it. No more additional skill required to create a Docker Image.



This post first appeared on Smart Techie | My Thoughts, My Work, My Ideas, please read the originial post: here

Share the post

Jib – Containerize Your Java Application

×

Subscribe to Smart Techie | My Thoughts, My Work, My Ideas

Get updates delivered right to your inbox!

Thank you for your subscription

×