toolkit: docker property not needed

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2023-02-18 10:08:21 +01:00
parent abe37ab72b
commit 9b338b58a7
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7

View File

@ -20,7 +20,6 @@ import {Install} from './buildx/install';
import {Builder} from './buildx/builder'; import {Builder} from './buildx/builder';
import {BuildKit} from './buildkit/buildkit'; import {BuildKit} from './buildkit/buildkit';
import {GitHub} from './github'; import {GitHub} from './github';
import {Docker} from './docker';
export interface ToolkitOpts { export interface ToolkitOpts {
/** /**
@ -33,7 +32,6 @@ export interface ToolkitOpts {
export class Toolkit { export class Toolkit {
public context: Context; public context: Context;
public github: GitHub; public github: GitHub;
public docker: Docker;
public buildx: Buildx; public buildx: Buildx;
public buildxInstall: Install; public buildxInstall: Install;
public builder: Builder; public builder: Builder;
@ -42,9 +40,8 @@ export class Toolkit {
constructor(opts: ToolkitOpts = {}) { constructor(opts: ToolkitOpts = {}) {
this.context = new Context(); this.context = new Context();
this.github = new GitHub({token: opts.githubToken}); this.github = new GitHub({token: opts.githubToken});
this.docker = Docker.getInstance(); this.buildx = new Buildx({context: this.context});
this.buildx = new Buildx({context: this.context, standalone: !this.docker.available}); this.buildxInstall = new Install({context: this.context});
this.buildxInstall = new Install({context: this.context, standalone: this.buildx.standalone});
this.builder = new Builder({context: this.context, buildx: this.buildx}); this.builder = new Builder({context: this.context, buildx: this.buildx});
this.buildkit = new BuildKit({context: this.context, buildx: this.buildx}); this.buildkit = new BuildKit({context: this.context, buildx: this.buildx});
} }