Skip to content

Commit 6db412a

Browse files
committed
Create our own ComposeExecutableOptions
1 parent fa50733 commit 6db412a

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

packages/testcontainers/src/container-runtime/clients/compose/types.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { IDockerComposeExecutableOptions } from "docker-compose";
21
import { Logger } from "../../../common";
32

43
export type ComposeOptions = {
@@ -9,9 +8,21 @@ export type ComposeOptions = {
98
composeOptions?: string[];
109
environment?: NodeJS.ProcessEnv;
1110
logger?: Logger;
12-
executable?: IDockerComposeExecutableOptions;
11+
executable?: ComposeExecutableOptions;
1312
};
1413

14+
export type ComposeExecutableOptions =
15+
| {
16+
executablePath: string;
17+
options?: string[] | (string | string[])[];
18+
standalone?: never;
19+
}
20+
| {
21+
executablePath?: string;
22+
options?: never;
23+
standalone: true;
24+
};
25+
1526
export type ComposeDownOptions = {
1627
timeout: number;
1728
removeVolumes: boolean;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export { getAuthConfig } from "./auth/get-auth-config";
22
export { ContainerRuntimeClient, getContainerRuntimeClient } from "./clients/client";
33
export { parseComposeContainerName } from "./clients/compose/parse-compose-container-name";
4-
export { ComposeDownOptions, ComposeOptions } from "./clients/compose/types";
4+
export { ComposeDownOptions, ComposeExecutableOptions, ComposeOptions } from "./clients/compose/types";
55
export { HostIp } from "./clients/types";
66
export { ImageName } from "./image-name";

0 commit comments

Comments
 (0)