buildctx

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package buildctx packages a docker build context as a tar.gz stream for shipping to a build host. Exclusions follow .dockerignore semantics via docker's own pattern matcher, so a context built on the host sees the same files a local `docker build` would send.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteTar

func WriteTar(w io.Writer, dir, dockerfile string) error

WriteTar streams dir as a gzipped tarball to w, honoring .dockerignore in dir. The Dockerfile and .dockerignore themselves are always included, matching docker's context upload rules.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL