Skip to Main Content
Spring Boot 2.0 Cookbook - Second Edition
book

Spring Boot 2.0 Cookbook - Second Edition

by Alex Antonov
February 2018
Intermediate to advanced content levelIntermediate to advanced
286 pages
7h 20m
English
Packt Publishing
Content preview from Spring Boot 2.0 Cookbook - Second Edition

How to do it...

  1. 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.
  2. Once you have an account, we will need to create a repository named springbootcookbook.
  3. 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") 
  } 
} 
  1. We will also need to apply this plugin ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Spring 5.0 Cookbook

Spring 5.0 Cookbook

Sherwin John Calleja Tragura
Spring Boot 2.0 Projects

Spring Boot 2.0 Projects

Mohamed Shazin Sadakath
Java Hibernate Cookbook

Java Hibernate Cookbook

Yogesh Prajapati, Vishal Ranapariya

Publisher Resources

ISBN: 9781787129825Supplemental Content