A collection of pre-made scenarios entirely customisable with additional values, through a simple API.
Caution
Recipes are highly experimental thus are subject to major refactoring and breaking changes.
The recipes avoid reinventing the wheel for common stuff, like deploying a container in Kubernetes, with no need for re-compiling: we distribute OCI scenarios as release artifacts ! 🎉
The following example focus on how to download the debug
recipe then load it into an OCI registry.
All commands should run in the same terminal.
Requirements:
Tip
We don't explain how to start an OCI registry, perhaps if necessary you can use the Docker registry.
-
Download a recipe (here we use the
debug
recipe, change to your needs):export LATEST=$(curl -s "https://api.github.com/repos/ctfer-io/recipes/tags" | jq -r '.[0].name') wget "https://github.com/ctfer-io/recipes/releases/download/${LATEST}/recipes_debug_${LATEST}.oci.tar.gz"
-
Untar:
export DIR="debug-oci-layout" mkdir -p "${DIR}" tar -xzf "recipes_debug_${LATEST}.oci.tar.gz" -C "${DIR}/"
-
Copy to registry:
export REGISTRY="localhost:5000" oras cp --from-oci-layout "./${DIR}:${LATEST}" "${REGISTRY}/debug:${LATEST}"
That's it 😉