Skip to content
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

support using json for registry config #1680

Merged
merged 3 commits into from
Jul 4, 2023

Conversation

RichhLi
Copy link
Contributor

@RichhLi RichhLi commented Jul 2, 2023

envd bootstrap --registry-config path_to_json_file

Format:
Screenshot 2023-07-03 at 3 03 15 PM

Note that the "name" field is required. The other fields are all optional.

This will allow users to specify private Docker registries and the respective credentials. Under the hood, we parse these credentials and create a corresponding buildkit TOML file, as well as set up Docker bindings. This enables users to pull and push images from private Docker registries.

This is also completely backwards compatible with the existing "registry" and "registry-ca-keypair" command. We check that a user only specifies "registy-config" on its own, meaning that a user can't use both registry-config and registry or both registry-config and registry-ca-keypair.

The registry-config command also enables users to specify more than one registry now. For example, if the registry you pull your image from is different than the registry you push your image to, and you need auth for both of them, you should use the registry-config command.

Signed-off-by: Richard Li <ricli@linkedin.com>
pkg/app/bootstrap.go Outdated Show resolved Hide resolved
pkg/util/buildkitutil/buildkit.go Outdated Show resolved Hide resolved
pkg/app/bootstrap.go Outdated Show resolved Hide resolved
Signed-off-by: Richard Li <ricli@linkedin.com>
@gaocegege
Copy link
Member

Hi is it ready for another review?

@RichhLi
Copy link
Contributor Author

RichhLi commented Jul 4, 2023

Yes sorry, I'm new to Github and open source. In general if I make a change, how do I notify reviewers? Just leave a comment?

@kemingy
Copy link
Member

kemingy commented Jul 4, 2023

Yes sorry, I'm new to Github and open source. In general if I make a change, how do I notify reviewers? Just leave a comment?

You can click the "re-request review" on the top right reviewers' list. Leaving a comment is also okay.

pkg/app/bootstrap.go Outdated Show resolved Hide resolved
Co-authored-by: Keming <kemingy94@gmail.com>
Signed-off-by: Richard Li <98242479+RichhLi@users.noreply.github.com>
@kemingy kemingy enabled auto-merge July 4, 2023 03:53
@kemingy kemingy added this pull request to the merge queue Jul 4, 2023
Merged via the queue into tensorchord:main with commit cde4632 Jul 4, 2023
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants