Push it Real Good: Continuous Delivery for the people at the push of a button and repo

The Problem

Several months back, our emerging Developer Programs engineering team assembled during the last breaths of Brno’s Czech winter and dedicated a full day towards a deceptively complex task:

Be a user.  Assemble in groups and, using a technology stack of your choosing, conceive of and create an application to be presented to the full team in 6 hours.

Keep in mind that I hold my colleagues in extremely high regard; they’re capable, creative, and experienced.  Surely churning out a greenfield demo application would be a laughable exercise done by lunch affording us the rest of the afternoon to take in local culture (read: Czech beer).

So we started to break down the tasks and assign people to ’em:

  • Bootstrap the application codebase
  • Provision a CI environment to build and test
  • Stand up a deployment environment
  • Hook everything together so we’re all looking at the same thing through the dev cycle

We wanted the same conceptual infrastructure we use in delivering Red Hat products and our open source projects – authoritative systems and Continuous Delivery.

And therein lies the problem.  Of the 6 hours spent on this exercise, I noted that every team spent over four and a half hours getting themselves set up and hacked furiously on their real job – the application – in the final sprints.

But that’s not the real problem.

The real problem is that users, all across the globe, have the problem.

And in this moment, it crystallized that it was now our mission to fix this.

Our industry has given developers wonderful tooling, frameworks, and runtimes. With containers, we even have standardized deployment.  And by the way, we require that you load your own containers onto the boat.

We’re missing a unified, cohesive story which brings applications out of the development environment and into service.

Everything you need to grow your career.

With your free Red Hat Developer program membership, unlock our library of cheat sheets and ebooks on next-generation application development.

SIGN UP

The Mission

We need to empower engineering teams with an intuitive experience to quickly and confidently promote their code from development to production.

And the application is more than just your code; it’s every piece running together:

  • The Codebase
  • The Build Config
  • The Build Environment
  • The Runtime and its resources and configuration

So we rallied around the mission to bring CI/CD to application developers rather than leaving them to set it up themselves.  We set the following design principles:

  • Fail-Fast
    • When things are not working correctly, give feedback as quickly as possible
  • Reproducibility
    • Ensure applications can be built and delivered consistently over time
  • Encourage exploration
    • Dovetail with existing quickstarts to make learning faster and less catastrophic
  • Cloud-enabled
    • Reduce dependency on local development environments and offer production-like environments before the upstream merge
  • Teams are Key
    • Focus on collaboration

Today at DevNation and Red Hat Summit in San Francisco, we unveil as a preview our first step in that direction.  It begins with quickstarts and demos, but it’s a building block to enable much more.

We’re using the best the industry has to offer in bridging an end-to-end solution, including technology built atop:

And the experience, to start, is this.  We’ll:

  • Fork an Example or Demo project into your namespace on GitHub
  • Create an OpenShift project with pipeline to:
    • Build
    • Unit Test
    • Containerize
    • Deploy to Dev
    • Integration Test in Dev (depending upon your project setup)
    • Hook into source control to make the process repeatable

Give it a spin!  I haven’t been as excited over a potential to improve application development productivity since we birthed Arquillian.  And give a shout at @ALRubinger if you’d like to get involved in development, docs or have any other feedback; we’re gonna be building this out — the open source way.

S,

ALR

PS – For anyone interested learning how the sausage is made, this exercise took thought leadership and execution from our Fabric8, OpenShift, User Experience design, Developer Programs, and Consulting engineering teams and business units in concert with the enabling upstream projects from the open source community.  My thanks to them all for our having something great to share today.

Try It Yourself

Until we can make this publicly-available on the new OpenShift Online, we’ve got some instructions for you to try the experience at home.

  • Go into the Catapult Project

    • Click “Add to Project”
  • Select “Catapult” from the list of Instant Apps in the Catalog
  • Fill in values from above, leaving all other defaults
    • GitHub OAuth Developer Application Client ID
    • GitHub OAuth Developer Application Client Secret
  • Hit “Create” at the bottom of the page
  • Continue to Overview Page for Catapult
  • Wait for deployment to finish and donut to turn deep blue (light blue indicates we’re not quite there yet).
  • Navigate to the running Catapult application
  • Select the “JBoss EAP7 HelloWorld Example” to launch from the dropdown and hit “Submit”
  • We’ll now we forking the example application into your namespace in GitHub, so follow the prompts to give us Catapult access
    • Login
    • Review the requested permissions and authorize access
  • Observe redirect to the project overview page for the newly-created project
  • What happens is:
    • We get 2 services
      • jenkins
      • Jenkins-jnlp
    • Wait for Jenkins to fully start (donut will turn deep blue)
      • Not there yet
      • Ready!
    • Enable metrics
      • Browse  > Pods > Choose Dev Pod > Metrics > Click the Hawkular link and accept the SSL security exception
  • Start a Build
    • Kick a build
      • Browse > Builds > helloworld-pipeline
      • Start Build
  • You may view the build on Jenkins if you’d like

    • Login information
      • admin
      • password
  • The OpenShift Console will visualize the pipeline as it executes
  • Return to the overview page
  • When the build completes, we’ll have a deployment and a running application
  • Let’s visit it
  • Lame; let’s change this.
  • Register UltraHook (only needed for local OpenShift, not Online)
  • Configure your GitHub Webhook
  • Edit the source of your app and run it through the pipeline again
  • When done, bring down the VM
    • $ vagrant halt
  • When you’re ready to start up again:
    • $ vagrant up

Join the Red Hat Developer Program (it’s free) and get access to related cheat sheets, books, and product downloads.

To learn more, visit our Linux containers or microservices Topic pages.

To learn more, visit our Join the Red Hat Developer Program (it’s free) and get access to related cheat sheets (e.g. containers), books (e.g. microservices), and product downloads that can help you with your microservices and/or container application development.

Who’s your Brent?

To learn more, visit our DevOps Topic page.

Join the Red Hat Developer Program (it’s free) and get access to related cheat sheets, books, and product downloads that can help you with your DevOps efforts.

For more information about Red Hat OpenShift and other related topics, visit: OpenShift, OpenShift Online.

Share