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

Provide new command that outputs config.json file to be used in docker CLI against internal docker registry #2217

Open
kwiatekus opened this issue Sep 12, 2024 · 0 comments
Assignees

Comments

@kwiatekus
Copy link
Contributor

kwiatekus commented Sep 12, 2024

Description

Add a new command that would output docker registry config in form of docker's config.json containing kyma's docker registry external url and auth data:

{
	"auths": {
		"{external url of docker registry}": {
			"auth": "{base64 encoded `user:password`}"
		}
	}
}

If the docker registry secret is not present (i.e docker-registry module is not installed), then output information saying that there is no docker registry module installed.

kyma alpha registry config --dockerconfig (--output config.json)
URL = $(kyma alpha registry config --externalurl )
docker --config {PATH to config.json} push ${URL}/my-app:{tag}

Reasons

Kyma can be provisioned with internal docker registry.
The registry will prove useful only if it is easy to use it with docker CLI locally or in a CI workflow context.

Attachments
https://lumaks.medium.com/creating-docker-config-json-for-use-in-external-systems-a5d14aa81c41

Related topics:
kyma-project/kyma#18555
kyma-project/kyma#18198

@kwiatekus kwiatekus transferred this issue from kyma-project/terraform-module Sep 13, 2024
@kwiatekus kwiatekus changed the title Provide output config.json file to be used in docker CLI against internal docker registry Provide new command that outputs config.json file to be used in docker CLI against internal docker registry Sep 13, 2024
@Cortey Cortey self-assigned this Sep 17, 2024
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

No branches or pull requests

2 participants