Recent Posts

Initialize a Database Using SQL Scripts with Spring Boot

There are many cases in which we need to initialize an SQL database at application startup. Either creating schema based on DDL scripts or feeding initializing data into database by DML scripts may be required in application startup. Spring Boot provides simple features for developers to run both DDL and DML scripts automatically....

Build small docker images for Java (jlink)

As a Java developer I package my project into a runnable immage, for example package it into Docker images as explained here and here. So I have runtime images in which there is a JRE(Java Runtime Environment) to execute my code. But is it performant enaugh to have entire JRE there? Is it possible to select only parts of JRE ?...

Build a Docker Image Using Maven or Gradle

That is a common way to package our applications as a Docker image by using Dockerfile as explained here. But as a Java developer we use Maven or Gradle for building and packaging our applications. And so we want to make building of Docker image fits into our workflow... So it will be the same if you only change in your resources...

Inject maven dependencies into Docker image

As a Java developer I want to build a Docker image. I want to aquire a Docker feature named multi-stage builds. While that process. I want to prevent downloading mvn dependecies through building docker image. process. So I want to manually inject dependencies into Docker image...You can provide your project or clone the github ...

Simple Java + Docker

As a Java developer I want to build a lean Docker image for my java app. A Docker feature named "multi-stage builds" make this process so easy and straight forward. As a simple sample project we have a Spring-Boot hello world project ... In the root of the project there would be a file named Dockerfile ... Use -v option of docker for mounting ...

Set custom Process name for service in Linux CentOS

I have had created some systemd services in Linux(CentOS) which described at create-linux-systemd-service. Now for a monitoring requirement that's needed to set a custom process name to my running services. Some different solutions were tested and none of them worked on CentOS-7x. Finally founded that there is a very simple solution...

CI/CD with Jenkins

Recently I had a nice experience with Jenkins in which I worked with many different facilities CI/CD and concepts via Jenkins. In this article I want to share this experience as short as not being boring. Jenkins is The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating...