SQL Proj - Added an option to deploy to docker to select the base image (#17067)

* Added an option to deploy to docker to select the base image
This commit is contained in:
Leila Lali
2021-09-14 13:49:57 -07:00
committed by GitHub
parent 95e82d53e6
commit 423cf8d3d5
5 changed files with 42 additions and 11 deletions

View File

@@ -104,12 +104,27 @@ export async function launchPublishToDockerContainerQuickpick(project: Project):
return undefined;
}
let baseImage: string | undefined = '';
baseImage = await vscode.window.showInputBox({
title: constants.enterBaseImage,
ignoreFocusOut: true,
value: constants.defaultDockerBaseImage,
validateInput: input => utils.isEmptyString(input) ? constants.valueCannotBeEmpty : undefined
}
);
// Return when user hits escape
if (!baseImage) {
return undefined;
}
localDbSetting = {
serverName: 'localhost',
userName: 'sa',
dbName: project.projectFileName,
password: password,
port: +portNumber,
dockerBaseImage: baseImage
};
let deploySettings = await getPublishDatabaseSettings(project, false);