mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 09:59:47 -05:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user