UNPKG

testcontainers

Version:

Testcontainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container

21 lines (20 loc) 887 B
import Dockerode, { ImageBuildOptions, ImageInspectInfo } from "dockerode"; import { ImageName } from "../../image-name"; import { ImageClient } from "./image-client"; export declare class DockerImageClient implements ImageClient { protected readonly dockerode: Dockerode; protected readonly indexServerAddress: string; private readonly existingImages; private readonly imageExistsLock; constructor(dockerode: Dockerode, indexServerAddress: string); build(context: string, opts: ImageBuildOptions): Promise<void>; private createTarPackOptions; private listContextEntries; private normalizePathForDockerIgnore; inspect(imageName: ImageName): Promise<ImageInspectInfo>; exists(imageName: ImageName): Promise<boolean>; pull(imageName: ImageName, opts?: { force: boolean; platform: string | undefined; }): Promise<void>; }