Getting started with Skycap

Skycap is a Container Deployment Pipeline. You can use Skycap to automatically turn your source code into container (Docker) images, manage your Kubernetes configuration files and deploy your applications to any Kubernetes cluster.

What you’ll need

Before you start, please check you have the following:

If you don't have images or code ready, you can use this simple "hello world" project we've supplied on Github. (You can also use this project with our next tutorial on Formations.)

What is a Build Pipeline?

Build pipelines are composed of all the individual (containerized) services that make up your application. Services can include raw source code that needs to be built into Docker images or pre-built images. You can mix and match these as required.

Adding Services

The first step is to give your application a name. This will be used to label your application throughout the Cloud 66 dashboard.

Next, you need to add at least one service. To your application. If you’re using our demo application, you will need to add a single service called “hello-world” by pulling the code from this public repo.

To do this:

  1. Copy the Clone or download link from Github
  2. Paste it into the Git Repo URL field
  3. Type master into the branch field
  4. Click Go to fetch and analyze the code

Adding services to a Skycap build pipeline

You can add as many other services as required by clicking the green + Add Service button at the bottom of the page. You will need to supply a source for each service you add (more info on this below).

Once you have added all your services, click the green Next button.

Specifying the source of images

Specifying the source of your service

The Where is your service image? dropdown provides you with three options to specify the source of your services.

Snapshots and building images

After you have added your services you will be taken to your Application Overview page. To start the build process you should click the green Take Snapshot button at the bottom of the main panel.

A snapshot captures all the components of your application including application images, environment variables and configuration items, in preparation for deployment.

Because this is the first time you are creating a snapshot for this application, Skycap will fetch and build your code into images, as well as fetching any pre-built images.

All of these components are then stored in a private repository on your Cloud 66 account so that you can roll back easily at any time.

During the build process you can view the status of each individual build. You can also drill down into the logs if you need to troubleshoot any part of the process.

Adding services to a Skycap build pipeline

Deploying your application

Once you’ve built your images, you’re ready to deploy your application using Skycap’s Formations feature. To do this, you should follow our guide: Get started with Skycap Formations

What’s next?

Now that you have your first application defined, you can learn how to make that application live: