Skip to content

agiledigital/grow-your-own-infra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grow Your Own Infrastructure Logo

Grow Your Own Infrastructure

Just Add Toolform!

Build Status

Summary

Toolform is a "DevOps" utility for defining repeatable deployment environments so that applications can be developed independently of their deployment environment.

We use Toolform here at Agile Digital to do the heavy lifting when spinning up staging and production environments for projects, but there are still a few manual steps that mean that it isn't the first tool we reach for when we want to quickly to spin up a local development environment in an isolated environment for testing.

"Grow Your Own Infra" is a Fedex Day project that aims to address this issue by automating the entire process of spinning up a development enviroment from scratch entirely from a Toolform Project File.

Apart from preparation work (like this repo and README) this project will be worked on over one day at Agile Digital (2018/03/16).

Warning! This project has many gratuitous analogies.

Ingredients

The "Soil"

To grow some good infrastructure you need to make sure that you have a solid base for it to grow out of. For this project Minishift will be used as it has all the tools provided by OpenShift such as a docker registry and builds to support the automation process.

The "Seed"

The test project that will be used to grow the infrastucture will be a simple test app based on the Play Framework/Scala, backed by Postgres and fronted by Nginx. This is a stack commonly used at Agile Digital and so the seed will be not have to be developed especially for this project.

The "Water"

Toolform will take the Toolform Project File in the seed and create Jenkins pipelines and OpenShift/Kubernetes deployment configuration templates.

The "Sun"

The final ingredient for the infrastructure to grow healthy and strong is this project itself. The "Grow Your Own Infra" tool will make sure that the Minishift environment is ready, deploy Jenkins, create and trigger the relevent build jobs and verify that the deployment succeded. Once the infrastucture has been created, it should also be able to tear it down again.

Tasks

  • Create command line harness using Scala and Decline (Copy Toolform project)
  • Interface with Minishift to control deployment (kubernetes)
  • Deploy Jenkins to Minishift (use OpenShift provided template)
  • Add build jobs to Jenkins to build images and deploy jobs to create deployments in OpenShift to run the images (using Toolform Jenkins pipeline generation)
  • Trigger the Jenkins jobs automatically (rest API?)
  • Verify the the deployment succeeded (health check API?)
  • Tear it all down

Releases

No releases published

Packages

No packages published