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

Is there a way to login to a private OCI to retrieve dependency modules #213

Open
spastorclovr opened this issue Dec 20, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@spastorclovr
Copy link

What problem are you facing?

I would like to be able to use modules stored in a private registry.
By specifiying the module like so 👇

kcl-package = { oci = "oci://registry.gitlab.com/clovrlabs/spiderbum/infra-experiment/kcl-package", tag = "0.0.1"}

Using the credentials property does not seem to do the trick.

Is there a way to perform something equivalent to a docker login ?

@spastorclovr spastorclovr added the enhancement New feature or request label Dec 20, 2024
@Peefy
Copy link
Collaborator

Peefy commented Dec 21, 2024

cc @zong-zhe

@zong-zhe
Copy link
Collaborator

Hi @spastorclovr 😄

Use kcl registry login, the usage is similar to docker login.

https://www.kcl-lang.io/docs/tools/cli/package-management/command-reference/login

@spastorclovr
Copy link
Author

Hey thx @zong-zhe 😄
How would you perform kcl registry login in the context of a function? Would it require to create a brand new docker image to handle this step?
thx again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants