porter create
creates a new application with name given by the --app
flag and a kind
, which can be one of web, worker, or job. For example:
--values
flag.
--source github
. If your local branch is set to track changes from an upstream remote branch, Porter will try to use the connected remote and remote branch as the Github repository to link to. Otherwise, Porter will use the remote given by origin. For example:
--source registry
and pass the image in via the --image
flag. The image flag must be of the form repository:tag. For example:
--app
(string) name of the new application/job/worker.--dockerfile
(string) the path to the dockerfile-e, --env
(stringArray) Build-time environment variable, in the form ‘VAR=VALUE’. These are not available at image runtime.--image
(string) if the source is “registry”, the image to use, in repository:tag format--method
(string) the build method to use (“docker” or “pack”)--namespace
(string) namespace of the application (default “default”)-p, --path
(string) if local build, the path to the build directory--registry-url
(string) the registry URL to use (must exist in “porter registries list”)--source
(string) the type of source (“local”, “github”, or “registry”) (default “local”)-v, --values
(string) filepath to a values.yaml file