Commit 284cb9a5 authored by Christopher Harm's avatar Christopher Harm

Pulling swagger-ui image on swagger install step

parent 4b54fbc1
......@@ -414,6 +414,12 @@ func checkIfSwaggerUiInstalled() {
installed := helmReleaseInstalled("swagger-ui")
if !installed {
environment.RunRequired(true, "docker", "pull", "quay.io/pennstate/swagger-ui:latest")
if kindProvider() {
color.New(color.FgGreen).Printf("Pushing image: 'quay.io/pennstate/swagger-ui:latest' into the kind cluster: %s\n", viper.GetString("kind.name"))
environment.RunRequired(true, "kind", "load", "docker-image", "--name", viper.GetString("kind.name"), "quay.io/pennstate/swagger-ui:latest")
}
if helmVersion2() {
environment.RunRequired(true, "helm", "install", "--name", "swagger-ui", "cm/swagger-ui")
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment