-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add wslc login, wslc logout, and wslc push commands for registry authentication
#40173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kvega005
wants to merge
86
commits into
microsoft:feature/wsl-for-apps
Choose a base branch
from
kvega005:user/kevinve/wslc-login
base: feature/wsl-for-apps
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 79 commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
7d41e66
Add local registry, auth, and push image
kvega005 638ebfa
Fix test
kvega005 7fd4026
delete cleanup registry storage
kvega005 1fdb1b2
Do not use volume
kvega005 15d30b6
Merge remote-tracking branch 'origin/feature/wsl-for-apps' into user/…
kvega005 35e6322
Undo entry point fix (getting checked in seperately)
kvega005 b278c0a
undo entry point fix
kvega005 b988783
Fix formatting
kvega005 783ae7b
Address copilot comment
kvega005 ead90fc
Use packaged wslc-registry
kvega005 ce78d51
Merge branch 'feature/wsl-for-apps' into user/kevinve/registry
kvega005 5156db5
Address copilot comments
kvega005 31b5ad5
Address more copilot comments
kvega005 4cfd98c
Merge branch 'user/kevinve/registry' of https://github.com/kvega005/W…
kvega005 6305c58
Fix push and Pulll tests
kvega005 22cb648
Fix formatting
kvega005 3a0ba44
Merge branch 'feature/wsl-for-apps' into user/kevinve/registry
kvega005 83b39f2
Address suggestion
kvega005 a17819e
Address suggestions
kvega005 ba6c3de
Merge branch 'user/kevinve/registry' of https://github.com/kvega005/W…
kvega005 e329ac7
address suggestions
kvega005 868f69e
Merge branch 'feature/wsl-for-apps' into user/kevinve/registry
kvega005 3256f5d
Address copilot comments
kvega005 2d4dce9
Merge branch 'user/kevinve/registry' of https://github.com/kvega005/W…
kvega005 9177765
Remove wslc local registry
kvega005 0fa5505
formatting fix
kvega005 7b41634
Add script and docker file to generate test images.
kvega005 aaed20e
Address base64 encode feedback
kvega005 65aed10
Add Auth to SDK
kvega005 adab0ce
remove unneeded code
kvega005 3d0bad5
Address custom headers suggestion
kvega005 10491ee
Make regitsry auth required
kvega005 404a05e
Nit update script
kvega005 965f832
Merge branch 'feature/wsl-for-apps' into user/kevinve/registry
kvega005 2f35e77
Fix formatting
kvega005 71081bb
Update comment
kvega005 1734d51
Merge branch 'feature/wsl-for-apps' into user/kevinve/registry
kvega005 a40b27d
Fix tests
kvega005 bc989e5
Merge remote-tracking branch 'origin/feature/wsl-for-apps' into user/…
kvega005 7f59f8f
Merge branch 'feature/wsl-for-apps' into user/kevinve/registry
kvega005 d1455e0
Merge branch 'user/kevinve/registry' of https://github.com/kvega005/W…
kvega005 ef6f192
Fix tests
kvega005 d14cfec
Added back removed test + cleanup
kvega005 f4c1f39
Merge remote-tracking branch 'origin/feature/wsl-for-apps' into user/…
kvega005 c945517
Fix empty auth
kvega005 498588b
Merge branch 'feature/wsl-for-apps' into user/kevinve/registry
kvega005 baabcd9
Fix clang-format violations in test files
e944f0c
implement wslc login
kvega005 4eb4ed0
Merge remote-tracking branch 'origin/feature/wsl-for-apps' into user/…
kvega005 1f07291
Fix bad merge
kvega005 2a480dd
Fix another bad merge issues
kvega005 26ce250
Merge remote-tracking branch 'origin/feature/wsl-for-apps' into user/…
kvega005 5b8c26f
Fix session name not found
kvega005 f921914
add wslc cred prefix
kvega005 04238d5
add wslc cred prefix
kvega005 2c8c161
Update test/windows/wslc/e2e/WSLCE2EHelpers.cpp
kvega005 c254dad
Address copilot comments
kvega005 6428b91
Address feedback and cleanup
kvega005 100ca14
Update localization comments
kvega005 b83877d
Merge branch 'feature/wsl-for-apps' into user/kevinve/wslc-login
kvega005 83c243c
Address feedback
kvega005 3aca683
Fix formatting
kvega005 379ef46
ADdress copilot suggestions
kvega005 3acc79b
Merge branch 'feature/wsl-for-apps' into user/kevinve/wslc-login
kvega005 3c599b7
fix formatting
kvega005 b8f28f0
Fix ordering
kvega005 7430e01
Merge branch 'feature/wsl-for-apps' into user/kevinve/wslc-login
kvega005 0235839
Try different port
kvega005 d516f50
Fix formatting
kvega005 ae72ade
Cherry-pick PR #14244 (squashed) - upstream microsoft/WSL#14244
kvega005 4f51c37
Use default registry port
kvega005 9a80823
Revert "Cherry-pick PR #14244 (squashed) - upstream microsoft/WSL#14244"
kvega005 becc631
Merge branch 'feature/wsl-for-apps' into user/kevinve/wslc-login
kvega005 38d8556
Address feedback
kvega005 e1afb4c
Merge branch 'user/kevinve/wslc-login' of https://github.com/kvega005…
kvega005 609bd82
Remove unnecessary code
kvega005 132687a
fix formatting
kvega005 dd19ee2
Address copilot feedback
kvega005 618aab9
fix formatting
kvega005 1ef5fe2
Improve credential key parsng
kvega005 8ba43af
Try a new port number
kvega005 5b2ed43
Address feedback
kvega005 f165880
Merge branch 'feature/wsl-for-apps' into user/kevinve/wslc-login
kvega005 819d2a2
Address copilot
kvega005 43ca5b0
Merge branch 'user/kevinve/wslc-login' of https://github.com/kvega005…
kvega005 3a2f454
TEMP: Cherry-pick PR #14244 crash dump handler (to be reverted)
kvega005 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| /*++ | ||
|
|
||
| Copyright (c) Microsoft. All rights reserved. | ||
|
|
||
| Module Name: | ||
|
|
||
| ImagePushCommand.cpp | ||
|
|
||
| Abstract: | ||
|
|
||
| Implementation of the image push command. | ||
|
|
||
| --*/ | ||
|
|
||
| #include "ImageCommand.h" | ||
| #include "CLIExecutionContext.h" | ||
| #include "ImageTasks.h" | ||
| #include "SessionTasks.h" | ||
| #include "Task.h" | ||
|
|
||
| using namespace wsl::windows::wslc::execution; | ||
| using namespace wsl::windows::wslc::task; | ||
| using namespace wsl::shared; | ||
|
|
||
| namespace wsl::windows::wslc { | ||
| // Image Push Command | ||
| std::vector<Argument> ImagePushCommand::GetArguments() const | ||
| { | ||
| return { | ||
| Argument::Create(ArgType::ImageId, true), | ||
| Argument::Create(ArgType::Session), | ||
| }; | ||
| } | ||
|
|
||
| std::wstring ImagePushCommand::ShortDescription() const | ||
| { | ||
| return Localization::WSLCCLI_ImagePushDesc(); | ||
| } | ||
|
|
||
| std::wstring ImagePushCommand::LongDescription() const | ||
| { | ||
| return Localization::WSLCCLI_ImagePushLongDesc(); | ||
| } | ||
|
|
||
| void ImagePushCommand::ExecuteInternal(CLIExecutionContext& context) const | ||
| { | ||
| context // | ||
| << CreateSession // | ||
| << PushImage; | ||
| } | ||
| } // namespace wsl::windows::wslc |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.