»CloudNative Buildpacks
pack (builder)
Create a Docker image using CloudNative Buildpacks.
This plugin must either be run via Docker or inside an ondemand runner.
Interface
- Input: component.Source
- Output: pack.Image
Examples
Mappers
Allow pack images to be used as normal docker images
- Input: pack.Image
- Output: docker.Image
Required Parameters
This plugin has no required parameters.
Optional Parameters
These parameters are used in the use
stanza for this plugin.
builder
The buildpack builder image to use.
- Type: string
- Optional
- Default: heroku/buildpacks:20
buildpacks
The exact buildpacks to use.
If set, the builder will run these buildpacks in the specified order. They can be listed using several URI formats.
- Type: list of string
- Optional
disable_entrypoint
If set, the entrypoint binary won't be injected into the image.
The entrypoint binary is what provides extended functionality such as logs and exec. If it is not injected at build time the expectation is that the image already contains it.
- Type: bool
- Optional
ignore
File patterns to match files which will not be included in the build.
Each pattern follows the semantics of .gitignore. This is a summarized version:
A blank line matches no files, so it can serve as a separator for readability.
A line starting with # serves as a comment. Put a backslash ("\") in front of the first hash for patterns that begin with a hash.
Trailing spaces are ignored unless they are quoted with backslash ("\").
An optional prefix "!" which negates the pattern; any matching file excluded by a previous pattern will become included again. It is not possible to re-include a file if a parent directory of that file is excluded. Git doesn’t list excluded directories for performance reasons, so any patterns on contained files have no effect, no matter where they are defined. Put a backslash ("\") in front of the first "!" for patterns that begin with a literal "!", for example, "!important!.txt".
If the pattern ends with a slash, it is removed for the purpose of the following description, but it would only find a match with a directory. In other words, foo/ will match a directory foo and paths underneath it, but will not match a regular file or a symbolic link foo (this is consistent with the way how pathspec works in general in Git).
If the pattern does not contain a slash /, Git treats it as a shell glob pattern and checks for a match against the pathname relative to the location of the .gitignore file (relative to the top level of the work tree if not from a .gitignore file).
Otherwise, Git treats the pattern as a shell glob suitable for consumption by fnmatch(3) with the FNM_PATHNAME flag: wildcards in the pattern will not match a / in the pathname. For example, "Documentation/*.html" matches "Documentation/git.html" but not "Documentation/ppc/ppc.html" or "tools/perf/Documentation/perf.html".
A leading slash matches the beginning of the pathname. For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
Two consecutive asterisks ("**") in patterns matched against full pathname may have special meaning:
- Type: list of string
- Optional
process_type
The process type to use from your Procfile. if not set, defaults to web
.
The process type is used to control over all container modes, such as configuring it to start a web app vs a background worker.
- Type: string
- Optional
static_environment
Environment variables to expose to the buildpack.
These environment variables should not be run of the mill configuration variables, use waypoint config for that. These variables are used to control over all container modes, such as configuring it to start a web app vs a background worker.
- Type: map of string to string
- Optional
Output Attributes
Output attributes can be used in your waypoint.hcl
as variables via artifact
or deploy
.
build_labels
- Type: map of string to string
image
- Type: string
remote
- Type: bool
tag
- Type: string