GithubHelp home page GithubHelp logo

cnab-duffle-demo-1's Introduction

CNAB Duffle Demo 1

This is demo for creating a CNAB bundle with Duffle.

Build the packages

Basics

  • create a new repo
  • clone the repo
  • init a duffle bundle
  • copy duffle bundle data to our repo folder

Build

duffle build .

Confirm

We can read our bundle information via the duffle show command.

duffle show cnab-duffle-demo-1:1.0.0 -r

Or we can list all of our bundles, to see if it was successfully added.

duffle bundle list

Which should result into something like below.

NAME              	VERSION	DIGEST                                  	SIGNED?
cnab-duffle-demo-1	1.0.0  	7951eaa84bff2679dc2f8b98ba3a6f7ec705d658	true
helloworld        	0.1.0  	947282206c8027106c8c33098203ae30034da415	true

Install

duffle install demo1 cnab-duffle-demo-1:0.1.0

It will say the following: Error: bundle requires credential for kubeconfig

Let's setup our credentials, see below how.

Assuming you've done so, we can now try to install again, this time referencing our credentials configuration with -c demo.

duffle install demo1 cnab-duffle-demo-1:0.1.0 -c demo1

Credentials

As this demo requires the ability to issue kubectl commands to a Kubernetes Cluster, we need a working kubeconfig.

To do so, we have to configure duffle to use a kubeconfig credential.

Define Kubeconfig credential

"credentials": {
    "kubeconfig": {
        "path": "/root/.kube/config"
    }
}

Generating credentials

The following will create a new credentials file for our bundle (cnab-duffle-demo-1) with the name demo1.

duffle creds generate demo1 cnab-duffle-demo-1

Then, select the file path option in the "dropdown".

cnab-duffle-demo-1's People

Contributors

joostvdg avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.