Skip to main content
Home

Built and signed on GitHub Actions

Test container solution for running third party solutions through docker.

This package works with Deno
This package works with Deno
JSR Score
76%
Published
4 months ago (2.0.2)
class Container

Constructors

new
Container(
id: string,
warnings: string[],
)

Instantiate a docker container.

Methods

exec(
cmd: string | string[],
opts?: Partial<CreateExecOptions>,
): Promise<void>

Run a command inside the running container.

inspect(): Promise<Record<string, never>>

Return low-level information about a container.

logs(query?: { follow?: boolean; stdout?: boolean; stderr?: boolean; since?: number; until?: number; timestamps?: boolean; tail?: number | "all"; }): Promise<Response>

Get the logs of the container.

remove(query?: { v?: boolean; force?: boolean; link?: boolean; }): Promise<void>

Remove the container.

start(query?: SignalQuery): Promise<void>

Start the container.

stop(query?: SignalQuery): Promise<void>

Stop the container.

waitForLog(
value: string,
timeout?: number,
): Promise<void>

Waits for a specific log value to occur on the container within the given timeout limit.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@valkyr/testcontainers

Import symbol

import { Container } from "@valkyr/testcontainers";
or

Import directly with a jsr specifier

import { Container } from "jsr:@valkyr/testcontainers";