Reader small image

You're reading from  Microservices with Spring Boot 3 and Spring Cloud, Third Edition - Third Edition

Product typeBook
Published inAug 2023
Reading LevelIntermediate
PublisherPackt
ISBN-139781805128694
Edition3rd Edition
Languages
Right arrow
Author (1)
Magnus Larsson
Magnus Larsson
author image
Magnus Larsson

Magnus Larsson, an IT industry veteran since 1986, has consulted for major Swedish firms like Volvo, Ericsson, and AstraZeneca. Despite past struggles with distributed systems, today's open-source tools like Spring Cloud, Kubernetes, and Istio offer effective solutions. For the past eight years, Magnus has been helping customers use these tools and shared insights through presentations and blog posts.
Read more about Magnus Larsson

Right arrow

Installation Instructions for macOS

In this chapter, we will learn how to set up the tools required to run the commands described in this book on macOS. We will also learn how to get access to the source code of the book.

The following topics will be covered in this chapter:

  • Technical requirements
  • Installing tools
  • Accessing the source code

If you are using a Windows PC, you should follow the instructions in Chapter 22, Installation Instructions for Microsoft Windows with WSL 2 and Ubuntu.

Technical requirements

All of the commands described in this book are run on a MacBook Pro with macOS Ventura and use bash, a command shell. All commands have been verified on both an Intel and Apple silicon-based MacBook Pro.

If you are using another shell, such as zsh, I recommend that you switch to bash before running commands from this book using this command:

/bin/bash

Accessing the source code

The source code for this book can be found in the GitHub repository: https://github.com/PacktPublishing/Microservices-with-Spring-Boot-and-Spring-Cloud-Third-Edition.

To be able to run the commands that are described in this book, download the source code to a folder and set up an environment variable, $BOOK_HOME, that points to that folder.

Sample commands are as follows:

export BOOK_HOME=~/Documents/Microservices-with-Spring-Boot-and-Spring-Cloud-Third-Edition 
git clone https://github.com/PacktPublishing/Microservices-with-Spring-Boot-and-Spring-Cloud-Third-Edition.git $BOOK_HOME

The Java source code is written for Java SE 8 and uses a Java SE 17 JRE when executed in Docker containers. The following versions of Spring are used:

  • Spring Framework: 6.0.6
  • Spring Boot: 3.0.4
  • Spring Cloud: 2022.0.1

The code examples in each chapter all come from the source code in $BOOK_HOME/ChapterNN, where NN is the number...

Summary

In this chapter, we learned how to install, configure, and verify the tools required to run the commands described in this book on macOS. For development, we will use git, docker, java, and spring. To create a Kubernetes environment to deploy our microservice at runtime, we will use minikube, helm, kubectl, and istioctl. Finally, to run tests to verify that the microservices work as expected at runtime, we will use curl, jq, and siege.

We also learned how to access the source code from GitHub and how the source code is structured.

In the next chapter, we will learn how to set up the same tools in an environment based on Microsoft Windows with Windows Subsystem for Linux v2 (WSL 2), where we will use a Linux server based on Ubuntu.

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Microservices with Spring Boot 3 and Spring Cloud, Third Edition - Third Edition
Published in: Aug 2023Publisher: PacktISBN-13: 9781805128694
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Author (1)

author image
Magnus Larsson

Magnus Larsson, an IT industry veteran since 1986, has consulted for major Swedish firms like Volvo, Ericsson, and AstraZeneca. Despite past struggles with distributed systems, today's open-source tools like Spring Cloud, Kubernetes, and Istio offer effective solutions. For the past eight years, Magnus has been helping customers use these tools and shared insights through presentations and blog posts.
Read more about Magnus Larsson