DEPRECATED -- This module has been deprecated; please use balena-compose instead.
Resolve resin bundles into a format recognised by the docker daemon.
resin-bundle-resolve
is written in typescript.
A resin bundle is a tar archive which contains a type of Dockerfile and metadata used to create a Dockerfile proper, which docker can understand.
Currently default resolvers included are;
- Dockerfile.template
- Resolve template variables with metadata, currently supported:
%%RESIN_MACHINE_NAME%%
%%RESIN_ARCH%%
%%BALENA_MACHINE_NAME%%
%%BALENA_ARCH%%
- Resolve template variables with metadata, currently supported:
- Architecture Specific Dockerfiles
- Choose the correct Dockerfile for a given build architecture or device type
- Standard Dockerfile projects
resin-bundle-resolver
supports the adding of generic resolvers, by
implementing the resolver.d.ts
interface in ./src
. Examples of this
can be found in the src/resolvers/
directory.
Your resolvers can then be passed to the resolveBundle
function.
resin-bundle-resolver
takes a tar stream and outputs a tar stream,
which can be passed to the docker daemon or further processed.