Muutke küpsiste eelistusi

E-raamat: Introducing Micronaut: Build, Test, and Deploy Java Microservices on Oracle Cloud

  • Formaat: EPUB+DRM
  • Ilmumisaeg: 12-Oct-2022
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781484282908
  • Formaat - EPUB+DRM
  • Hind: 61,74 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: EPUB+DRM
  • Ilmumisaeg: 12-Oct-2022
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781484282908

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

The microservice architecture has been adopted by many developer teams around the world. To be successful, it's crucial that you understand how to program a microservice and get it running in the cloud. This book will walk you through the process of how to build, test, and deploy a Java-based Micronaut microservice to the Oracle Cloud with GitHub Actions. 

You'll learn how to create a Virtual Machine (with both the Oracle Cloud Infrastructure (OCI) CLI and the OCI Gradle Plugin), as well as create and deploy the microservice as a Docker container that can be stored in Oracle Container Infrastructure Registry (OCIR) and deployed to an Oracle Kubernetes Engine (OKE) cluster. The microservice will use Micronaut Data for persistence, Testcontainers for testing, and Liquibase to manage your Oracle DB production schema.

After reading or using this book, you'll be able to build, test and deploy your first microservices using the Micronaut framework, Oracle Cloud and more.

What You'll Learn
  • Build and deploy Java-based microservices using Micronaut and Oracle Cloud
  • Run tests and publishing reports
  • Deploy to Oracle Cloud using OCI CLI and the OCI Gradle plug-in
  • Add a persistence tier to the microservice
  • Distribute a microservice with persistence
Who This Book Is For

Programmers and software developers with experience in Java and microservices programming who are new to Micronaut.

About the Author xi
Acknowledgments xiii
Introduction xv
Chapter 1 Creating a Micronaut Application and Getting Started with GitHub Actions
1(12)
Creating the Service
2(2)
Running the App
4(1)
Adding Support for GitHub Actions
5(5)
Bling
10(1)
TL;DR
11(1)
Next
11(1)
Source Code
11(2)
Chapter 2 Building and Publishing a JAR
13(12)
Runners
13(1)
Intro to "Actions"
14(2)
Checkout
16(1)
Setup Java
16(1)
Progress Check
17(2)
Building the JAR
19(1)
Publishing the JAR
19(4)
TL;DR
23(1)
Next
24(1)
Source Code
24(1)
Chapter 3 Running Tests and Publishing Test Reports
25(14)
Preparing Our App for Spock
26(1)
Create a Spock Test
27(3)
Add a Controller and Test It
30(3)
Add an Action to Run Tests
33(1)
Add an Action to Publish Tests
33(2)
When Failure Happens
35(2)
TL;DR
37(1)
Next
37(1)
Source Code
38(1)
Chapter 4 Deploying a Microservice to Oracle Cloud with GitHub Actions and the OCI CLI
39(16)
Can You Keep a Secret?
40(3)
Using Secrets in Your Workflow
43(1)
Installing the CLI
43(1)
Creating the Instance
44(3)
Deploy the App
47(1)
Wait for SSH
48(1)
Stop App
48(1)
Push JAR
49(1)
Start App
50(3)
Run the Build
50(3)
TL;DR
53(1)
Next
54(1)
Source Code
54(1)
Chapter 5 Deploying a Microservice to Oracle Cloud with GitHub Actions and the OCI Gradle Plugin
55(10)
Configure Gradle
56(6)
TL;DR
62(1)
Next
62(1)
Source Code
63(2)
Chapter 6 Adding a Persistence Tier to the Microservice
65(16)
Managing Schema Modifications
65(1)
Spin UpaDB
66(5)
Liquibase-Micronaut Integration
67(4)
Add Micronaut Data
71(8)
Add Dependencies
71(2)
Start the Application
73(2)
Create a Model
75(1)
Create a Repository
76(2)
Modify the Controller
78(1)
Test Persistence
79(1)
TL;DR
80(1)
Next
80(1)
Source Code
80(1)
Chapter 7 Testing the Persistence Tier with Testcontainers
81(8)
Adding Dependencies
82(1)
Modifying Our Abstract Spec
82(3)
Running the Pipeline Tests with Testcontainers
85(3)
TL;DR
88(1)
Next
88(1)
Source Code
88(1)
Chapter 8 Deploying the Microservice with a Tested Persistence Tier in Place
89(16)
Autonomous Wallet
90(1)
Configure the Local Autonomous DB Datasource
91(4)
Configure the Production Datasource
95(8)
TL;DR
103(1)
Next
104(1)
Source Code
104(1)
Chapter 9 Deploying the Microservice as a Docker Container
105(10)
The Dockerfile
106(1)
Preparing to Build the Docker Image
107(1)
Building the Docker Image
107(2)
Running the Docker Build Locally
109(1)
Modifying the Build
110(3)
TL;DR
113(1)
Next
113(1)
Source Code
113(2)
Chapter 10 Deploying the Microservice Docker Container to Kubernetes
115(12)
Create a Service Account
116(2)
Step 1
116(1)
Step 2
116(1)
Step 3
117(1)
Step 4
117(1)
Step 5
117(1)
Step 6
117(1)
Create Kubernetes Deployment Configuration
118(4)
Create a Secret
119(1)
Create Deployment YAML
119(3)
Add a Deployment Step
122(1)
Kill an Existing Pod
122(1)
The Final Build
123(2)
TL;DR
125(1)
Next
125(1)
Source Code
126(1)
Index 127
Todd Sharp is a software/web developer advocate for Oracle focusing on Oracle Cloud. He works with Micronaut and other Java frameworks to build, test and deploy microservices, web services and other web applications.  He has worked with dynamic Java scripting languages, JVMs and various JavaScript frameworks for more than 14 years, originally with ColdFusion and more recently with Java/Groovy/Grails on the server side.