Skip to content

Commit

Permalink
Update docker registry to twun.io's registry chart
Browse files Browse the repository at this point in the history
Signed-off-by: Czékus Máté <[email protected]>
  • Loading branch information
Shikachuu authored and alexellis committed Sep 6, 2022
1 parent 6af1eb8 commit 405b09a
Showing 1 changed file with 11 additions and 7 deletions.
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

0 comments on commit 405b09a

Please sign in to comment.