add dockerfile generator

This commit is contained in:
kevin
2020-11-08 21:28:58 +08:00
parent 3806e66cf1
commit 95aa65efb9
4 changed files with 52 additions and 14 deletions

View File

@@ -25,7 +25,7 @@ import (
)
var (
BuildVersion = "20201021"
BuildVersion = "20201108"
commands = []cli.Command{
{
Name: "api",
@@ -188,16 +188,12 @@ var (
},
{
Name: "docker",
Usage: "generate Dockerfile and Makefile",
Usage: "generate Dockerfile",
Flags: []cli.Flag{
cli.StringFlag{
Name: "go",
Usage: "the file that contains main function",
},
cli.StringFlag{
Name: "namespace, n",
Usage: "which namespace of kubernetes to deploy the service",
},
},
Action: docker.DockerCommand,
},