UI Build Pipeline

UI Build Pipeline

Spring Application Deployed with Kubernetes

Step by step building an application using Spring Boot and deployed via Docker on Kubernetes with Helm

full course
  1. Setup: IDE and New Project
  2. Create the Data Repository
  3. Building a Service Layer
  4. Create a REST Controller
  5. Logging, Tracing and Error Handling
  6. Documentation and Code Coverage
  7. Database as a Service
  8. Containerize the Service With Docker
  9. Docker Registry
  10. Automated Build Pipeline
  11. Helm for Deployment
  12. Setting up a Kubernetes Cluster
  13. Automating Deployment (for CICD)
  14. System Design
  15. Messaging and Event Driven Design
  16. Web UI with React
  17. Containerizing our UI
  18. UI Build Pipeline
  19. Put the UI in to Helm
  20. Creating an Ingress in Kubernetes
  21. Simplify Deployment
  22. 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 PipelineAdd yours →

Leave a Reply

Your email address will not be published.