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

17 lines (16 loc) 704 B
import Dockerode, { ImageBuildOptions } 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 createIsDockerIgnoredFunction; exists(imageName: ImageName): Promise<boolean>; pull(imageName: ImageName, opts?: { force: boolean; }): Promise<void>; }