Discover Packages
github.com/apenella/go-docker-builder
examples
directory
Version:
v0.9.0
Opens a new window with list of versions in this module.
Published: Aug 2, 2024
License: MIT
Opens a new window with license information.
README
README
¶
go-docker-builder Examples
Explore practical examples that demonstrate the capabilities and usage of go-docker-builder. These examples provide a hands-on learning experience, guiding you through specific scenarios to enhance your understanding of building and managing Docker images with go-docker-builder.
List of Examples
Example
Description
build-and-push
Demonstrates the basic build and push workflow using go-docker-builder. Follows a simple scenario to build and push a Docker image.
build-and-push-join-context
Illustrates how to join multiple build contexts when using go-docker-builder to build and push Docker images.
build-git-context
Shows how to use a Git repository as the build context in go-docker-builder.
build-git-context-auth
Extends the previous example by demonstrating authentication for accessing a private Git repository as the build context.
build-path-context
Guides you through building a Docker image using a specific path as the build context in go-docker-builder.
copy-remote
Illustrates how to copy files remotely from a source location to the build context in go-docker-builder.
push
Demonstrates the process of pushing a locally built Docker image to a Docker registry using go-docker-builder.
Running the Examples
To run each example, use the provided Makefile to prepare the environment and execute the example. The following commands are available:
To run the example: make example
To run the example as a functional test: make test
Expand ▾
Collapse ▴
Directories
¶
Click to show internal directories.
Click to hide internal directories.