Skip to content

mkirank/deploy-dockercloud-basic

Repository files navigation

Deploying a NodeJS docker image to Docker Cloud with your Shippable pipeline.

AyeAye

This repository demonstrates the following :

  • Setup CI for a NodeJS application that builds a docker image and deploys it to DockerHub.
  • Setup a CD pipeline to deploy the docker image to Docker Cloud using a manifest job and deploy job.

Prerequisites to run this sample

  • Source control account (e.g. GitHub, Bitbucket, Gitlab)
  • Shippable account (sign up for free at www.shippable.com)
  • Docker cloud account.

Setup

  • Fork this repo into your local repository in your source control account.
  • Login into Shippable with your source control account(wwww.shippable.com).
  • Create a Docker Hub integration on shippable to your docker hub.
  • All your CI configuration is in shippable.yml file, while you will modify to reflect your integration.
  • Update the integrationName in the integration.hub section with the integration name created above.
  • Change the DOCKER_REPO and DOCKER_ACC to point to your repo and docker account.
  • Next, follow these CI Setup Instructions to enable your forked project for CI.
  • Build your CI project by clicking on the build button. Once the build completes, the NodeJS docker image will be pushed to your DockerHub account.
  • Create the Docker cloud integration using instructions provided here.

Add the pipeline in Shippable

  • Sign in with your shippable account, select your subscription from the dropdown menu in upper left (three horizontal lines).
  • Select the Pipelines tab.
  • Select the "+" icon in the upper right.
  • Select the source control repo where your fork is. This will render all the jobs in the Single pane of glass (SPOG).
  • Run the pipeline by Right-clicking on the manifest job and clicking run.

Docker Service

Docker Service

Docker Stack

Docker Stack

CI Console Output

CI Console Output

##Build link CI build on Shippable

##Build status badge Run Status

Pipeline View

Pipeline

Deploy job View

Deploy

About

A Shippable pipeline that continuously builds and deploys a NodeJS application to Docker Cloud.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published