Added UI for user to accept EULA when deploying sql proj to docker container (#17762)

This commit is contained in:
Leila Lali
2021-11-30 15:08:23 -08:00
committed by GitHub
parent ce7935e7d2
commit 7e17bfb6ec
8 changed files with 163 additions and 17 deletions

View File

@@ -4,6 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import { IDeploySettings } from '../IDeploySettings';
import type * as azdataType from 'azdata';
export enum AppSettingType {
None,
@@ -27,6 +28,15 @@ export interface ILocalDbSetting {
password: string,
dbName: string,
dockerBaseImage: string,
dockerBaseImageEula: string,
connectionRetryTimeout?: number,
profileName?: string
}
export interface DockerImageInfo {
name: string,
agreementInfo: AgreementInfo
}
export interface AgreementInfo {
link: azdataType.LinkArea;
}

View File

@@ -131,6 +131,11 @@ export class DeployService {
}
await this.verifyDocker();
this.logToOutput(constants.dockerImageMessage);
this.logToOutput(profile.localDbSetting.dockerBaseImage);
this.logToOutput(constants.dockerImageEulaMessage);
this.logToOutput(profile.localDbSetting.dockerBaseImageEula);
const imageSpec = this.getDockerImageSpec(project.projectFileName, profile.localDbSetting.dockerBaseImage);