Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Latest commit

 

History

History
36 lines (28 loc) · 995 Bytes

developer-guide.md

File metadata and controls

36 lines (28 loc) · 995 Bytes

Developer's Guide

Prerequisites

You will need

  • go 1.14 or later
  • make
  • docker

Getting the code

Clone this repository

$ go get -d github.com/projectriff/cnab-k8s-installer-base/...
$ cd $(go env GOPATH)/src/github.com/projectriff/cnab-k8s-installer-base

Building locally with duffle

  1. build the run tool
    $ make build
  2. build the docker image
    $ docker build -t projectriff/cnab-k8s-installer-base:edge cnab
  3. Building the cnab bundle with duffle now should use this docker image. example: building cnab-riff now with duffle build .

Building locally without duffle

  1. Build the binary for your platform (change the Makefile to remove GOOS=linux etc.
  2. Set an env var MANIFEST_FILE to point to the manifest file you want
  3. Set an env var CNAB_ACTION to install or uninstall
  4. You can also set the LOG_LEVEL to debug for a detailed output
  5. run ./cnab/app/run