This topic gives you recipes for authoring useful minimal Supply Chains to get started with.
This Supply Chain builds and deploys an application from source. It performs the following actions:
Complete the following steps:
Ensure that you have first initialized a working directory by running tanzu supplychain init.
Generate the Supply Chain by running:
tanzu supplychain generate \
--kind WebApp \
--description "Build and deploy an application from Git" \
--component source-git-provider-1.0.0 \
--component buildpack-build-1.0.0 \
--component conventions-1.0.0 \
--component app-config-web-1.0.0 \
--component carvel-package-1.0.0 \
--component deployer-1.0.0
NoteTo deploy other workload types, replace the
app-config-web-1.0.0
component with another option such asapp-config-server-1.0.0
, orapp-config-worker-1.0.0
.
This Supply Chain builds a Carvel package from the application source and stores it in a Git repository for deployment to a runtime environment.
It performs the following actions:
Complete the following steps:
Generate the Supply Chain by running:
tanzu supplychain generate \
--kind CarvelPackage \
--description "Build an application from source and store the Carvel package in Git" \
--component source-git-provider-1.0.0 \
--component buildpack-build-1.0.0 \
--component conventions-1.0.0 \
--component app-config-web-1.0.0 \
--component carvel-package-1.0.0 \
--component git-writer-pr-1.0.0
NoteTo write directly to a Git repository without creating a pull request, replace the
git-writer-pr-1.0.0
component withgit-writer-1.0.0
.
This Supply Chain deploys a Carvel package from a Git repository.
It performs the following actions:
Complete the following steps:
Generate the Supply Chain by running:
tanzu supplychain generate \
--kind PackageDeploy \
--description "Deploy a Carvel package from Git" \
--component source-git-provider-1.0.0 \
--component source-package-translator-1.0.0 \
--component deployer-1.0.0
The recipes in this topic are analogous to out-of-the-box supply chains, and profile experiences in Supply Chain Choreographer. Use this mapping to help decide which recipe to start with. These recipes do not provide exact parity with out-of-the-box supply chains.