- The first step will be to create an account on Docker Hub so that we can publish our images. Go to https://hub.docker.com and create an account. You can also use your GitHub account and log in using it if you have one.
- Once you have an account, we will need to create a repository named springbootcookbook.
- With this account created, now is the time to build the image. For this, we will use one of the Gradle Docker plugins. We will start by changing build.gradle to modify the buildscript block with the following change:
buildscript { dependencies { classpath("org.springframework.boot:spring-boot-gradle- plugin:${springBootVersion}") classpath("se.transmode.gradle:gradle-docker:1.2") } }
- We will also need to apply this plugin ...