Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Spring Cloud Pipelines

DZone's Guide to

Spring Cloud Pipelines

Spring Cloud Pipelines let devops teams a pipeline to move data through various continuous deployment cycles and clouds.

· Cloud Zone
Free Resource

Deploy and scale data-rich applications in minutes and with ease. Mesosphere DC/OS includes everything you need to elastically run containerized apps and data services in production.

On behalf of the Spring Cloud team it is my pleasure to announce a new project called Spring Cloud Pipelines. Unlike most of Spring projects this one is not available at any repository since it’s not a library, but instead, it is available as a GitHub repo for you to download and use as template for creating a deployment pipeline.

Without any further ado let’s get into some details related to the project.

Problem We’re Trying to Solve

Spring, Spring Boot and Spring Cloud are tools that allow developers speed up the time of creating new business features. It’s common knowledge however that the feature is only valuable if it’s in production. That’s why companies spend a lot of time and resources on building their own deployment pipelines.

This project tries to solve the following problems:

  • Creation of a common deployment pipeline
  • Propagation of good testing & deployment practices
  • Speed up the time required to deploy a feature to production

A common way of running, configuring and deploying applications lowers support costs and time needed by new developers to blend in when they change projects.

Currently, we support the following CI/CD systems out of the box:

  • Concourse
  • Jenkins

High-Level Overview

In the demo, we’re using the following projects:

  • Artifactory to store JARs.
  • PCF Dev to deploy applications.
  • Concourse or Jenkins to host pipelines.
  • Spring Cloud Pipelines that contains the pipeline logic.
  • Spring Cloud Contract to aid testing of your applications.

Of course, you can use your own JAR-gathering service, like Cloud Foundry and Concourse/Jenkins. We’re providing them for you for the demo purposes.

flow concourse

Figure 1. Flow in Concourse (Click to Enlarge)

flow

Figure 2. Flow in Jenkins

How to Use It?

This repository can be treated as a template for your pipeline. We provide some opinionated implementation that you can alter to suit your needs. The best approach to use it to build your production projects would be to download the Spring Cloud Pipelines repository as ZIP, then init a Git project there and modify it as you wish.

Example for using the code from the master branch.

curl -LOk https://github.com/spring-cloud/spring-cloud-pipelines/archive/master.zip
unzip master.zip
cd spring-cloud-pipelines-master
git init
# do all the changes
git add .
git commit -m "Initial commit"
git remote add origin ${YOUR_REPOSITORY_URL}
git push origin master


Why aren’t you simply cloning the repo? This is meant to be a seed for building new, versioned pipelines for you. You don’t want to have all of our history dragged along with you, don’t you?

Discover new technologies simplifying running containers and data services in production with this free eBook by O'Reilly. Courtesy of Mesosphere.

Topics:
spring boot ,spring cloud ,cloud ,pipeline

Published at DZone with permission of Marcin Grzejszczak, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}