mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-05 09:35:39 -05:00
* unified admin user account (#7485) * azdata changes * spaces * error message * comments * support AD authentication for bdc deployment (#7518) * enable ad authentication * remove export for internal interface * add comments * more changes after testing * update notebooks * escape slash * more comments * Update deploy-bdc-aks.ipynb * Update deploy-bdc-existing-aks.ipynb * Update deploy-bdc-existing-kubeadm.ipynb * AD changes and review feedback (#7618) * enable ad authentication * remove export for internal interface * add comments * more changes after testing * update notebooks * escape slash * more comments * Update deploy-bdc-aks.ipynb * Update deploy-bdc-existing-aks.ipynb * Update deploy-bdc-existing-kubeadm.ipynb * address comments from scenario review (#7546) * support AD authentication for bdc deployment (#7518) * enable ad authentication * remove export for internal interface * add comments * more changes after testing * update notebooks * escape slash * more comments * Update deploy-bdc-aks.ipynb * Update deploy-bdc-existing-aks.ipynb * Update deploy-bdc-existing-kubeadm.ipynb * scenario review feedbacks * more fixes * adjust the display order of resource types * different way to implement left side buttons * revert unwanted changes * rename variable * more fixes for the scenario review feedback (#7589) * fix more issues * add help links * model view readonly text with links * fix size string * address comments * update notebooks * text update * address the feedback of 2nd round of deploy BDC wizard review (#7646) * 2nd review meeting comments * fix the unit test failure * recent changes in azdata * notebook background execution with azdata (#7741) * notebook background execution with azdata * prompt to open notebook in case of failure * fix path quote issue * better temp file handling * expose docker settings (#7751) * add docker settings * new icon for container image
50 lines
1.5 KiB
TypeScript
50 lines
1.5 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { ToolType } from '../../interfaces';
|
|
import * as nls from 'vscode-nls';
|
|
import { SemVer } from 'semver';
|
|
import { IPlatformService } from '../platformService';
|
|
import { ToolBase } from './toolBase';
|
|
|
|
const localize = nls.loadMessageBundle();
|
|
|
|
export class DockerTool extends ToolBase {
|
|
constructor(platformService: IPlatformService) {
|
|
super(platformService);
|
|
}
|
|
|
|
get name(): string {
|
|
return 'docker';
|
|
}
|
|
|
|
get description(): string {
|
|
return localize('resourceDeployment.DockerDescription', 'Provides the ability to package and run an application in isolated containers');
|
|
}
|
|
|
|
get type(): ToolType {
|
|
return ToolType.Docker;
|
|
}
|
|
|
|
get displayName(): string {
|
|
return localize('resourceDeployment.DockerDisplayName', 'docker');
|
|
}
|
|
|
|
get homePage(): string {
|
|
return 'https://docs.docker.com/install';
|
|
}
|
|
|
|
protected getVersionFromOutput(output: string): SemVer | undefined {
|
|
let version: SemVer | undefined = undefined;
|
|
if (output) {
|
|
version = new SemVer(JSON.parse(output).Client.Version, true);
|
|
}
|
|
return version;
|
|
}
|
|
protected get versionCommand(): string {
|
|
return 'docker version --format "{{json .}}"';
|
|
}
|
|
}
|