run

package
v0.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command *cli.Command = &cli.Command{
	Name:      commandName,
	Aliases:   []string{"r"},
	Usage:     "Run your application with Docker Compose.",
	UsageText: "3lv run [options] <application-name>",
	Flags: []cli.Flag{
		shared.SystemNameFlag(
			"The name of your system.",
		),
		shared.HelmValuesFileFlag(),
		shared.RegistryFlag(
			"The registry to use for the image. Used for finding the image name.",
		),
	},
	Action: Run,
}

Functions

func Run

func Run(_ context.Context, c *cli.Command) error

Types

type ComposeFileVariables

type ComposeFileVariables struct {
	ApplicationName      string
	ImageName            string
	Port                 int
	TargetPort           int
	EnvironmentVariables map[string]string
}

type HelmValues

type HelmValues struct {
	Env []struct {
		Name  string `yaml:"name"`
		Value string `yaml:"value"`
	} `yaml:"env"`
	Service struct {
		Port       int `yaml:"port"`
		TargetPort int `yaml:"targetPort"`
	} `yaml:"service"`
}

func (HelmValues) GetEnvironmentVariablesMap

func (v HelmValues) GetEnvironmentVariablesMap() map[string]string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL