CH-BUILD(1)
π CH-BUILD(1) β the Charliecloud one, bestie
okay so. you found ch-build, a manual page from Charliecloud, and I'm gonna walk you through it like we're texting at 2am. grab a snack. π
β¨ NAME β¨
ch-build β build an image and drop it into the builder's back-end storage. that's it, that's the whole job. π
πΈ SYNOPSIS πΈ
$ ch-build [-b BUILDER] [--builder-info] -t TAG [ARGS ...] CONTEXT
that's the whole shape of it. one line, so many possibilities. main character energy fr fr. π
π¦ DESCRIPTION π¦
WARNING: this script is deprecated in favor of using the desired builder directly; they've added some tips for Docker to the FAQ. It will be removed in the next release. so likeβ¦ enjoy it while it lasts bestie, it's giving farewell tour. π
Okay so what it actually does: it builds an image named TAG described by a Dockerfile, and places the result into the builder's back-end storage. simple as that. β¨
and here's the thing β using this script is not required for a working Charliecloud image. nope! you can also use any builder that can produce a Linux filesystem tree directly, whether or not it's in the list below. but ch-build is the friend that hides the vagaries of making the supported builders work smoothly with Charliecloud, and it adds some conveniences (e.g., pass HTTP proxy environment variables to the build environment if the builder doesn't do this by default). she's doing the emotional labor for you. π«Ά
Supported builders, unprivileged:
ch-image: our internal builder. the home team. π
Supported builders, privileged:
docker: Docker.
Experimental builders (i.e., the code is there but not tested much):
buildah: Buildah in "rootless" mode with no setuid helpers, usingch-run(viach-run-oci) forRUNinstructions. this mode is fully unprivileged. slay.buildah-runc: Buildah in "rootless" mode with setuid helpers, using the defaultruncforRUNinstructions.buildah-setuid: Buildah in "rootless" mode with setuid helpers, usingch-run(viach-run-oci) forRUNinstructions.
Specifying the builder, in descending order of priority:
-b,--builder BUILDERβ command line option. the loudest voice wins.$CH_BUILDERβ environment variable. whispering in the background.- Default β
dockerif Docker is installed; otherwise,ch-image.
Other arguments:
--builder-infoβ print the builder to be used and its version, then exit. like a little vibe check on your builder. π-f,--file DOCKERFILEβ Dockerfile to use (default:$CONTEXT/Dockerfile)-t TAGβ name (tag) of Docker image to build. the iconique one.--helpβ print help and exit.--versionβ print version and exit.
Additional arguments are accepted and passed unchanged to the underlying builder. no notes, no edits, straight through. π
π BUGS π
The tag suffix :latest is somewhat misleading, as by default neither ch-build nor bare builders will notice if the base FROM image has been updated. Use --pull to make sure you have the latest base image.
so:latestis out here lying to you a little bit. it's not toxic, it's justβ¦ not paying attention. use--pull, bestie. π
π EXAMPLES π
Create an image tagged foo and specified by the file Dockerfile located in the context directory. Use /bar as the Docker context directory. Use the default builder.
$ ch-build -t foo /bar
Equivalent to above:
$ ch-build -t foo --file=/bar/Dockerfile /bar
Instead, use /bar/Dockerfile.baz:
$ ch-build -t foo --file=/bar/Dockerfile.baz /bar
Equivalent to the first example, but use ch-image even if Docker is installed:
$ ch-build -b ch-image -t foo /bar
Equivalent to above:
$ export CH_BUILDER=ch-image
$ ch-build -t foo /bar
see how they're all the same girl in different outfits? obsessed. β¨π
π REPORTING BUGS π
If Charliecloud was obtained from your Linux distribution, use your distribution's bug reporting procedures.
Otherwise, report bugs to: https://github.com/hpc/charliecloud/issues
like, tell them. they want to know. constructive criticism is self care. π«Ά
π SEE ALSO π
charliecloud(7)- Full documentation at:
<https://hpc.github.io/charliecloud>
π COPYRIGHT π
2014β2021, Triad National Security, LLC
and that's the whole page, bestie! brought to you by Charliecloud 0.26, dated 2022-01-30 10:06 UTC β mwah, go build something cute. π β¨π¦
π¦ where this page comes from
- ubuntu jammy: charliecloud-builders 0.26-1 Β· Apache-2.0-TNS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms