Skip to content

Commit

Permalink
server: fix hardcoded micro image (#1455)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-toogood committed Oct 12, 2020
1 parent f5ad50b commit 534ca9c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/server.go
Expand Up @@ -66,6 +66,12 @@ func init() {
Usage: "Set the micro server address :10001",
EnvVars: []string{"MICRO_SERVER_ADDRESS"},
},
&cli.StringFlag{
Name: "image",
Usage: "Set the micro server image",
EnvVars: []string{"MICRO_SERVER_IMAGE"},
Value: "micro/micro:latest",
},
},
Action: func(ctx *cli.Context) error {
Run(ctx)
Expand Down Expand Up @@ -198,7 +204,7 @@ func Run(context *cli.Context) error {
runtime.WithRetries(10),
runtime.WithServiceAccount("micro"),
runtime.WithVolume("store-pvc", "/store"),
runtime.CreateImage("localhost:5000/micro"),
runtime.CreateImage(context.String("image")),
runtime.CreateNamespace("micro"),
runtime.WithSecret("MICRO_AUTH_PUBLIC_KEY", auth.DefaultAuth.Options().PublicKey),
runtime.WithSecret("MICRO_AUTH_PRIVATE_KEY", auth.DefaultAuth.Options().PrivateKey),
Expand Down

0 comments on commit 534ca9c

Please sign in to comment.