UNPKG

buildahcker

Version:

Buildahcker is a node.js library to create and run commands in OCI (Open Container Initiative) container images (or docker images), based on Buildah and a hash-based cache. It also contains utilities to easily create a partitioned bootable disk image of a

22 lines (21 loc) 970 B
import type { Writable } from "stream"; import type { CommitOptions, ImageOrContainer } from "../container"; import type { ContainerCache } from "../containerCache"; export interface PrepareApkPackagesOptions { baseImage?: string; apkPackages: string[]; commitOptions?: CommitOptions; logger?: Writable; apkCache?: string; containerCache?: ContainerCache; } export interface PrepareApkPackagesAndRunOptions extends PrepareApkPackagesOptions { existingSource?: ImageOrContainer; command: string[]; buildahRunOptions: string[]; } export declare const prepareApkPackages: ({ baseImage, apkPackages, commitOptions, logger, apkCache, containerCache, }: PrepareApkPackagesOptions) => Promise<string>; export declare const prepareApkPackagesAndRun: ({ existingSource, command, buildahRunOptions, ...installOptions }: PrepareApkPackagesAndRunOptions) => Promise<{ stdout: Buffer<ArrayBufferLike>; stderr: Buffer<ArrayBufferLike>; }>;