Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/lib/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,16 @@
return { ...(await this.state.getState()) };
}

/**
* Gets the container's registry reference url (ex/ `registry.example.com/image:latest`)
* @returns Promise<string>
*/
async image(): Promise<string> {
const inspect = await this.container.inspect();

Check failure on line 607 in src/lib/container.ts

View workflow job for this annotation

GitHub Actions / Lint, format, typecheck, unit tests

Property 'inspect' does not exist on type 'Container'.

Check failure on line 607 in src/lib/container.ts

View workflow job for this annotation

GitHub Actions / build

Property 'inspect' does not exist on type 'Container'.

Check failure on line 607 in src/lib/container.ts

View workflow job for this annotation

GitHub Actions / Examples integration tests

Property 'inspect' does not exist on type 'Container'.

return inspect.image;
}

// ====================================
// OUTBOUND INTERCEPTION CONFIG
// ====================================
Expand Down Expand Up @@ -782,7 +792,7 @@
* @returns A promise that resolves when the container start command has been issued
* @throws Error if no container context is available or if all start attempts fail
*/
public async start(startOptions?: ContainerStartConfigOptions, waitOptions?: WaitOptions) {

Check warning on line 795 in src/lib/container.ts

View workflow job for this annotation

GitHub Actions / Lint, format, typecheck, unit tests

Missing return type on function
const portToCheck =
waitOptions?.portToCheck ??
this.defaultPort ??
Expand Down
Loading