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

Latest commit

 

History

History
109 lines (72 loc) · 1.95 KB

DEVELOPERS.md

File metadata and controls

109 lines (72 loc) · 1.95 KB

Developer's Guide

Bundle Development

Build

# builds the invocation image and signs the provided bundle
BUNDLE=<bundle> make build

# builds invocation images and signs all bundles
make build

Docker Build

# builds the invocation image for the provided bundle
BUNDLE=<bundle> make docker-build

# builds invocation images for all bundles
make docker-build

Docker Push

# pushes the invocation image for the provided bundle
BUNDLE=<bundle> make docker-push

# pushes invocation images for all bundles
make docker-push

Sign Bundle(s)

This target currently requires and uses the duffle binary in one's path.

# signs the provided bundle
BUNDLE=<bundle> make sign

# signs all bundles
make sign

Note: the sign-local variant will output the signed bundle into each bundle's directory in the form of bundle.cnab.

Validate Bundle(s)

These targets can be used to validate that a bundle's bundle.json adheres to the official json schema spec.

Docker-based

make build-validator

# validates the provided bundle
BUNDLE=<bundle> make validate

# validates all bundles
make validate

Local

make build-validator-local

# validates the provided bundle
BUNDLE=<bundle> make validate-local

# validates all bundles
make validate-local

Docker Run

This command is only valid for a provided BUNDLE.

BUNDLE=<bundle> make docker-run

Test Bundle(s)

Docker-based

This will run inside the latest duffle docker image.

# runs functional tests against the provided bundle
BUNDLE=<bundle> make test-functional-docker

# runs functional tests against all bundles
make test-functional-docker

Local

This will run using the local duffle binary found in one's path.

# runs functional tests against the provided bundle
BUNDLE=<bundle> make test-functional

# runs functional tests against all bundles
make test-functional