Граф коммитов

1633 Коммитов

Автор SHA1 Сообщение Дата
Alex Yang [MSFT] 578759fb8a
Added Stats Output when doing Docker Prune (#4110)
* added base changes

* updated package lock

* Fix bug

* Update package

---------

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>
2023-10-20 14:59:03 +00:00
João Norberto de Souza Junior 4a343b5608
Change run commands to use imageId instead of tag (#4112)
* Change run commands to use imageId instead of name

* changes proposed by bwateratmsft

* Update src/commands/images/runImage.ts

Co-authored-by: Alex Yang [MSFT] <59073590+alexyaang@users.noreply.github.com>

* Update src/commands/selectCommandTemplate.ts

Co-authored-by: Alex Yang [MSFT] <59073590+alexyaang@users.noreply.github.com>

---------

Co-authored-by: Alex Yang [MSFT] <59073590+alexyaang@users.noreply.github.com>
2023-10-18 09:00:45 -04:00
Alex Yang [MSFT] c68fa17f90
Post 1.27.0 Release Version Bump (#4125)
* bumped version post release

* Update package-lock.json

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* Update package-lock.json

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* Update package.json

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

---------

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>
2023-10-17 11:24:50 -04:00
Alex Yang [MSFT] 0a940ea6ca
bump registry version to 0.1.5 (#4122) 2023-10-14 20:59:35 -04:00
Alex Yang [MSFT] 86c3ed5117
bump scaffolded flask version to 3.0.0 (#4121) 2023-10-13 14:30:59 -04:00
Alex Yang [MSFT] 444eedb47d
bumped version (#4118) 2023-10-12 16:47:45 -04:00
Brandon Waterloo [MSFT] 76e2b31d03
Update auth package (#4114) 2023-10-11 14:05:45 -04:00
Brandon Waterloo [MSFT] 295d81ca1e
Minor changelog updates and `npm audit fix` (#4113) 2023-10-11 10:58:31 -04:00
Alex Yang [MSFT] 74bc9a562e
Prep for v1.27.0 Release (#4109)
* updated changelog, bumped version

* edited changelog
2023-10-05 13:37:42 -04:00
Alex Yang [MSFT] 26b89f5595
Registries Data Migration (#4106)
* basic implementation of registries data migration

* added more comments

* fix typo

* refresh tree after registering

* to TODO
2023-10-03 11:19:08 -04:00
Alex Yang [MSFT] 007bc7918e
Throw Better Error when running registries commands when No Registries are Connected (#4101)
* fix genericV2 root not showing up when adding registry

* throw good error when no registries are connected

* use hasTrackedRegistries function

* use npm dot com
2023-09-27 09:41:37 -04:00
Alex Yang [MSFT] f53de2c6b1
added back connect registry tree item (#4095) 2023-09-25 12:39:17 -04:00
Alex Yang [MSFT] 36d83464a9
Minor Registry UX enhancements (#4089)
* sort registry items by alphabetical order

* show not available message when there no registries provider available

* add prompt for registry provider selection

* make sort more robust

* use package from npm com
2023-09-22 16:01:49 -04:00
Alex Yang [MSFT] 1ba55e1c6a
added chaining operator to registry (#4088) 2023-09-22 09:44:00 -04:00
Alex Yang [MSFT] 8da7673600
remove hard coded ports (#4081) 2023-09-21 12:57:31 -04:00
Alex Yang [MSFT] f5e45c63dd
Registries V2 (#4026)
* Registries V2 (#4021)

* saving progress

* added context values for copy full tag

* added back copy remote image digest

* comment out commands that are not implemented yet

* added disconnext registry function back

* small fixes to adjust to new changes

* Made Some ACR Commands Work (#4027)

* adjusted scheduleRunReuqest to work with new registries tree

* delete azure repository command implementation

* actually added back delete azure repository

* added back delete Azure Registry command

* changed registry tree util file name to be more general

* added openInAzurePortalCommand

* Added Back `createAzureRegistry` command (#4029)

* adjusted scheduleRunReuqest to work with new registries tree

* delete azure repository command implementation

* actually added back delete azure repository

* added back delete Azure Registry command

* changed registry tree util file name to be more general

* added openInAzurePortalCommand

* added back create azure registry command

* move createAzureClient to azureUtils

* Added More Commands Back (#4031)

* adjusted scheduleRunReuqest to work with new registries tree

* delete azure repository command implementation

* actually added back delete azure repository

* added back delete Azure Registry command

* changed registry tree util file name to be more general

* added openInAzurePortalCommand

* added back create azure registry command

* move createAzureClient to azureUtils

* added viewAzureProperties command back (partially)

* small tweak to make build image in azure work

* added untag azure image commad

* added logout of docker cli command

* add case sensitivity operator to be consistent

* Update src/tree/registries/Azure/AzureRegistryDataProvider.ts

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* added void

* removed symbol as it already exists

---------

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* Added Back Open Docker Hub Item in Browser (#4033)

* added view docker hub item in browser command

* updated npm package

* Added More Commands Back (#4031)

* adjusted scheduleRunReuqest to work with new registries tree

* delete azure repository command implementation

* actually added back delete azure repository

* added back delete Azure Registry command

* changed registry tree util file name to be more general

* added openInAzurePortalCommand

* added back create azure registry command

* move createAzureClient to azureUtils

* added viewAzureProperties command back (partially)

* small tweak to make build image in azure work

* added untag azure image commad

* added logout of docker cli command

* add case sensitivity operator to be consistent

* Update src/tree/registries/Azure/AzureRegistryDataProvider.ts

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* added void

* removed symbol as it already exists

---------

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* minor tweak to avoid index out of bounds

* use built in methods to determine the type of item

---------

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* Added Back `pushImage()` (#4034)

* make pushImage work

* added getAllRegistries command

* added getLoginInformation()

* account for cases where registry in undefined

* added filtering to make get all registries more optima

* added logic to filter github repositories

* Added Back Azure Deploy to ACA & Azure Deploy to AAS (#4038)

* added back basic implementation of deploy ACA

* saving progress

* added step for selecting subscriptions

* small tweaks

* progress on deploy image to azure app service

* improved azure subscription selection experience

* actually made deploy image to AAS work

* remove accidetal change to settings.json

* fix small mistake

* fixed more mistakes

* fix more mistakes

* fixed even more mistakes...

* Implemented Delete Remote Image for GenericV2  (#4039)

* added logic for copy remote imgage digest

* added back delete image

* refined logic for delete image

* fixed pushImage

* reverted changes to registryExperience

* tag logic for GitHub

* be able to debug github image

* added back skipIfOne flag

* Added Untag Image Command for Azure RDP (#4041)

* adjusted context values

* added untag Image

* remove github option for delete tag

* commtag -> v2tag

* slighty changed context values

* Improve UX for Connecting & Disconnecting Generic V2 Registries (#4043)

* added remove tracked registry command

* added command to add generic v2 registry

* Update package.nls.json

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* Update package.nls.json

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

---------

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* added logic for reconnect (#4045)

* Cleanup Registries Implementation (#4046)

* fixed genericV2 pull image bug

* improved utils to use outside methods

* enable copyImageDigest for all v2 registries

* removed run task & did TODOs

* did TODOs

* use baseUrl

* polished up contextValues

* fixed push image error for dockerhub

* removed azure account listener

* actually removed AzureAccountExtensionListener

* made minor adjustments based in brandon's comments

* use azutils for open in azure portal

* Fix subscription icon

* Small fix

* minor changes to imports

* Remove GitHub package transitive dependency

* Version was wrong

* allow delete image command show up on commontag

* fix miake in deleteImage

* simplified logic in pushImage (#4062)

* simplify logic in deploy to Azure app service (#4063)

* handle contextValueExperience edge case

* changed isWrappedItem function name to be more specific

* Added fire soon function to AzureRDP (#4066)

* added fire soon

* clear time out

* Change fireSoon to take callback function (#4071)

* change firesoon to take callback function

* use RDP label when determining type of registry

* use new RegistryV2RequestOptions for azure requests

* Improve Registry Experience & Simplify Context Values (#4076)

* added implementation

* added comments

* use RegistryQuickPickStep for everything

* fix regex

* fix viewproperties context value package json

* remove unnecessary method

* added back necessary logic

* Commit current progress

* Commit current progress

* adjust package.json

* fix azure typo

* preserve existing additional context value

* make regex more robust

---------

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* remove unnecessary comment

* uploaded & changed azext package version

* Asynchronously fetch createdAt info (#4074)

* Add registry extensibility capability (#4061)

* remove generic v2 root if it's the last one

* get registries package from npm

* Trigger Build

* actually get npm from npm org

* update azext util package to use npm org

---------

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>
2023-09-21 09:16:44 -04:00
Alex Yang [MSFT] 80de0874c8
bump version (#4077) 2023-09-19 12:55:02 -04:00
Remy Suen fe82b631d0
Update Dockerfile language server to 0.11.0 (#4065)
This update adds support for a few new flags that have been added to
Dockerfile so that they no longer get flagged as errors. The other big
change is the introduction of a comment that can be inserted into the
Dockerfile to instruct the linter to not flag something as an error.
While most errors can be ignored this way, clearly fatal errors that
suggest the Dockerfile is completely broken cannot be ignored.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
2023-09-19 12:03:11 -04:00
Alex Yang [MSFT] 97fa469cc9
Release Prep for 1.26.1 (#4070)
* bumped version

* added changelog

* updated NOTICE
2023-09-13 12:33:13 -04:00
Alex Yang [MSFT] 888c504bdd
Remove `-preview` in Dockerfile Scaffolding for .NET 8 RC release (#4042)
* added new image convention for .NET 8 RC release

* added constant
2023-09-13 10:07:37 -04:00
Alex Yang [MSFT] 24b465d920
only scaffold platform flag for linux containers (#4069) 2023-09-13 10:02:18 -04:00
Tobias Hernstig fe5eae7868
Support multiple .dockerignore files for language id discovery (#4060)
* Support multiple .dockerignore files for language id discovery

Update package.json with a 'filenamePatterns' of "*.dockerignore"
since that is the convention to use when using multiple .dockerignore
files when having multiple Dockerfiles.

* Remove accidental additions of .dockerignore files
2023-09-06 09:25:50 -04:00
Alex Yang [MSFT] ab0c8e321e
use native platform for debug and release as amd64 (#4050) 2023-08-30 14:56:08 -04:00
Brandon Waterloo [MSFT] fedf5bad32
Use new container client package (#3982) 2023-07-25 12:39:28 -04:00
Alex Yang [MSFT] efa75c9bed
Bump version to 1.26.5 alpha (#4010)
* Bump version to 1.26.5 alpha

* removed extra space
2023-07-17 11:44:41 -04:00
Brandon Waterloo [MSFT] 77cc028a19
`npm audit fix` (#4004) 2023-07-12 17:48:16 +00:00
Alex Yang [MSFT] fd9ca17b06
Changed buildoption name & added .NET SDK discoveribility on other .NET files (#4003) 2023-07-12 13:42:44 -04:00
dependabot[bot] f6de6c4524
Bump semver from 7.5.0 to 7.5.2 (#4000)
Bumps [semver](https://github.com/npm/node-semver) from 7.5.0 to 7.5.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.5.0...v7.5.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-12 08:54:14 -04:00
Alex Yang [MSFT] 20c4badbb5
.NET SDK Build Prompt For Project File Every Time (#3993)
* use image name property supported by preview 5 instead of 6

* no more static variables

* Get container & image name from msbuild

* actually get image name from target file

* minor changes to clean up PR

* small tweak

* simplified error handling

* simplified logic for getting app project

* actually make ifer project file logic simpler

* convert project properties into interface for future expandibility

* updated nls

* minor changes to naming inside package.json

* changed caching to stack variable

* remove ContainerImageName arg since we're relying on msbuild

* removed inferProjPath as it's unnecessary
2023-07-11 17:21:21 -04:00
Alex Yang [MSFT] 4e8a013921
Completed Pre-release items for 1.26 release (#3999)
* Bumped version & edited changelog

* fixed typo in changelog

* added notice.html

* Updated changlog to display issues intead of PRs
2023-07-10 16:35:00 -04:00
Brandon Waterloo [MSFT] 463d48c9dc
Update changelog from rel/1.25.2 (#3998) 2023-07-10 09:06:15 -07:00
Alex Yang [MSFT] 2f9868257e
Allow user to pick project to debug for .NET SDK Build (#3986)
* removed docker install logic

* added newest aka.ms links

* added tree item in help tree view

* added support for multi projects

* Disable PR trigger in pipeline (#3979)

* removed docker install logic

* added newest aka.ms links

* added tree item in help tree view

* removed pre-launch task and added buildWithSdk flag

* infer csproj from scaffolded appProjects

* cleaned up changes

* call optional method only if it exists

* added support for .fsproj and .vbproj

* got rid of memento, used static variables instead

* only expose ports if project is a webapp

* use new image namem flag in dotnet publish

* added json schema for run task

* split DockerPlatformHelper into 2

* simplified logic to determine net sdk app

* added comments to explain msbuild properties

* added polymorphism to remove sdk logic from netCore

* removed vbproj for now as it requires further investigation

* added better error handling

* update error message

* revised folder passing implementation

* added override keywords for readability

* removed unnecessary provide task logic

* added logic to normalize app Project based on Docker OS

* added check for no csharp extension installed

* added check to handle undefined additionalProperties

* utilize pathNormalize

* uses current docker os in debugging

* actually uses current docker os in debugging

* updated comment

---------

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>
Co-authored-by: alexyaang <>
2023-06-29 12:34:31 -04:00
Brandon Waterloo [MSFT] 72bee677e9
Enable only `revealFileInOS` command for container tooltips (#3983) 2023-06-22 14:45:43 -07:00
Brandon Waterloo [MSFT] c09ccfbef9
Disable PR trigger in pipeline (#3979) 2023-06-16 22:11:52 -04:00
Alex Yang [MSFT] fcabe56b7b
Changed Docker Desktop Installation to Opening Installation link (#3976)
* removed docker install logic

* added newest aka.ms links

* added tree item in help tree view
2023-06-16 10:16:38 -04:00
Alex Yang [MSFT] f6b648390a
Support .NET SDK Container Build (#3960)
* Experimental Base Structure

* register new task provider

* added build options for DotnetSdk

* removed redundent fields in NetCoreSdkBuildOptions

* added json schema

* basci working implementation of task provider

* reversed unnecessary commits

* added dotnet specific util methods

* fixed dotnet CLI flags

* made code more organized

* organiized files into new folder

* added helper class

* combined build & run into one task

* adddded working version of  run command

* added mounts to run arg

* added ambient launch task

* working version of ambient launch task

* added prompt for docker debugger on csharp languag

* stored user image build choices

* added auto .csproj selection & refactored code

* added debug helper

* small tweaks to handle null cases

* add appOutput override to fix dotnet project name bug

* fixed image not running if foldername has special chars

* changed task name and altered schema

* determine helper from prelaunchtask instead of `platform`

* move helper methods to taskhelper

* cleaned up unused comments & method

* made NetTaskHelper more readable

* changed momento name to more detailed

* changed targets to find SDK Container path

* added method to check for sdk container builds

* set git ignore case to false

* Delete netContainerBuild.ts

* added error checking

* added error checking

* Changed const to pascal case & use pre-defined options

* removed redundent duplication method

* removed util class that is unnecessary

* added expose field inside RunContainerCommandOptions

* converted netSdkHelper class into methods only

* minor change to make debugger mount more flexible

* simplified logic for mounting debugger

* changed naming of expose ports

* updated if condition for checking for empty debug config

* renamed helper methods in sdk task utils
2023-06-15 15:53:50 -04:00
Alex Yang [MSFT] 9d6f275d92
gets rid of the extra 'p' (#3974) 2023-06-14 16:31:05 -04:00
Remy Suen 81c873db59
Update Dockerfile language server to 0.10.1 (#3955)
* Update Dockerfile language server to 0.10.0

This update adds heredoc support for COPY so that it does not try to
format it or lint it for Dockerfile-specific errors. The update also
includes a fix caused by quotes in comments that can cause the semantic
highlighter to get into an infinite loop.

Signed-off-by: Remy Suen <remy.suen@gmail.com>

* Update the language server to 0.10.1

The new version includes a fix for parsing files with a UTF-8 BOM
header.

Signed-off-by: Remy Suen <remy.suen@gmail.com>

* Update the language server to 0.10.2

This newer version includes various fixes related to multiline
instructions with string content and CRLF newline delimiters.

Signed-off-by: Remy Suen <remy.suen@gmail.com>

---------

Signed-off-by: Remy Suen <remy.suen@gmail.com>
2023-06-01 08:51:33 -04:00
Brandon Waterloo [MSFT] c90708fd9c
Use updated pipelines that work on monorepos (#3957) 2023-05-31 12:13:21 -04:00
Brandon Waterloo [MSFT] 8ae2777e1b
Ignore unneeded file (#3952) 2023-05-26 08:57:32 -07:00
Ian King'ori 2ec89e7d92
Add support for editing files in process isolated windows containers (#3948)
* Add support for editing files in Process Isolated Windows Containers

* Add container isolation mode to inspect containers info

* move check container isolation logic out of DockerClientBase
2023-05-25 09:40:36 -04:00
Brandon Waterloo [MSFT] c77c14fa57
Cherry-pick Update version, changelog for 1.25.1 (#3943) (#3944) 2023-05-16 14:44:33 -04:00
Alex Yang [MSFT] 2f52f84b3a
Scaffold tasks with native architecture (#3931)
* scaffold tasks with native architecture

* specified return architecture

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* moved util file to appropriate location

* moved more util functions to appropriate folder

* added stricter type cheking

* refactored switch statements

* refactored more switch statements

* removed l10n

* slightly changes json schema

* Bump yaml from 2.2.1 to 2.2.2 (#3916)

Bumps [yaml](https://github.com/eemeli/yaml) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](https://github.com/eemeli/yaml/compare/v2.2.1...v2.2.2)

---
updated-dependencies:
- dependency-name: yaml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add back onLanguage:dockerfile activation event (#3928)

* Add `SUPPORT.md` file (#3929)

* Add `SUPPORT.md` file

* Update SUPPORT.md

* Revert back to normal ARM auth package (#3930)

* moved util file to appropriate location

* moved more files to appropriate locations

* Separate task and client logic

* better descriptions

* added support for more Cpu Archs

* corrected suggested list

* added OS type to code more organized

* redid imports to separate client and task

* converted util method to Docker CLI Arg

* revert advanced type declaration to simpler form

* minor changes to naming

* removed util file

* edited json schema

* Update src/runtimes/docker/utils/normalizeContainerOS.ts

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* handle edge cases with util method

* simplified json schema

* tweaked file layout

* use util in arg

* Update src/runtimes/docker/utils/normalizeContainerOS.ts

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* Update src/runtimes/docker/utils/getNativeArchitecture.ts

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* Update src/runtimes/docker/contracts/ContainerClient.ts

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* making getNativeArchitecture more robust

* added comments to avoid confusion

* small tweak to normalizePlatform

* exported utils and imported them

* handle more os edge cases

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Stackie Jia <jsq2627@gmail.com>
2023-05-11 13:29:13 -04:00
Brandon Waterloo [MSFT] 95a58cddf4
Use shared ADO and GitHub pipelines (#3938) 2023-05-11 13:07:54 -04:00
Brandon Waterloo [MSFT] ffca12e4bb
Selectively disable features the YAML extension provides (#3934) 2023-05-11 09:45:09 -07:00
Brandon Waterloo [MSFT] 53ab512ea8
Add GitHub Action (#3935) 2023-05-09 07:54:17 -07:00
Brandon Waterloo [MSFT] f2b8ef9eae
Revert back to normal ARM auth package (#3930) 2023-05-04 09:34:52 -04:00
Brandon Waterloo [MSFT] 700ead34a5
Add `SUPPORT.md` file (#3929)
* Add `SUPPORT.md` file

* Update SUPPORT.md
2023-05-04 09:25:37 -04:00
Stackie Jia 008d1c7c17
Add back onLanguage:dockerfile activation event (#3928) 2023-05-04 10:50:31 +00:00
dependabot[bot] 9b50312aa8
Bump yaml from 2.2.1 to 2.2.2 (#3916)
Bumps [yaml](https://github.com/eemeli/yaml) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](https://github.com/eemeli/yaml/compare/v2.2.1...v2.2.2)

---
updated-dependencies:
- dependency-name: yaml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-04 06:47:33 -04:00