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

Update docker registry to twun.io's registry chart #718

Merged
merged 1 commit into from
Sep 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions cmd/apps/registry_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ import (

func MakeInstallRegistry() *cobra.Command {
var registry = &cobra.Command{
Use: "docker-registry",
Short: "Install a Docker registry",
Long: `Install a Docker registry`,
Use: "docker-registry",
Short: "Install a community maintained Docker registry chart",
Long: `Install a community maintained Docker registry chart for more info
Check out the project's repo https://github.com/twuni/docker-registry.helm
Or the Open Source Docker registry https://github.com/distribution/distribution`,
Example: ` arkade install registry --namespace default`,
SilenceUsage: true,
}
Expand Down Expand Up @@ -92,13 +94,13 @@ func MakeInstallRegistry() *cobra.Command {

htPasswd := fmt.Sprintf("%s:%s\n", username, string(val))

err = helm.AddHelmRepo("stable", "https://charts.helm.sh/stable", updateRepo)
err = helm.AddHelmRepo("twuni", "https://twuni.github.io/docker-registry.helm", updateRepo)
if err != nil {
return err
}

chartPath := path.Join(os.TempDir(), "charts")
err = helm.FetchChart("stable/docker-registry", defaultVersion)
err = helm.FetchChart("twuni/docker-registry", defaultVersion)

if err != nil {
return err
Expand Down Expand Up @@ -130,7 +132,7 @@ func MakeInstallRegistry() *cobra.Command {

ns := "default"

err = helm.Helm3Upgrade("stable/docker-registry", ns,
err = helm.Helm3Upgrade("twuni/docker-registry", ns,
"values.yaml",
defaultVersion,
overrides,
Expand Down Expand Up @@ -171,8 +173,10 @@ docker login $IP:5000 --username admin --password $PASSWORD
docker tag alpine:3.11 $IP:5000/alpine:3.11
docker push $IP:5000/alpine:3.11

# This chart is community maintained.
# Find out more at:
# https://github.com/helm/charts/tree/master/stable/registry`
# https://github.com/twuni/docker-registry.helm
# https://github.com/distribution/distribution`

const registryInstallMsg = `=======================================================================
= docker-registry has been installed. =
Expand Down