Spring Application Deployed with Kubernetes
Step by step building an application using Spring Boot and deployed via Docker on Kubernetes with Helm
full course- Setup: IDE and New Project
- Create the Data Repository
- Building a Service Layer
- Create a REST Controller
- Logging, Tracing and Error Handling
- Documentation and Code Coverage
- Database as a Service
- Containerize the Service With Docker
- Docker Registry
- Automated Build Pipeline
- Helm for Deployment
- Setting up a Kubernetes Cluster
- Automating Deployment (for CICD)
- System Design
- Messaging and Event Driven Design
- Web UI with React
- Containerizing our UI
- UI Build Pipeline
- Put the UI in to Helm
- Creating an Ingress in Kubernetes
- Simplify Deployment
- Conclusion and Review
Simple Spring Boot Service to Kubernetes Application: Step 18
Lets quickly update our build pipeline to push an image for our front end application into our repo. This opens the path to using helm to package and deploy our chart.
Create a New Pipeline
Log into codefresh and go into pipelines. Choose + NEW PIPELINE
. The name will be medium-customer-manager
with the project as medium
. Add the medium-customer-manager
git repository. Our workflow is going to be very simple, since docker is taking care of the compiling and packaging for us:
version: "1.0"
stages:
- "clone"
- "build"
- "push"
steps:
Clone:
title: "Cloning repository"
type: "git-clone"
repo: "https://github.com/brianrook/medium-customer-manager"
revision: "master"
stage: "clone"
BuildImage:
title: Building Docker Image
type: build
stage: build
image_name: medium/medium-customer-manager
working_directory: '/codefresh/volume/medium-customer-manager'
tag: '${{CF_SHORT_REVISION}}'
dockerfile: Dockerfile
PushToCodeFreshRegistry:
type: push
stage: "push"
title: Push Image to Registry
candidate: ${{BuildImage}}
tag: '${{CF_SHORT_REVISION}}'
image_name: medium-customer-manager
registry: cfcr
fail_fast: false
Make sure that you setup your trigger to only trigger a build off of a master commit.
Lets save and run.
Go to Images and confirm that our chart is available.
Success!
0 comments on “UI Build Pipeline”Add yours →