Skip to main content

Module assets

Module assets 

Source
Expand description

The files a stack is built from, carried inside the binary.

docker-compose.yml, the Dockerfiles, the container entrypoints and the env template are part of the tool, not of any workspace. They are embedded so the binary is self-contained, and unpacked on first use because docker needs a real directory for its build contexts.

Functions§

package_dir
The directory holding docker-compose.yml, unpacking it if needed.
read
One embedded file’s contents, for reading without unpacking.