Documentation
¶
Index ¶
Constants ¶
View Source
const ( DockerComposeSpecType = "DockerCompose" ServicePlanSpecType = "ServicePlanSpec" )
View Source
const ( GitHubPATGenerateURL = "https://github.com/settings/tokens" ComposeFileName = "compose.yaml" DefaultProdEnvName = "Production" )
Variables ¶
View Source
var ( ServiceID string EnvironmentID string ProductTierID string )
View Source
var BuildCmd = &cobra.Command{ Use: "build [--file=file] [--spec-type=spec-type] [--name=service-name] [--description=service-description] [--service-logo-url=service-logo-url] [--environment=environment-name] [--environment-type=environment-type] [--release] [--release-as-preferred] [--release-description=release-description][--interactive] [--image=image-url] [--image-registry-auth-username=username] [--image-registry-auth-password=password] [--env-var=\"key=var\"]", Short: "Build Services from image, compose spec or service plan spec", Long: buildLong, Example: buildExample, RunE: runBuild, SilenceUsage: true, }
BuildCmd represents the build command
View Source
var BuildFromRepoCmd = &cobra.Command{ Use: "build-from-repo", Short: "Build Service from Git Repository", Long: "This command helps to build service from git repository. Run this command from the root of the repository. Make sure you have the Dockerfile in the repository and have the Docker daemon running on your machine. By default, the service name will be the repository name, but you can specify a custom service name with the --service-name flag.\n\nYou can also skip specific stages of the build process using the --skip-* flags. For example, you can skip building the Docker image with --skip-docker-build, skip creating the service with --skip-service-build, skip environment promotion with --skip-environment-promotion, or skip SaaS portal initialization with --skip-saas-portal-init.\n\nFor testing purposes, use the --dry-run flag to only build the Docker image locally without pushing, skip service creation, and generate a local spec file with a '-dry-run' suffix. Note that --dry-run cannot be used together with any of the --skip-* flags as they are mutually exclusive.", Example: buildFromRepoExample, RunE: runBuildFromRepo, SilenceUsage: true, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.