Function brane_cli::build_common::build_docker_image
source · pub fn build_docker_image<P: AsRef<Path>>(
arch: Arch,
package_dir: P,
tag: String,
) -> Result<(), BuildError>
Expand description
Builds the docker image in the given package directory.
§Generic types
P
: The Path-like type of the container directory path.
§Arguments
arch
: The architecture for which to build this image.package_dir
: The build directory for this image. We expect the actual image files to be under ./container.tag
: Tag to give to the image so we can find it later (probably just<package name>:<package version>
)
§Errors
This function fails if Buildx could not be test-ran, it could not run the Docker build command or the Docker build command did not return a successfull exit code.