2018-08-17 03:17:28 +03:00
|
|
|
/*---------------------------------------------------------------------------------------------
|
|
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
|
|
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
|
2016-12-08 22:05:00 +03:00
|
|
|
import * as path from "path";
|
|
|
|
import * as vscode from "vscode";
|
2018-08-18 02:10:10 +03:00
|
|
|
import { DialogResponses, IActionContext, UserCancelledError } from "vscode-azureextensionui";
|
merge cleanup (#617)
* Added Azure Credentials Manager Singleton (#18)
* Added Azure Credentials Manager Singleton
* Added getResourceManagementClient
* Sorted Existing Create Registry ready for code review
* Added acquiring telemetry data for create registry
* broke up createnewresourcegroup method and fixed client use
Added try catch loop and awaited for resource group list again to check for duplicates with ResourceManagementClient
* Jackson esteban/unified client nit Fix (#24)
* Added Azure Credentials Manager Singleton
* Small Style Fixes
* Further Style fixes, added getResourceManagementClient
* Lazy Initialization Patches
* Enabled location selection
* Location request fixes
-Changed order of questions asked to user for better UX (location of new res group & location of new registry)
-Placeholder of location is display name view
* Refactor while loop for new res group
* Added SKU selection
* Quick fix- initializing array syntax
* Added specific error messages and comments
* Julia/delete image (#29)
* first fully functional version of delete through input bar AND right click
* refactored code to make it prettier!
* comments
* comments, added subscription function
* fixed to style guide
* style fixes, refactoring
* delete image after reviews
put my functions from azureCredentialsManager into two new files: utils/azure/acrTools.ts, and commands/utils/quick-pick-azure.ts
Edited code based on Esteban's and Bin's reviews
* One last little change to delete image
* moved repository, azureimage, and getsubscriptions to the correct places within deleteImage
* changes from PR reviews on delete image
* fixed authentication issue, got rid of azureAccount property for repository and image
**on constructor for repository, azurecredentialsmanager was being recreated and thus couldn't find the azureAccount. For this reason, I got rid of the azureAccount property of the classes Repository and AzureImage. This bug may lead to future problems (Esteban and I couldn't see why it was happening)
* minor fixes deleteImage
* delete a parentheses
* copied previous push to acr into new pull-from-azure.ts file
* Estebanreyl/dev merge fixes (#43)
* Merge fixes to acquire latest telemetry items
* Updated to master AzureUtilityManager
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Rutusamai/list build tasks for each registry (#37)
* tslint updates, transfered from old branch
* updated icon
* Addressed PR comments- mostly styling/code efficiency
* Changed url to aka.ms link
* changed Error window to Info message for no build tasks in your registry
* Changed default sku and unified parsing resource group into a new method, getResourceGroup in acrTools.ts
* Changed build task icon
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* Julia/delete repository final (#49)
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* spacing
* final commit
* Cleaned code
* Added Telemetry
* Julia/delete registry final (#47)
Delete azure registry functionality added
Delete azure registry moved to branch off dev
Reorganized stye
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* added folder select
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* removed username and password from Azure Registry Node
* Clean up
* copied previous push to acr into new pull-from-azure.ts file
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* Clean up
* Working again after rebasing and resolving merge conflicts
* Updates and fixes
* Fixes from PR comments
-renamed loginCredentials functions
-added await to docker commands in image pull
-cleanup
* uncapitalize AzureRegistryNode
* Refactoring, prod.
* Flexible OSType
* Estebanreyl/ready for production (#55)
* began updating
* Reorganized create registry and delete azure image
* continued improvements
* Began updating login
* being credentials update
* further updates
* Finished updating, need to test functionality now
* Updated requests, things all work now
* Applied some nit fixes
* Updates to naming
* maintain UtilityManager standards
* Updated Prompts
* Updated imports and naming / standarized telemetry
* Added explorer refresh capabilities on delete/add
* Jackson/quick build dev (#46)
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* added folder select
* Updates and fixes
* Refactoring, prod.
* Flexible OSType
* added ID
* Move build to azure commands
* cleanup
* Relative dockerfile support
* Removed await, updating list in enumeration
* fixed chdir
* flexible ostype
* Rutusamai/Show Build Task properties (#70)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* removed run build task stuff
* cleanup
* addressed esteban's comments
* buildTask = context.task.name rather than label
* fixes from Bin's comments
* Merge branch 'dev' of https://github.com/AzureCR/vscode-docker into master4
* merge
* missed small changes
* Rutusamai/Run a Build Task (#71)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* run is working for right click
* run build task works through command pallette. added success notification
* removed show build task
* cleanup- matched quickpick buils task and tasknode withshow build task branch
* removed showTaskManager
* spacing
* outputChannel and null icon
* merge to update with dev
* Estebanreyl/build logs final (#72)
* "Merge branch 'estebanreyl/buildlogsWithAccesibility' of https://github.com/AzureCR/vscode-docker into estebanreyl/buildlogsWithAccesibility"
This reverts commit e645cbf5058c9bc838ee41a67cd6c5aee9945702, reversing
changes made to fc4a477220c7819c9249557ba0d7570f5d0c1e0c.
* Refactored and organized log view into readable components.
* moved storage
* Began incorporating icons
* Added icons
* Further standarization
* added logs
* Added download log capabilities
* Updated Copy
* Updated inner div size alignment
* Added resizing script
* header sort by is only clickable on text now
* fixed header table
* Fix minor display issues
* Identified filtering strategy
* Begin adding sorting
* Merge with dev
* Added proper filtering
* Nit loading improvements
* Added accesibility, key only behaviour
* accesibility retouches and enable right click from tasknode
* merges
* fix module name
* Adds streaming and command standarization (ext.ui) (#73)
* Adds streaming and command standarization (ext.ui)
* removed unecessary append lines
* small fixes
* Fix merge issues
* changes for ACR 3.0.0 (#80)
* This commit contains changes necessary for the
azure-arm-containerregistry 3.0.0
* Fixed PR feedback
* Run task fixed. Issue ID: 79
* missing changes added
* Fixing ACR run logs for Images
* Sajaya/top1 (#83)
* Query only 1 record for runs
* View Azure logs
* Refactoring build to run and buildTask to task
* Removed filter for top (#88)
* adding run yaml file
* Refactoring to run task file.
* fixing logs filter for images
* Last Update time Fixed
* Cleanup + refactoring delete image to untag image
* Adding delete ACR Image (delete digest)
* Changing text promt on right click to run ACR task file
* Update settings.json
* minor PR review fixes 1
* PR fixes 1
* Missed: change any to string
* merge clean up
* Schedule run code reduction + minor improvements
* ACR request Improvements
* Minor grammar fixes
2018-11-18 02:09:45 +03:00
|
|
|
import { DOCKERFILE_GLOB_PATTERN, YAML_GLOB_PATTERN } from '../dockerExtension';
|
2018-09-05 09:23:07 +03:00
|
|
|
import { delay } from "../explorer/utils/utils";
|
2018-08-10 01:26:31 +03:00
|
|
|
import { ext } from "../extensionVariables";
|
2018-09-01 04:57:32 +03:00
|
|
|
import { addImageTaggingTelemetry, getTagFromUserInput } from "./tag-image";
|
2018-10-10 00:01:16 +03:00
|
|
|
import { quickPickWorkspaceFolder } from "./utils/quickPickWorkspaceFolder";
|
2016-09-14 08:20:20 +03:00
|
|
|
|
merge cleanup (#617)
* Added Azure Credentials Manager Singleton (#18)
* Added Azure Credentials Manager Singleton
* Added getResourceManagementClient
* Sorted Existing Create Registry ready for code review
* Added acquiring telemetry data for create registry
* broke up createnewresourcegroup method and fixed client use
Added try catch loop and awaited for resource group list again to check for duplicates with ResourceManagementClient
* Jackson esteban/unified client nit Fix (#24)
* Added Azure Credentials Manager Singleton
* Small Style Fixes
* Further Style fixes, added getResourceManagementClient
* Lazy Initialization Patches
* Enabled location selection
* Location request fixes
-Changed order of questions asked to user for better UX (location of new res group & location of new registry)
-Placeholder of location is display name view
* Refactor while loop for new res group
* Added SKU selection
* Quick fix- initializing array syntax
* Added specific error messages and comments
* Julia/delete image (#29)
* first fully functional version of delete through input bar AND right click
* refactored code to make it prettier!
* comments
* comments, added subscription function
* fixed to style guide
* style fixes, refactoring
* delete image after reviews
put my functions from azureCredentialsManager into two new files: utils/azure/acrTools.ts, and commands/utils/quick-pick-azure.ts
Edited code based on Esteban's and Bin's reviews
* One last little change to delete image
* moved repository, azureimage, and getsubscriptions to the correct places within deleteImage
* changes from PR reviews on delete image
* fixed authentication issue, got rid of azureAccount property for repository and image
**on constructor for repository, azurecredentialsmanager was being recreated and thus couldn't find the azureAccount. For this reason, I got rid of the azureAccount property of the classes Repository and AzureImage. This bug may lead to future problems (Esteban and I couldn't see why it was happening)
* minor fixes deleteImage
* delete a parentheses
* copied previous push to acr into new pull-from-azure.ts file
* Estebanreyl/dev merge fixes (#43)
* Merge fixes to acquire latest telemetry items
* Updated to master AzureUtilityManager
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Rutusamai/list build tasks for each registry (#37)
* tslint updates, transfered from old branch
* updated icon
* Addressed PR comments- mostly styling/code efficiency
* Changed url to aka.ms link
* changed Error window to Info message for no build tasks in your registry
* Changed default sku and unified parsing resource group into a new method, getResourceGroup in acrTools.ts
* Changed build task icon
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* Julia/delete repository final (#49)
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* spacing
* final commit
* Cleaned code
* Added Telemetry
* Julia/delete registry final (#47)
Delete azure registry functionality added
Delete azure registry moved to branch off dev
Reorganized stye
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* added folder select
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* removed username and password from Azure Registry Node
* Clean up
* copied previous push to acr into new pull-from-azure.ts file
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* Clean up
* Working again after rebasing and resolving merge conflicts
* Updates and fixes
* Fixes from PR comments
-renamed loginCredentials functions
-added await to docker commands in image pull
-cleanup
* uncapitalize AzureRegistryNode
* Refactoring, prod.
* Flexible OSType
* Estebanreyl/ready for production (#55)
* began updating
* Reorganized create registry and delete azure image
* continued improvements
* Began updating login
* being credentials update
* further updates
* Finished updating, need to test functionality now
* Updated requests, things all work now
* Applied some nit fixes
* Updates to naming
* maintain UtilityManager standards
* Updated Prompts
* Updated imports and naming / standarized telemetry
* Added explorer refresh capabilities on delete/add
* Jackson/quick build dev (#46)
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* added folder select
* Updates and fixes
* Refactoring, prod.
* Flexible OSType
* added ID
* Move build to azure commands
* cleanup
* Relative dockerfile support
* Removed await, updating list in enumeration
* fixed chdir
* flexible ostype
* Rutusamai/Show Build Task properties (#70)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* removed run build task stuff
* cleanup
* addressed esteban's comments
* buildTask = context.task.name rather than label
* fixes from Bin's comments
* Merge branch 'dev' of https://github.com/AzureCR/vscode-docker into master4
* merge
* missed small changes
* Rutusamai/Run a Build Task (#71)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* run is working for right click
* run build task works through command pallette. added success notification
* removed show build task
* cleanup- matched quickpick buils task and tasknode withshow build task branch
* removed showTaskManager
* spacing
* outputChannel and null icon
* merge to update with dev
* Estebanreyl/build logs final (#72)
* "Merge branch 'estebanreyl/buildlogsWithAccesibility' of https://github.com/AzureCR/vscode-docker into estebanreyl/buildlogsWithAccesibility"
This reverts commit e645cbf5058c9bc838ee41a67cd6c5aee9945702, reversing
changes made to fc4a477220c7819c9249557ba0d7570f5d0c1e0c.
* Refactored and organized log view into readable components.
* moved storage
* Began incorporating icons
* Added icons
* Further standarization
* added logs
* Added download log capabilities
* Updated Copy
* Updated inner div size alignment
* Added resizing script
* header sort by is only clickable on text now
* fixed header table
* Fix minor display issues
* Identified filtering strategy
* Begin adding sorting
* Merge with dev
* Added proper filtering
* Nit loading improvements
* Added accesibility, key only behaviour
* accesibility retouches and enable right click from tasknode
* merges
* fix module name
* Adds streaming and command standarization (ext.ui) (#73)
* Adds streaming and command standarization (ext.ui)
* removed unecessary append lines
* small fixes
* Fix merge issues
* changes for ACR 3.0.0 (#80)
* This commit contains changes necessary for the
azure-arm-containerregistry 3.0.0
* Fixed PR feedback
* Run task fixed. Issue ID: 79
* missing changes added
* Fixing ACR run logs for Images
* Sajaya/top1 (#83)
* Query only 1 record for runs
* View Azure logs
* Refactoring build to run and buildTask to task
* Removed filter for top (#88)
* adding run yaml file
* Refactoring to run task file.
* fixing logs filter for images
* Last Update time Fixed
* Cleanup + refactoring delete image to untag image
* Adding delete ACR Image (delete digest)
* Changing text promt on right click to run ACR task file
* Update settings.json
* minor PR review fixes 1
* PR fixes 1
* Missed: change any to string
* merge clean up
* Schedule run code reduction + minor improvements
* ACR request Improvements
* Minor grammar fixes
2018-11-18 02:09:45 +03:00
|
|
|
async function getFileUris(folder: vscode.WorkspaceFolder, globPattern: string): Promise<vscode.Uri[]> {
|
|
|
|
return await vscode.workspace.findFiles(new vscode.RelativePattern(folder, globPattern), undefined, 1000, undefined);
|
2016-09-14 08:20:20 +03:00
|
|
|
}
|
|
|
|
|
ACR-3.0.0 API upgrade (#506)
* Added Azure Credentials Manager Singleton (#18)
* Added Azure Credentials Manager Singleton
* Added getResourceManagementClient
* Sorted Existing Create Registry ready for code review
* Added acquiring telemetry data for create registry
* broke up createnewresourcegroup method and fixed client use
Added try catch loop and awaited for resource group list again to check for duplicates with ResourceManagementClient
* Jackson esteban/unified client nit Fix (#24)
* Added Azure Credentials Manager Singleton
* Small Style Fixes
* Further Style fixes, added getResourceManagementClient
* Lazy Initialization Patches
* Enabled location selection
* Location request fixes
-Changed order of questions asked to user for better UX (location of new res group & location of new registry)
-Placeholder of location is display name view
* Refactor while loop for new res group
* Added SKU selection
* Quick fix- initializing array syntax
* Added specific error messages and comments
* Julia/delete image (#29)
* first fully functional version of delete through input bar AND right click
* refactored code to make it prettier!
* comments
* comments, added subscription function
* fixed to style guide
* style fixes, refactoring
* delete image after reviews
put my functions from azureCredentialsManager into two new files: utils/azure/acrTools.ts, and commands/utils/quick-pick-azure.ts
Edited code based on Esteban's and Bin's reviews
* One last little change to delete image
* moved repository, azureimage, and getsubscriptions to the correct places within deleteImage
* changes from PR reviews on delete image
* fixed authentication issue, got rid of azureAccount property for repository and image
**on constructor for repository, azurecredentialsmanager was being recreated and thus couldn't find the azureAccount. For this reason, I got rid of the azureAccount property of the classes Repository and AzureImage. This bug may lead to future problems (Esteban and I couldn't see why it was happening)
* minor fixes deleteImage
* delete a parentheses
* copied previous push to acr into new pull-from-azure.ts file
* Estebanreyl/dev merge fixes (#43)
* Merge fixes to acquire latest telemetry items
* Updated to master AzureUtilityManager
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Rutusamai/list build tasks for each registry (#37)
* tslint updates, transfered from old branch
* updated icon
* Addressed PR comments- mostly styling/code efficiency
* Changed url to aka.ms link
* changed Error window to Info message for no build tasks in your registry
* Changed default sku and unified parsing resource group into a new method, getResourceGroup in acrTools.ts
* Changed build task icon
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* Julia/delete repository final (#49)
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* spacing
* final commit
* Cleaned code
* Added Telemetry
* Julia/delete registry final (#47)
Delete azure registry functionality added
Delete azure registry moved to branch off dev
Reorganized stye
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* added folder select
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* removed username and password from Azure Registry Node
* Clean up
* copied previous push to acr into new pull-from-azure.ts file
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* Clean up
* Working again after rebasing and resolving merge conflicts
* Updates and fixes
* Fixes from PR comments
-renamed loginCredentials functions
-added await to docker commands in image pull
-cleanup
* uncapitalize AzureRegistryNode
* Refactoring, prod.
* Flexible OSType
* Estebanreyl/ready for production (#55)
* began updating
* Reorganized create registry and delete azure image
* continued improvements
* Began updating login
* being credentials update
* further updates
* Finished updating, need to test functionality now
* Updated requests, things all work now
* Applied some nit fixes
* Updates to naming
* maintain UtilityManager standards
* Updated Prompts
* Updated imports and naming / standarized telemetry
* Added explorer refresh capabilities on delete/add
* Jackson/quick build dev (#46)
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* added folder select
* Updates and fixes
* Refactoring, prod.
* Flexible OSType
* added ID
* Move build to azure commands
* cleanup
* Relative dockerfile support
* Removed await, updating list in enumeration
* fixed chdir
* flexible ostype
* Rutusamai/Show Build Task properties (#70)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* removed run build task stuff
* cleanup
* addressed esteban's comments
* buildTask = context.task.name rather than label
* fixes from Bin's comments
* Merge branch 'dev' of https://github.com/AzureCR/vscode-docker into master4
* merge
* missed small changes
* Rutusamai/Run a Build Task (#71)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* run is working for right click
* run build task works through command pallette. added success notification
* removed show build task
* cleanup- matched quickpick buils task and tasknode withshow build task branch
* removed showTaskManager
* spacing
* outputChannel and null icon
* merge to update with dev
* Estebanreyl/build logs final (#72)
* "Merge branch 'estebanreyl/buildlogsWithAccesibility' of https://github.com/AzureCR/vscode-docker into estebanreyl/buildlogsWithAccesibility"
This reverts commit e645cbf5058c9bc838ee41a67cd6c5aee9945702, reversing
changes made to fc4a477220c7819c9249557ba0d7570f5d0c1e0c.
* Refactored and organized log view into readable components.
* moved storage
* Began incorporating icons
* Added icons
* Further standarization
* added logs
* Added download log capabilities
* Updated Copy
* Updated inner div size alignment
* Added resizing script
* header sort by is only clickable on text now
* fixed header table
* Fix minor display issues
* Identified filtering strategy
* Begin adding sorting
* Merge with dev
* Added proper filtering
* Nit loading improvements
* Added accesibility, key only behaviour
* accesibility retouches and enable right click from tasknode
* merges
* fix module name
* Adds streaming and command standarization (ext.ui) (#73)
* Adds streaming and command standarization (ext.ui)
* removed unecessary append lines
* small fixes
* Fix merge issues
* changes for ACR 3.0.0 (#80)
* This commit contains changes necessary for the
azure-arm-containerregistry 3.0.0
* Fixed PR feedback
* Run task fixed. Issue ID: 79
* missing changes added
* Fixing ACR run logs for Images
* Sajaya/top1 (#83)
* Query only 1 record for runs
* View Azure logs
* Refactoring build to run and buildTask to task
* Update Credentail Management
Sorted Existing Create Registry ready for code review
Jackson esteban/unified client nit Fix (#24)
* Added Azure Credentials Manager Singleton
* Small Style Fixes
* Further Style fixes, added getResourceManagementClient
* Lazy Initialization Patches
Enabled location selection
Location request fixes
-Changed order of questions asked to user for better UX (location of new res group & location of new registry)
-Placeholder of location is display name view
Added SKU selection
Quick fix- initializing array syntax
Julia/delete image (#29)
* first fully functional version of delete through input bar AND right click
* refactored code to make it prettier!
* comments
* comments, added subscription function
* fixed to style guide
* style fixes, refactoring
* delete image after reviews
put my functions from azureCredentialsManager into two new files: utils/azure/acrTools.ts, and commands/utils/quick-pick-azure.ts
Edited code based on Esteban's and Bin's reviews
* One last little change to delete image
* moved repository, azureimage, and getsubscriptions to the correct places within deleteImage
* changes from PR reviews on delete image
* fixed authentication issue, got rid of azureAccount property for repository and image
**on constructor for repository, azurecredentialsmanager was being recreated and thus couldn't find the azureAccount. For this reason, I got rid of the azureAccount property of the classes Repository and AzureImage. This bug may lead to future problems (Esteban and I couldn't see why it was happening)
* minor fixes deleteImage
* delete a parentheses
copied previous push to acr into new pull-from-azure.ts file
Estebanreyl/dev merge fixes (#43)
* Merge fixes to acquire latest telemetry items
* Updated to master AzureUtilityManager
added acrbuild stuff
Rutusamai/list build tasks for each registry (#37)
* tslint updates, transfered from old branch
* updated icon
* Addressed PR comments- mostly styling/code efficiency
* Changed url to aka.ms link
* changed Error window to Info message for no build tasks in your registry
* Changed default sku and unified parsing resource group into a new method, getResourceGroup in acrTools.ts
* Changed build task icon
utility bug fix
Julia/delete repository final (#49)
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* spacing
* final commit
* Cleaned code
* Added Telemetry
Julia/delete registry final (#47)
Delete azure registry functionality added
Delete azure registry moved to branch off dev
Reorganized stye
Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
Split the loginCredentials function, added docker login and docker pull and telemetry actions
copied previous push to acr into new pull-from-azure.ts file
Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
Split the loginCredentials function, added docker login and docker pull and telemetry actions
Finished pull from azure right click feature
Working again after rebasing and resolving merge conflicts
Refactoring, prod.
Estebanreyl/ready for production (#55)
* began updating
* Reorganized create registry and delete azure image
* continued improvements
* Began updating login
* being credentials update
* further updates
* Finished updating, need to test functionality now
* Updated requests, things all work now
* Applied some nit fixes
* Updates to naming
* maintain UtilityManager standards
* Updated Prompts
* Updated imports and naming / standarized telemetry
* Added explorer refresh capabilities on delete/add
Jackson/quick build dev (#46)
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* added folder select
* Updates and fixes
* Refactoring, prod.
* Flexible OSType
added ID
Move build to azure commands
cleanup
Relative dockerfile support
Removed await, updating list in enumeration
fixed chdir
flexible ostype
Rutusamai/Show Build Task properties (#70)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* removed run build task stuff
* cleanup
* addressed esteban's comments
* buildTask = context.task.name rather than label
* fixes from Bin's comments
Merge branch 'dev' of https://github.com/AzureCR/vscode-docker into master4
merge
missed small changes
Rutusamai/Run a Build Task (#71)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* run is working for right click
* run build task works through command pallette. added success notification
* removed show build task
* cleanup- matched quickpick buils task and tasknode withshow build task branch
* removed showTaskManager
* spacing
* outputChannel and null icon
* merge to update with dev
Estebanreyl/build logs final (#72)
* "Merge branch 'estebanreyl/buildlogsWithAccesibility' of https://github.com/AzureCR/vscode-docker into estebanreyl/buildlogsWithAccesibility"
This reverts commit e645cbf5058c9bc838ee41a67cd6c5aee9945702, reversing
changes made to fc4a477220c7819c9249557ba0d7570f5d0c1e0c.
* Refactored and organized log view into readable components.
* moved storage
* Began incorporating icons
* Added icons
* Further standarization
* added logs
* Added download log capabilities
* Updated Copy
* Updated inner div size alignment
* Added resizing script
* header sort by is only clickable on text now
* fixed header table
* Fix minor display issues
* Identified filtering strategy
* Begin adding sorting
* Merge with dev
* Added proper filtering
* Nit loading improvements
* Added accesibility, key only behaviour
* accesibility retouches and enable right click from tasknode
* merges
* fix module name
Adds streaming and command standarization (ext.ui) (#73)
* Adds streaming and command standarization (ext.ui)
* removed unecessary append lines
* small fixes
* Fix merge issues
changes for ACR 3.0.0 (#80)
* This commit contains changes necessary for the
azure-arm-containerregistry 3.0.0
* Fixed PR feedback
Run task fixed. Issue ID: 79
missing changes added
Fixing ACR run logs for Images
Sajaya/top1 (#83)
* Query only 1 record for runs
* View Azure logs
bug fix
* Removed filter for top (#88)
* fixing Image Log Filter
* fixing tslint error messages
* tslint fixes 2
* First PR #506 review Update include:
Deletion of resizable.js
Package.json commands alphabetically ordered.
General typos, grammar and naming fixes.
Change from fs - fs-extra.
Other general improvments.
* Hide Azure Quick Build if Azure Account not available
* Second PR #506 review update.
Quick Build Image name and dockerFile selection Improvements.
Upgrade from fs to fs-extra.
Log table bug fixes.
Error Handeling Improvements.
Other general improvements.
* Improving Logs generation Error handeling
* Third PR #506 review update.
loadLogs parameters update.
uploadSourceCode Improvements.
* UploadSourceCode no longer has to change process working directory.
* lint fix
2018-11-09 19:55:21 +03:00
|
|
|
export interface Item extends vscode.QuickPickItem {
|
2018-08-18 02:10:10 +03:00
|
|
|
relativeFilePath: string;
|
|
|
|
relativeFolderPath: string;
|
2016-09-14 08:20:20 +03:00
|
|
|
}
|
|
|
|
|
merge cleanup (#617)
* Added Azure Credentials Manager Singleton (#18)
* Added Azure Credentials Manager Singleton
* Added getResourceManagementClient
* Sorted Existing Create Registry ready for code review
* Added acquiring telemetry data for create registry
* broke up createnewresourcegroup method and fixed client use
Added try catch loop and awaited for resource group list again to check for duplicates with ResourceManagementClient
* Jackson esteban/unified client nit Fix (#24)
* Added Azure Credentials Manager Singleton
* Small Style Fixes
* Further Style fixes, added getResourceManagementClient
* Lazy Initialization Patches
* Enabled location selection
* Location request fixes
-Changed order of questions asked to user for better UX (location of new res group & location of new registry)
-Placeholder of location is display name view
* Refactor while loop for new res group
* Added SKU selection
* Quick fix- initializing array syntax
* Added specific error messages and comments
* Julia/delete image (#29)
* first fully functional version of delete through input bar AND right click
* refactored code to make it prettier!
* comments
* comments, added subscription function
* fixed to style guide
* style fixes, refactoring
* delete image after reviews
put my functions from azureCredentialsManager into two new files: utils/azure/acrTools.ts, and commands/utils/quick-pick-azure.ts
Edited code based on Esteban's and Bin's reviews
* One last little change to delete image
* moved repository, azureimage, and getsubscriptions to the correct places within deleteImage
* changes from PR reviews on delete image
* fixed authentication issue, got rid of azureAccount property for repository and image
**on constructor for repository, azurecredentialsmanager was being recreated and thus couldn't find the azureAccount. For this reason, I got rid of the azureAccount property of the classes Repository and AzureImage. This bug may lead to future problems (Esteban and I couldn't see why it was happening)
* minor fixes deleteImage
* delete a parentheses
* copied previous push to acr into new pull-from-azure.ts file
* Estebanreyl/dev merge fixes (#43)
* Merge fixes to acquire latest telemetry items
* Updated to master AzureUtilityManager
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Rutusamai/list build tasks for each registry (#37)
* tslint updates, transfered from old branch
* updated icon
* Addressed PR comments- mostly styling/code efficiency
* Changed url to aka.ms link
* changed Error window to Info message for no build tasks in your registry
* Changed default sku and unified parsing resource group into a new method, getResourceGroup in acrTools.ts
* Changed build task icon
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* Julia/delete repository final (#49)
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* spacing
* final commit
* Cleaned code
* Added Telemetry
* Julia/delete registry final (#47)
Delete azure registry functionality added
Delete azure registry moved to branch off dev
Reorganized stye
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* added folder select
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* removed username and password from Azure Registry Node
* Clean up
* copied previous push to acr into new pull-from-azure.ts file
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* Clean up
* Working again after rebasing and resolving merge conflicts
* Updates and fixes
* Fixes from PR comments
-renamed loginCredentials functions
-added await to docker commands in image pull
-cleanup
* uncapitalize AzureRegistryNode
* Refactoring, prod.
* Flexible OSType
* Estebanreyl/ready for production (#55)
* began updating
* Reorganized create registry and delete azure image
* continued improvements
* Began updating login
* being credentials update
* further updates
* Finished updating, need to test functionality now
* Updated requests, things all work now
* Applied some nit fixes
* Updates to naming
* maintain UtilityManager standards
* Updated Prompts
* Updated imports and naming / standarized telemetry
* Added explorer refresh capabilities on delete/add
* Jackson/quick build dev (#46)
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* added folder select
* Updates and fixes
* Refactoring, prod.
* Flexible OSType
* added ID
* Move build to azure commands
* cleanup
* Relative dockerfile support
* Removed await, updating list in enumeration
* fixed chdir
* flexible ostype
* Rutusamai/Show Build Task properties (#70)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* removed run build task stuff
* cleanup
* addressed esteban's comments
* buildTask = context.task.name rather than label
* fixes from Bin's comments
* Merge branch 'dev' of https://github.com/AzureCR/vscode-docker into master4
* merge
* missed small changes
* Rutusamai/Run a Build Task (#71)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* run is working for right click
* run build task works through command pallette. added success notification
* removed show build task
* cleanup- matched quickpick buils task and tasknode withshow build task branch
* removed showTaskManager
* spacing
* outputChannel and null icon
* merge to update with dev
* Estebanreyl/build logs final (#72)
* "Merge branch 'estebanreyl/buildlogsWithAccesibility' of https://github.com/AzureCR/vscode-docker into estebanreyl/buildlogsWithAccesibility"
This reverts commit e645cbf5058c9bc838ee41a67cd6c5aee9945702, reversing
changes made to fc4a477220c7819c9249557ba0d7570f5d0c1e0c.
* Refactored and organized log view into readable components.
* moved storage
* Began incorporating icons
* Added icons
* Further standarization
* added logs
* Added download log capabilities
* Updated Copy
* Updated inner div size alignment
* Added resizing script
* header sort by is only clickable on text now
* fixed header table
* Fix minor display issues
* Identified filtering strategy
* Begin adding sorting
* Merge with dev
* Added proper filtering
* Nit loading improvements
* Added accesibility, key only behaviour
* accesibility retouches and enable right click from tasknode
* merges
* fix module name
* Adds streaming and command standarization (ext.ui) (#73)
* Adds streaming and command standarization (ext.ui)
* removed unecessary append lines
* small fixes
* Fix merge issues
* changes for ACR 3.0.0 (#80)
* This commit contains changes necessary for the
azure-arm-containerregistry 3.0.0
* Fixed PR feedback
* Run task fixed. Issue ID: 79
* missing changes added
* Fixing ACR run logs for Images
* Sajaya/top1 (#83)
* Query only 1 record for runs
* View Azure logs
* Refactoring build to run and buildTask to task
* Removed filter for top (#88)
* adding run yaml file
* Refactoring to run task file.
* fixing logs filter for images
* Last Update time Fixed
* Cleanup + refactoring delete image to untag image
* Adding delete ACR Image (delete digest)
* Changing text promt on right click to run ACR task file
* Update settings.json
* minor PR review fixes 1
* PR fixes 1
* Missed: change any to string
* merge clean up
* Schedule run code reduction + minor improvements
* ACR request Improvements
* Minor grammar fixes
2018-11-18 02:09:45 +03:00
|
|
|
function createFileItem(rootFolder: vscode.WorkspaceFolder, uri: vscode.Uri): Item {
|
2018-08-18 02:10:10 +03:00
|
|
|
let relativeFilePath = path.join(".", uri.fsPath.substr(rootFolder.uri.fsPath.length));
|
2016-12-08 22:05:00 +03:00
|
|
|
|
2016-10-20 07:03:04 +03:00
|
|
|
return <Item>{
|
2018-08-18 02:10:10 +03:00
|
|
|
description: undefined,
|
|
|
|
relativeFilePath: relativeFilePath,
|
|
|
|
label: relativeFilePath,
|
|
|
|
relativeFolderPath: path.dirname(relativeFilePath)
|
2016-09-14 08:20:20 +03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
merge cleanup (#617)
* Added Azure Credentials Manager Singleton (#18)
* Added Azure Credentials Manager Singleton
* Added getResourceManagementClient
* Sorted Existing Create Registry ready for code review
* Added acquiring telemetry data for create registry
* broke up createnewresourcegroup method and fixed client use
Added try catch loop and awaited for resource group list again to check for duplicates with ResourceManagementClient
* Jackson esteban/unified client nit Fix (#24)
* Added Azure Credentials Manager Singleton
* Small Style Fixes
* Further Style fixes, added getResourceManagementClient
* Lazy Initialization Patches
* Enabled location selection
* Location request fixes
-Changed order of questions asked to user for better UX (location of new res group & location of new registry)
-Placeholder of location is display name view
* Refactor while loop for new res group
* Added SKU selection
* Quick fix- initializing array syntax
* Added specific error messages and comments
* Julia/delete image (#29)
* first fully functional version of delete through input bar AND right click
* refactored code to make it prettier!
* comments
* comments, added subscription function
* fixed to style guide
* style fixes, refactoring
* delete image after reviews
put my functions from azureCredentialsManager into two new files: utils/azure/acrTools.ts, and commands/utils/quick-pick-azure.ts
Edited code based on Esteban's and Bin's reviews
* One last little change to delete image
* moved repository, azureimage, and getsubscriptions to the correct places within deleteImage
* changes from PR reviews on delete image
* fixed authentication issue, got rid of azureAccount property for repository and image
**on constructor for repository, azurecredentialsmanager was being recreated and thus couldn't find the azureAccount. For this reason, I got rid of the azureAccount property of the classes Repository and AzureImage. This bug may lead to future problems (Esteban and I couldn't see why it was happening)
* minor fixes deleteImage
* delete a parentheses
* copied previous push to acr into new pull-from-azure.ts file
* Estebanreyl/dev merge fixes (#43)
* Merge fixes to acquire latest telemetry items
* Updated to master AzureUtilityManager
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Rutusamai/list build tasks for each registry (#37)
* tslint updates, transfered from old branch
* updated icon
* Addressed PR comments- mostly styling/code efficiency
* Changed url to aka.ms link
* changed Error window to Info message for no build tasks in your registry
* Changed default sku and unified parsing resource group into a new method, getResourceGroup in acrTools.ts
* Changed build task icon
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* Julia/delete repository final (#49)
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* spacing
* final commit
* Cleaned code
* Added Telemetry
* Julia/delete registry final (#47)
Delete azure registry functionality added
Delete azure registry moved to branch off dev
Reorganized stye
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* added folder select
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* removed username and password from Azure Registry Node
* Clean up
* copied previous push to acr into new pull-from-azure.ts file
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* Clean up
* Working again after rebasing and resolving merge conflicts
* Updates and fixes
* Fixes from PR comments
-renamed loginCredentials functions
-added await to docker commands in image pull
-cleanup
* uncapitalize AzureRegistryNode
* Refactoring, prod.
* Flexible OSType
* Estebanreyl/ready for production (#55)
* began updating
* Reorganized create registry and delete azure image
* continued improvements
* Began updating login
* being credentials update
* further updates
* Finished updating, need to test functionality now
* Updated requests, things all work now
* Applied some nit fixes
* Updates to naming
* maintain UtilityManager standards
* Updated Prompts
* Updated imports and naming / standarized telemetry
* Added explorer refresh capabilities on delete/add
* Jackson/quick build dev (#46)
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* added folder select
* Updates and fixes
* Refactoring, prod.
* Flexible OSType
* added ID
* Move build to azure commands
* cleanup
* Relative dockerfile support
* Removed await, updating list in enumeration
* fixed chdir
* flexible ostype
* Rutusamai/Show Build Task properties (#70)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* removed run build task stuff
* cleanup
* addressed esteban's comments
* buildTask = context.task.name rather than label
* fixes from Bin's comments
* Merge branch 'dev' of https://github.com/AzureCR/vscode-docker into master4
* merge
* missed small changes
* Rutusamai/Run a Build Task (#71)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* run is working for right click
* run build task works through command pallette. added success notification
* removed show build task
* cleanup- matched quickpick buils task and tasknode withshow build task branch
* removed showTaskManager
* spacing
* outputChannel and null icon
* merge to update with dev
* Estebanreyl/build logs final (#72)
* "Merge branch 'estebanreyl/buildlogsWithAccesibility' of https://github.com/AzureCR/vscode-docker into estebanreyl/buildlogsWithAccesibility"
This reverts commit e645cbf5058c9bc838ee41a67cd6c5aee9945702, reversing
changes made to fc4a477220c7819c9249557ba0d7570f5d0c1e0c.
* Refactored and organized log view into readable components.
* moved storage
* Began incorporating icons
* Added icons
* Further standarization
* added logs
* Added download log capabilities
* Updated Copy
* Updated inner div size alignment
* Added resizing script
* header sort by is only clickable on text now
* fixed header table
* Fix minor display issues
* Identified filtering strategy
* Begin adding sorting
* Merge with dev
* Added proper filtering
* Nit loading improvements
* Added accesibility, key only behaviour
* accesibility retouches and enable right click from tasknode
* merges
* fix module name
* Adds streaming and command standarization (ext.ui) (#73)
* Adds streaming and command standarization (ext.ui)
* removed unecessary append lines
* small fixes
* Fix merge issues
* changes for ACR 3.0.0 (#80)
* This commit contains changes necessary for the
azure-arm-containerregistry 3.0.0
* Fixed PR feedback
* Run task fixed. Issue ID: 79
* missing changes added
* Fixing ACR run logs for Images
* Sajaya/top1 (#83)
* Query only 1 record for runs
* View Azure logs
* Refactoring build to run and buildTask to task
* Removed filter for top (#88)
* adding run yaml file
* Refactoring to run task file.
* fixing logs filter for images
* Last Update time Fixed
* Cleanup + refactoring delete image to untag image
* Adding delete ACR Image (delete digest)
* Changing text promt on right click to run ACR task file
* Update settings.json
* minor PR review fixes 1
* PR fixes 1
* Missed: change any to string
* merge clean up
* Schedule run code reduction + minor improvements
* ACR request Improvements
* Minor grammar fixes
2018-11-18 02:09:45 +03:00
|
|
|
export async function resolveFileItem(rootFolder: vscode.WorkspaceFolder, fileUri: vscode.Uri | undefined, globPattern: string, message: string): Promise<Item | undefined> {
|
|
|
|
if (fileUri) {
|
|
|
|
return createFileItem(rootFolder, fileUri);
|
2018-07-14 00:16:56 +03:00
|
|
|
}
|
2017-06-06 03:55:05 +03:00
|
|
|
|
merge cleanup (#617)
* Added Azure Credentials Manager Singleton (#18)
* Added Azure Credentials Manager Singleton
* Added getResourceManagementClient
* Sorted Existing Create Registry ready for code review
* Added acquiring telemetry data for create registry
* broke up createnewresourcegroup method and fixed client use
Added try catch loop and awaited for resource group list again to check for duplicates with ResourceManagementClient
* Jackson esteban/unified client nit Fix (#24)
* Added Azure Credentials Manager Singleton
* Small Style Fixes
* Further Style fixes, added getResourceManagementClient
* Lazy Initialization Patches
* Enabled location selection
* Location request fixes
-Changed order of questions asked to user for better UX (location of new res group & location of new registry)
-Placeholder of location is display name view
* Refactor while loop for new res group
* Added SKU selection
* Quick fix- initializing array syntax
* Added specific error messages and comments
* Julia/delete image (#29)
* first fully functional version of delete through input bar AND right click
* refactored code to make it prettier!
* comments
* comments, added subscription function
* fixed to style guide
* style fixes, refactoring
* delete image after reviews
put my functions from azureCredentialsManager into two new files: utils/azure/acrTools.ts, and commands/utils/quick-pick-azure.ts
Edited code based on Esteban's and Bin's reviews
* One last little change to delete image
* moved repository, azureimage, and getsubscriptions to the correct places within deleteImage
* changes from PR reviews on delete image
* fixed authentication issue, got rid of azureAccount property for repository and image
**on constructor for repository, azurecredentialsmanager was being recreated and thus couldn't find the azureAccount. For this reason, I got rid of the azureAccount property of the classes Repository and AzureImage. This bug may lead to future problems (Esteban and I couldn't see why it was happening)
* minor fixes deleteImage
* delete a parentheses
* copied previous push to acr into new pull-from-azure.ts file
* Estebanreyl/dev merge fixes (#43)
* Merge fixes to acquire latest telemetry items
* Updated to master AzureUtilityManager
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Rutusamai/list build tasks for each registry (#37)
* tslint updates, transfered from old branch
* updated icon
* Addressed PR comments- mostly styling/code efficiency
* Changed url to aka.ms link
* changed Error window to Info message for no build tasks in your registry
* Changed default sku and unified parsing resource group into a new method, getResourceGroup in acrTools.ts
* Changed build task icon
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* Julia/delete repository final (#49)
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* spacing
* final commit
* Cleaned code
* Added Telemetry
* Julia/delete registry final (#47)
Delete azure registry functionality added
Delete azure registry moved to branch off dev
Reorganized stye
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* added folder select
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* removed username and password from Azure Registry Node
* Clean up
* copied previous push to acr into new pull-from-azure.ts file
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* Clean up
* Working again after rebasing and resolving merge conflicts
* Updates and fixes
* Fixes from PR comments
-renamed loginCredentials functions
-added await to docker commands in image pull
-cleanup
* uncapitalize AzureRegistryNode
* Refactoring, prod.
* Flexible OSType
* Estebanreyl/ready for production (#55)
* began updating
* Reorganized create registry and delete azure image
* continued improvements
* Began updating login
* being credentials update
* further updates
* Finished updating, need to test functionality now
* Updated requests, things all work now
* Applied some nit fixes
* Updates to naming
* maintain UtilityManager standards
* Updated Prompts
* Updated imports and naming / standarized telemetry
* Added explorer refresh capabilities on delete/add
* Jackson/quick build dev (#46)
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* added folder select
* Updates and fixes
* Refactoring, prod.
* Flexible OSType
* added ID
* Move build to azure commands
* cleanup
* Relative dockerfile support
* Removed await, updating list in enumeration
* fixed chdir
* flexible ostype
* Rutusamai/Show Build Task properties (#70)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* removed run build task stuff
* cleanup
* addressed esteban's comments
* buildTask = context.task.name rather than label
* fixes from Bin's comments
* Merge branch 'dev' of https://github.com/AzureCR/vscode-docker into master4
* merge
* missed small changes
* Rutusamai/Run a Build Task (#71)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* run is working for right click
* run build task works through command pallette. added success notification
* removed show build task
* cleanup- matched quickpick buils task and tasknode withshow build task branch
* removed showTaskManager
* spacing
* outputChannel and null icon
* merge to update with dev
* Estebanreyl/build logs final (#72)
* "Merge branch 'estebanreyl/buildlogsWithAccesibility' of https://github.com/AzureCR/vscode-docker into estebanreyl/buildlogsWithAccesibility"
This reverts commit e645cbf5058c9bc838ee41a67cd6c5aee9945702, reversing
changes made to fc4a477220c7819c9249557ba0d7570f5d0c1e0c.
* Refactored and organized log view into readable components.
* moved storage
* Began incorporating icons
* Added icons
* Further standarization
* added logs
* Added download log capabilities
* Updated Copy
* Updated inner div size alignment
* Added resizing script
* header sort by is only clickable on text now
* fixed header table
* Fix minor display issues
* Identified filtering strategy
* Begin adding sorting
* Merge with dev
* Added proper filtering
* Nit loading improvements
* Added accesibility, key only behaviour
* accesibility retouches and enable right click from tasknode
* merges
* fix module name
* Adds streaming and command standarization (ext.ui) (#73)
* Adds streaming and command standarization (ext.ui)
* removed unecessary append lines
* small fixes
* Fix merge issues
* changes for ACR 3.0.0 (#80)
* This commit contains changes necessary for the
azure-arm-containerregistry 3.0.0
* Fixed PR feedback
* Run task fixed. Issue ID: 79
* missing changes added
* Fixing ACR run logs for Images
* Sajaya/top1 (#83)
* Query only 1 record for runs
* View Azure logs
* Refactoring build to run and buildTask to task
* Removed filter for top (#88)
* adding run yaml file
* Refactoring to run task file.
* fixing logs filter for images
* Last Update time Fixed
* Cleanup + refactoring delete image to untag image
* Adding delete ACR Image (delete digest)
* Changing text promt on right click to run ACR task file
* Update settings.json
* minor PR review fixes 1
* PR fixes 1
* Missed: change any to string
* merge clean up
* Schedule run code reduction + minor improvements
* ACR request Improvements
* Minor grammar fixes
2018-11-18 02:09:45 +03:00
|
|
|
let uris: vscode.Uri[] = await getFileUris(rootFolder, globPattern);
|
2017-06-06 03:55:05 +03:00
|
|
|
|
2018-07-18 00:12:15 +03:00
|
|
|
if (!uris || uris.length === 0) {
|
2018-08-18 02:10:10 +03:00
|
|
|
return undefined;
|
2017-06-06 03:55:05 +03:00
|
|
|
} else {
|
merge cleanup (#617)
* Added Azure Credentials Manager Singleton (#18)
* Added Azure Credentials Manager Singleton
* Added getResourceManagementClient
* Sorted Existing Create Registry ready for code review
* Added acquiring telemetry data for create registry
* broke up createnewresourcegroup method and fixed client use
Added try catch loop and awaited for resource group list again to check for duplicates with ResourceManagementClient
* Jackson esteban/unified client nit Fix (#24)
* Added Azure Credentials Manager Singleton
* Small Style Fixes
* Further Style fixes, added getResourceManagementClient
* Lazy Initialization Patches
* Enabled location selection
* Location request fixes
-Changed order of questions asked to user for better UX (location of new res group & location of new registry)
-Placeholder of location is display name view
* Refactor while loop for new res group
* Added SKU selection
* Quick fix- initializing array syntax
* Added specific error messages and comments
* Julia/delete image (#29)
* first fully functional version of delete through input bar AND right click
* refactored code to make it prettier!
* comments
* comments, added subscription function
* fixed to style guide
* style fixes, refactoring
* delete image after reviews
put my functions from azureCredentialsManager into two new files: utils/azure/acrTools.ts, and commands/utils/quick-pick-azure.ts
Edited code based on Esteban's and Bin's reviews
* One last little change to delete image
* moved repository, azureimage, and getsubscriptions to the correct places within deleteImage
* changes from PR reviews on delete image
* fixed authentication issue, got rid of azureAccount property for repository and image
**on constructor for repository, azurecredentialsmanager was being recreated and thus couldn't find the azureAccount. For this reason, I got rid of the azureAccount property of the classes Repository and AzureImage. This bug may lead to future problems (Esteban and I couldn't see why it was happening)
* minor fixes deleteImage
* delete a parentheses
* copied previous push to acr into new pull-from-azure.ts file
* Estebanreyl/dev merge fixes (#43)
* Merge fixes to acquire latest telemetry items
* Updated to master AzureUtilityManager
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Rutusamai/list build tasks for each registry (#37)
* tslint updates, transfered from old branch
* updated icon
* Addressed PR comments- mostly styling/code efficiency
* Changed url to aka.ms link
* changed Error window to Info message for no build tasks in your registry
* Changed default sku and unified parsing resource group into a new method, getResourceGroup in acrTools.ts
* Changed build task icon
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* Julia/delete repository final (#49)
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* spacing
* final commit
* Cleaned code
* Added Telemetry
* Julia/delete registry final (#47)
Delete azure registry functionality added
Delete azure registry moved to branch off dev
Reorganized stye
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* added folder select
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* removed username and password from Azure Registry Node
* Clean up
* copied previous push to acr into new pull-from-azure.ts file
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* Clean up
* Working again after rebasing and resolving merge conflicts
* Updates and fixes
* Fixes from PR comments
-renamed loginCredentials functions
-added await to docker commands in image pull
-cleanup
* uncapitalize AzureRegistryNode
* Refactoring, prod.
* Flexible OSType
* Estebanreyl/ready for production (#55)
* began updating
* Reorganized create registry and delete azure image
* continued improvements
* Began updating login
* being credentials update
* further updates
* Finished updating, need to test functionality now
* Updated requests, things all work now
* Applied some nit fixes
* Updates to naming
* maintain UtilityManager standards
* Updated Prompts
* Updated imports and naming / standarized telemetry
* Added explorer refresh capabilities on delete/add
* Jackson/quick build dev (#46)
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* added folder select
* Updates and fixes
* Refactoring, prod.
* Flexible OSType
* added ID
* Move build to azure commands
* cleanup
* Relative dockerfile support
* Removed await, updating list in enumeration
* fixed chdir
* flexible ostype
* Rutusamai/Show Build Task properties (#70)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* removed run build task stuff
* cleanup
* addressed esteban's comments
* buildTask = context.task.name rather than label
* fixes from Bin's comments
* Merge branch 'dev' of https://github.com/AzureCR/vscode-docker into master4
* merge
* missed small changes
* Rutusamai/Run a Build Task (#71)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* run is working for right click
* run build task works through command pallette. added success notification
* removed show build task
* cleanup- matched quickpick buils task and tasknode withshow build task branch
* removed showTaskManager
* spacing
* outputChannel and null icon
* merge to update with dev
* Estebanreyl/build logs final (#72)
* "Merge branch 'estebanreyl/buildlogsWithAccesibility' of https://github.com/AzureCR/vscode-docker into estebanreyl/buildlogsWithAccesibility"
This reverts commit e645cbf5058c9bc838ee41a67cd6c5aee9945702, reversing
changes made to fc4a477220c7819c9249557ba0d7570f5d0c1e0c.
* Refactored and organized log view into readable components.
* moved storage
* Began incorporating icons
* Added icons
* Further standarization
* added logs
* Added download log capabilities
* Updated Copy
* Updated inner div size alignment
* Added resizing script
* header sort by is only clickable on text now
* fixed header table
* Fix minor display issues
* Identified filtering strategy
* Begin adding sorting
* Merge with dev
* Added proper filtering
* Nit loading improvements
* Added accesibility, key only behaviour
* accesibility retouches and enable right click from tasknode
* merges
* fix module name
* Adds streaming and command standarization (ext.ui) (#73)
* Adds streaming and command standarization (ext.ui)
* removed unecessary append lines
* small fixes
* Fix merge issues
* changes for ACR 3.0.0 (#80)
* This commit contains changes necessary for the
azure-arm-containerregistry 3.0.0
* Fixed PR feedback
* Run task fixed. Issue ID: 79
* missing changes added
* Fixing ACR run logs for Images
* Sajaya/top1 (#83)
* Query only 1 record for runs
* View Azure logs
* Refactoring build to run and buildTask to task
* Removed filter for top (#88)
* adding run yaml file
* Refactoring to run task file.
* fixing logs filter for images
* Last Update time Fixed
* Cleanup + refactoring delete image to untag image
* Adding delete ACR Image (delete digest)
* Changing text promt on right click to run ACR task file
* Update settings.json
* minor PR review fixes 1
* PR fixes 1
* Missed: change any to string
* merge clean up
* Schedule run code reduction + minor improvements
* ACR request Improvements
* Minor grammar fixes
2018-11-18 02:09:45 +03:00
|
|
|
let items: Item[] = uris.map(uri => createFileItem(rootFolder, uri));
|
2018-08-18 02:10:10 +03:00
|
|
|
if (items.length === 1) {
|
|
|
|
return items[0];
|
|
|
|
} else {
|
merge cleanup (#617)
* Added Azure Credentials Manager Singleton (#18)
* Added Azure Credentials Manager Singleton
* Added getResourceManagementClient
* Sorted Existing Create Registry ready for code review
* Added acquiring telemetry data for create registry
* broke up createnewresourcegroup method and fixed client use
Added try catch loop and awaited for resource group list again to check for duplicates with ResourceManagementClient
* Jackson esteban/unified client nit Fix (#24)
* Added Azure Credentials Manager Singleton
* Small Style Fixes
* Further Style fixes, added getResourceManagementClient
* Lazy Initialization Patches
* Enabled location selection
* Location request fixes
-Changed order of questions asked to user for better UX (location of new res group & location of new registry)
-Placeholder of location is display name view
* Refactor while loop for new res group
* Added SKU selection
* Quick fix- initializing array syntax
* Added specific error messages and comments
* Julia/delete image (#29)
* first fully functional version of delete through input bar AND right click
* refactored code to make it prettier!
* comments
* comments, added subscription function
* fixed to style guide
* style fixes, refactoring
* delete image after reviews
put my functions from azureCredentialsManager into two new files: utils/azure/acrTools.ts, and commands/utils/quick-pick-azure.ts
Edited code based on Esteban's and Bin's reviews
* One last little change to delete image
* moved repository, azureimage, and getsubscriptions to the correct places within deleteImage
* changes from PR reviews on delete image
* fixed authentication issue, got rid of azureAccount property for repository and image
**on constructor for repository, azurecredentialsmanager was being recreated and thus couldn't find the azureAccount. For this reason, I got rid of the azureAccount property of the classes Repository and AzureImage. This bug may lead to future problems (Esteban and I couldn't see why it was happening)
* minor fixes deleteImage
* delete a parentheses
* copied previous push to acr into new pull-from-azure.ts file
* Estebanreyl/dev merge fixes (#43)
* Merge fixes to acquire latest telemetry items
* Updated to master AzureUtilityManager
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Rutusamai/list build tasks for each registry (#37)
* tslint updates, transfered from old branch
* updated icon
* Addressed PR comments- mostly styling/code efficiency
* Changed url to aka.ms link
* changed Error window to Info message for no build tasks in your registry
* Changed default sku and unified parsing resource group into a new method, getResourceGroup in acrTools.ts
* Changed build task icon
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* Julia/delete repository final (#49)
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* spacing
* final commit
* Cleaned code
* Added Telemetry
* Julia/delete registry final (#47)
Delete azure registry functionality added
Delete azure registry moved to branch off dev
Reorganized stye
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* added folder select
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* removed username and password from Azure Registry Node
* Clean up
* copied previous push to acr into new pull-from-azure.ts file
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* Clean up
* Working again after rebasing and resolving merge conflicts
* Updates and fixes
* Fixes from PR comments
-renamed loginCredentials functions
-added await to docker commands in image pull
-cleanup
* uncapitalize AzureRegistryNode
* Refactoring, prod.
* Flexible OSType
* Estebanreyl/ready for production (#55)
* began updating
* Reorganized create registry and delete azure image
* continued improvements
* Began updating login
* being credentials update
* further updates
* Finished updating, need to test functionality now
* Updated requests, things all work now
* Applied some nit fixes
* Updates to naming
* maintain UtilityManager standards
* Updated Prompts
* Updated imports and naming / standarized telemetry
* Added explorer refresh capabilities on delete/add
* Jackson/quick build dev (#46)
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* added folder select
* Updates and fixes
* Refactoring, prod.
* Flexible OSType
* added ID
* Move build to azure commands
* cleanup
* Relative dockerfile support
* Removed await, updating list in enumeration
* fixed chdir
* flexible ostype
* Rutusamai/Show Build Task properties (#70)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* removed run build task stuff
* cleanup
* addressed esteban's comments
* buildTask = context.task.name rather than label
* fixes from Bin's comments
* Merge branch 'dev' of https://github.com/AzureCR/vscode-docker into master4
* merge
* missed small changes
* Rutusamai/Run a Build Task (#71)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* run is working for right click
* run build task works through command pallette. added success notification
* removed show build task
* cleanup- matched quickpick buils task and tasknode withshow build task branch
* removed showTaskManager
* spacing
* outputChannel and null icon
* merge to update with dev
* Estebanreyl/build logs final (#72)
* "Merge branch 'estebanreyl/buildlogsWithAccesibility' of https://github.com/AzureCR/vscode-docker into estebanreyl/buildlogsWithAccesibility"
This reverts commit e645cbf5058c9bc838ee41a67cd6c5aee9945702, reversing
changes made to fc4a477220c7819c9249557ba0d7570f5d0c1e0c.
* Refactored and organized log view into readable components.
* moved storage
* Began incorporating icons
* Added icons
* Further standarization
* added logs
* Added download log capabilities
* Updated Copy
* Updated inner div size alignment
* Added resizing script
* header sort by is only clickable on text now
* fixed header table
* Fix minor display issues
* Identified filtering strategy
* Begin adding sorting
* Merge with dev
* Added proper filtering
* Nit loading improvements
* Added accesibility, key only behaviour
* accesibility retouches and enable right click from tasknode
* merges
* fix module name
* Adds streaming and command standarization (ext.ui) (#73)
* Adds streaming and command standarization (ext.ui)
* removed unecessary append lines
* small fixes
* Fix merge issues
* changes for ACR 3.0.0 (#80)
* This commit contains changes necessary for the
azure-arm-containerregistry 3.0.0
* Fixed PR feedback
* Run task fixed. Issue ID: 79
* missing changes added
* Fixing ACR run logs for Images
* Sajaya/top1 (#83)
* Query only 1 record for runs
* View Azure logs
* Refactoring build to run and buildTask to task
* Removed filter for top (#88)
* adding run yaml file
* Refactoring to run task file.
* fixing logs filter for images
* Last Update time Fixed
* Cleanup + refactoring delete image to untag image
* Adding delete ACR Image (delete digest)
* Changing text promt on right click to run ACR task file
* Update settings.json
* minor PR review fixes 1
* PR fixes 1
* Missed: change any to string
* merge clean up
* Schedule run code reduction + minor improvements
* ACR request Improvements
* Minor grammar fixes
2018-11-18 02:09:45 +03:00
|
|
|
const res: vscode.QuickPickItem = await ext.ui.showQuickPick(items, { placeHolder: message });
|
2018-08-18 02:10:10 +03:00
|
|
|
return <Item>res;
|
|
|
|
}
|
2017-06-06 03:55:05 +03:00
|
|
|
}
|
2016-12-08 22:05:00 +03:00
|
|
|
}
|
2016-10-20 07:03:04 +03:00
|
|
|
|
2018-09-01 04:27:55 +03:00
|
|
|
export async function buildImage(actionContext: IActionContext, dockerFileUri: vscode.Uri | undefined): Promise<void> {
|
2017-11-09 01:55:45 +03:00
|
|
|
const configOptions: vscode.WorkspaceConfiguration = vscode.workspace.getConfiguration('docker');
|
|
|
|
const defaultContextPath = configOptions.get('imageBuildContextPath', '');
|
2018-08-18 02:10:10 +03:00
|
|
|
let dockerFileItem: Item | undefined;
|
2017-11-09 01:55:45 +03:00
|
|
|
|
2018-10-10 00:01:16 +03:00
|
|
|
let rootFolder: vscode.WorkspaceFolder = await quickPickWorkspaceFolder('To build Docker files you must first open a folder or workspace in VS Code.');
|
2017-06-06 03:55:05 +03:00
|
|
|
|
2018-08-18 02:10:10 +03:00
|
|
|
while (!dockerFileItem) {
|
merge cleanup (#617)
* Added Azure Credentials Manager Singleton (#18)
* Added Azure Credentials Manager Singleton
* Added getResourceManagementClient
* Sorted Existing Create Registry ready for code review
* Added acquiring telemetry data for create registry
* broke up createnewresourcegroup method and fixed client use
Added try catch loop and awaited for resource group list again to check for duplicates with ResourceManagementClient
* Jackson esteban/unified client nit Fix (#24)
* Added Azure Credentials Manager Singleton
* Small Style Fixes
* Further Style fixes, added getResourceManagementClient
* Lazy Initialization Patches
* Enabled location selection
* Location request fixes
-Changed order of questions asked to user for better UX (location of new res group & location of new registry)
-Placeholder of location is display name view
* Refactor while loop for new res group
* Added SKU selection
* Quick fix- initializing array syntax
* Added specific error messages and comments
* Julia/delete image (#29)
* first fully functional version of delete through input bar AND right click
* refactored code to make it prettier!
* comments
* comments, added subscription function
* fixed to style guide
* style fixes, refactoring
* delete image after reviews
put my functions from azureCredentialsManager into two new files: utils/azure/acrTools.ts, and commands/utils/quick-pick-azure.ts
Edited code based on Esteban's and Bin's reviews
* One last little change to delete image
* moved repository, azureimage, and getsubscriptions to the correct places within deleteImage
* changes from PR reviews on delete image
* fixed authentication issue, got rid of azureAccount property for repository and image
**on constructor for repository, azurecredentialsmanager was being recreated and thus couldn't find the azureAccount. For this reason, I got rid of the azureAccount property of the classes Repository and AzureImage. This bug may lead to future problems (Esteban and I couldn't see why it was happening)
* minor fixes deleteImage
* delete a parentheses
* copied previous push to acr into new pull-from-azure.ts file
* Estebanreyl/dev merge fixes (#43)
* Merge fixes to acquire latest telemetry items
* Updated to master AzureUtilityManager
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Rutusamai/list build tasks for each registry (#37)
* tslint updates, transfered from old branch
* updated icon
* Addressed PR comments- mostly styling/code efficiency
* Changed url to aka.ms link
* changed Error window to Info message for no build tasks in your registry
* Changed default sku and unified parsing resource group into a new method, getResourceGroup in acrTools.ts
* Changed build task icon
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* Julia/delete repository final (#49)
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* deleteRepo moved over to branch off dev
* Got rid of unnecessary code, fully functioning!
* spacing
* final commit
* Cleaned code
* Added Telemetry
* Julia/delete registry final (#47)
Delete azure registry functionality added
Delete azure registry moved to branch off dev
Reorganized stye
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* added folder select
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* removed username and password from Azure Registry Node
* Clean up
* copied previous push to acr into new pull-from-azure.ts file
* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries
* Split the loginCredentials function, added docker login and docker pull and telemetry actions
* Finished pull from azure right click feature
* deleted push to azure
* Clean up
* Working again after rebasing and resolving merge conflicts
* Updates and fixes
* Fixes from PR comments
-renamed loginCredentials functions
-added await to docker commands in image pull
-cleanup
* uncapitalize AzureRegistryNode
* Refactoring, prod.
* Flexible OSType
* Estebanreyl/ready for production (#55)
* began updating
* Reorganized create registry and delete azure image
* continued improvements
* Began updating login
* being credentials update
* further updates
* Finished updating, need to test functionality now
* Updated requests, things all work now
* Applied some nit fixes
* Updates to naming
* maintain UtilityManager standards
* Updated Prompts
* Updated imports and naming / standarized telemetry
* Added explorer refresh capabilities on delete/add
* Jackson/quick build dev (#46)
* added acrbuild stuff
* added acrbuild stuff
* Update to match utility manager class
* Added quick pick for selecting resource group and registry
* clean
* Added subscription support
* utility bug fix
* added folder select
* Updates and fixes
* Refactoring, prod.
* Flexible OSType
* added ID
* Move build to azure commands
* cleanup
* Relative dockerfile support
* Removed await, updating list in enumeration
* fixed chdir
* flexible ostype
* Rutusamai/Show Build Task properties (#70)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* removed run build task stuff
* cleanup
* addressed esteban's comments
* buildTask = context.task.name rather than label
* fixes from Bin's comments
* Merge branch 'dev' of https://github.com/AzureCR/vscode-docker into master4
* merge
* missed small changes
* Rutusamai/Run a Build Task (#71)
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show build task works through input bar
* added run build task
* Right click not working on BuildTaskNode. Works through command palette
* quick fixes
* quick fix to enable context menu on buildTaskNode
* comamnd not sending via right click
* working from right click now. trying to do show in json
* Acquire properties in JSON format internally, works
* Now shows organized task jsons on right click
* import
* to do
* issues with getImagesByRepository
* try catch build step
* acrTools
* small refactor
* Show is working- final
* run is working for right click
* run build task works through command pallette. added success notification
* removed show build task
* cleanup- matched quickpick buils task and tasknode withshow build task branch
* removed showTaskManager
* spacing
* outputChannel and null icon
* merge to update with dev
* Estebanreyl/build logs final (#72)
* "Merge branch 'estebanreyl/buildlogsWithAccesibility' of https://github.com/AzureCR/vscode-docker into estebanreyl/buildlogsWithAccesibility"
This reverts commit e645cbf5058c9bc838ee41a67cd6c5aee9945702, reversing
changes made to fc4a477220c7819c9249557ba0d7570f5d0c1e0c.
* Refactored and organized log view into readable components.
* moved storage
* Began incorporating icons
* Added icons
* Further standarization
* added logs
* Added download log capabilities
* Updated Copy
* Updated inner div size alignment
* Added resizing script
* header sort by is only clickable on text now
* fixed header table
* Fix minor display issues
* Identified filtering strategy
* Begin adding sorting
* Merge with dev
* Added proper filtering
* Nit loading improvements
* Added accesibility, key only behaviour
* accesibility retouches and enable right click from tasknode
* merges
* fix module name
* Adds streaming and command standarization (ext.ui) (#73)
* Adds streaming and command standarization (ext.ui)
* removed unecessary append lines
* small fixes
* Fix merge issues
* changes for ACR 3.0.0 (#80)
* This commit contains changes necessary for the
azure-arm-containerregistry 3.0.0
* Fixed PR feedback
* Run task fixed. Issue ID: 79
* missing changes added
* Fixing ACR run logs for Images
* Sajaya/top1 (#83)
* Query only 1 record for runs
* View Azure logs
* Refactoring build to run and buildTask to task
* Removed filter for top (#88)
* adding run yaml file
* Refactoring to run task file.
* fixing logs filter for images
* Last Update time Fixed
* Cleanup + refactoring delete image to untag image
* Adding delete ACR Image (delete digest)
* Changing text promt on right click to run ACR task file
* Update settings.json
* minor PR review fixes 1
* PR fixes 1
* Missed: change any to string
* merge clean up
* Schedule run code reduction + minor improvements
* ACR request Improvements
* Minor grammar fixes
2018-11-18 02:09:45 +03:00
|
|
|
let resolvedItem: Item | undefined = await resolveFileItem(rootFolder, dockerFileUri, DOCKERFILE_GLOB_PATTERN, 'Choose a Dockerfile to build the image.');
|
2018-08-18 02:10:10 +03:00
|
|
|
if (resolvedItem) {
|
|
|
|
dockerFileItem = resolvedItem;
|
|
|
|
} else {
|
|
|
|
let msg = "Couldn't find a Dockerfile in your workspace. Would you like to add Docker files to the workspace?";
|
|
|
|
actionContext.properties.cancelStep = msg;
|
|
|
|
await ext.ui.showWarningMessage(msg, DialogResponses.yes, DialogResponses.cancel);
|
|
|
|
actionContext.properties.cancelStep = undefined;
|
|
|
|
await vscode.commands.executeCommand('vscode-docker.configure');
|
|
|
|
// Try again
|
|
|
|
}
|
|
|
|
}
|
2017-12-04 13:42:15 +03:00
|
|
|
|
2018-08-18 02:10:10 +03:00
|
|
|
let contextPath: string = dockerFileItem.relativeFolderPath;
|
2018-07-18 00:12:15 +03:00
|
|
|
if (defaultContextPath && defaultContextPath !== '') {
|
2017-11-09 01:55:45 +03:00
|
|
|
contextPath = defaultContextPath;
|
|
|
|
}
|
2018-09-01 04:36:39 +03:00
|
|
|
let absFilePath: string = path.join(rootFolder.uri.fsPath, dockerFileItem.relativeFilePath);
|
|
|
|
let dockerFileKey = `buildTag_${absFilePath}`;
|
|
|
|
let prevImageName: string | undefined = ext.context.globalState.get(dockerFileKey);
|
2018-09-01 04:57:32 +03:00
|
|
|
let suggestedImageName: string;
|
2016-10-25 02:40:34 +03:00
|
|
|
|
2018-09-01 04:36:39 +03:00
|
|
|
if (!prevImageName) {
|
|
|
|
// Get imageName based on name of subfolder containing the Dockerfile, or else workspacefolder
|
2018-09-01 04:57:32 +03:00
|
|
|
suggestedImageName = path.basename(dockerFileItem.relativeFolderPath).toLowerCase();
|
|
|
|
if (suggestedImageName === '.') {
|
|
|
|
suggestedImageName = path.basename(rootFolder.uri.fsPath).toLowerCase();
|
2018-09-01 04:36:39 +03:00
|
|
|
}
|
|
|
|
|
2018-09-01 04:57:32 +03:00
|
|
|
suggestedImageName += ":latest"
|
2018-09-01 04:36:39 +03:00
|
|
|
} else {
|
2018-09-01 04:57:32 +03:00
|
|
|
suggestedImageName = prevImageName;
|
2018-09-01 02:19:53 +03:00
|
|
|
}
|
2018-09-01 04:36:39 +03:00
|
|
|
|
2018-09-05 09:23:07 +03:00
|
|
|
// Temporary work-around for vscode bug where valueSelection can be messed up if a quick pick is followed by a showInputBox
|
|
|
|
await delay(500);
|
|
|
|
|
2018-09-01 04:57:32 +03:00
|
|
|
addImageTaggingTelemetry(actionContext, suggestedImageName, '.before');
|
|
|
|
const imageName: string = await getTagFromUserInput(suggestedImageName, !prevImageName);
|
|
|
|
addImageTaggingTelemetry(actionContext, imageName, '.after');
|
|
|
|
|
|
|
|
await ext.context.globalState.update(dockerFileKey, imageName);
|
2018-09-01 04:36:39 +03:00
|
|
|
|
2018-08-10 01:26:31 +03:00
|
|
|
const terminal: vscode.Terminal = ext.terminalProvider.createTerminal('Docker');
|
2018-09-01 04:57:32 +03:00
|
|
|
terminal.sendText(`docker build --rm -f "${dockerFileItem.relativeFilePath}" -t ${imageName} ${contextPath}`);
|
2017-06-06 03:55:05 +03:00
|
|
|
terminal.show();
|
2018-01-18 02:32:20 +03:00
|
|
|
}
|