Examples

Discover a variety of practical examples that showcase the capabilities and usage of Stevedore

Explore a variety of practical examples that demonstrate the capabilities and usage of Stevedore. These examples provide a cumulative learning experience, building upon one another to deepen your knowledge of Stevedore.

Each example focuses on a specific scenario or use case, guiding you through the necessary steps to achieve the desired outcome. By working through these examples, you will gain hands-on experience and valuable insights into building and managing Docker images with Stevedore. They will empower you to leverage Stevedore’s powerful features and enhance your projects with confidence.

List of examples

ExampleDescription
01-basic-exampleThis example aims to introduce you to Stevedore and its basic concepts and commands. It follows the quickstart guide from the documentation, which serves as a starting point to get familiar with Stevedore.
02-wildcard-version-exampleThis example serves as an introduction to the wildcard version feature in Stevedore.
03-envvars-credentials-store-exampleThis example demonstrates how to use environment variables as the credentials store in Stevedore.
04-define-multiple-apps-exampleThis example showcases how to define and manage multiple applications in Stevedore, allowing you to build and push their Docker images.
05-build-on-cascade-exampleThis example demonstrates the concept of building images on a cascade in Stevedore. It showcases how to create a foundational image with a common configuration and then build multiple applications using that image as a base, streamlining the image building process and ensuring consistency across the applications.
06-git-build-context-exampleThis example illustrates how to utilize the Git build context feature in Stevedore. It demonstrates the ability to specify a Git repository as the build context, allowing you to directly build images from a specific branch, tag, or commit.
07-inject-dockerfile-exampleThis example showcases the capability of creating a unique build context from separate sources. One of those sources is used to inject a Dockerfile used to build the Docker image.
08-create-semver-tags-automatically-exampleThis example showcases how to use the SemVer specification to create automatically new image tags for a Docker image.
09-custom-variables-mapping-exampleThis example demonstrates the usage of custom variables mapping in Stevedore, allowing for flexible configuration and customization of build arguments provided to the Dockerfile.
10-use-ansible-playbook-driver-exampleThis example demonstrates the usage of the Ansible playbook driver in Stevedore, enabling you to build and publish Docker images using Ansible playbooks.
11-promote-images-exampleThis example highlights the image promotion feature in Stevedore, demonstrating how to promote Docker images from one Docker registry to another.
12-copy-images-from-dockerhub-exampleThis example illustrates how to copy Docker images from Docker Hub to your local Docker registry using Stevedore, allowing you to have a local copy of the desired images for offline or restricted environments.