Skip to content

devops-recipes/cd_docker_platform_ship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Sample project: cd_docker_platform_ship

This sample project demonstrates how to automate deployments of a Docker image to a Container orchestration platform like Kubernetes, GKE, Amazon ECS, etc using Shippable's managed jobs. If you have simple deployments that do not have a bunch of custom requirements, managed jobs are the best way to start deploying Docker containers. If you need custom handling, such as running a script as part of the deployment, or automatic rollbacks, you should do custom deployments using the runSh job, where you can use the cloud-native CLIs/SDKs or other popular tools to script the deployments yourself.

You can find a tutorial that explains how to run this sample at http://docs.shippable.com/deploy/continuous-delivery-single-container-docker-application/

Quickstart guide to running this tutorial

You can do a quick test run of this project by following the instructions below. Please note that these instructions will deploy our sample application to a container orchestration service of your choice.

  • Clone this repository to your account

  • The sample assumes you have a cluster where the application can be deployed. Create an integration for the cloud where your cluster is located:

  • In shippable.yml, replace values for sourceName and region in the cluster resource. Also replace the value for integration with the name of the integration you created in the earlier step.

- name: cd_docker_platform_cluster
  type: cluster
  integration: "drship_gcp"
  versionTemplate:
    sourceName : "cd_docker_platform_ship_cluster"  # replace with your cluster name
    region: "us-central-1f"         # replace with your region
    namespace: "shippable"          # replace with your namespace

  • Commit your changes to shippable.yml.

  • Sign in to Shippable

  • Follow instructions to Add your assembly line to Shippable

  • In your Single Pane of Glass view, right click on the manifest job cd_docker_platform_manifest and click on the Play icon to run the job. This will create your service definition and automatically trigger the deploy job, which deploys your application to your cluster.

Related tutorials

Shippable overview

If you're new to Shippable and need an overview of how everything works, please start here:

About

Continuous Deployment to a Docker orchestration platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published