prepare

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2017 License: LGPL-3.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DeliveryMetadataPath   = "metadata/openshift.json"
	DefaultLivenessScript  = "liveness_std.sh"
	DefaultReadinessScript = "readiness_std.sh"
)
View Source
const ApplicationBuildFolder = ApplicationRoot + "/" + ApplicationFolder

The directory where the application is prepared

View Source
const ApplicationFolder = "application"
View Source
const ApplicationRoot = "app"

The root of the application

View Source
const DockerBasedir = "/u01"

The base directory where all code is copied in the Docker image

Variables

This section is empty.

Functions

func Exists

func Exists(path string) (bool, error)

func ExtractDeliverable

func ExtractDeliverable(archivePath string, extractedDirPath string) error

func NewDockerfile

func NewDockerfile(dockerSpec global.DockerSpec, auroraVersion runtime.AuroraVersion, meta config.DeliverableMetadata,
	baseImage runtime.DockerImage, imageBuildTime string) util.WriterFunc

func Prepare

func Prepare(dockerSpec config.DockerSpec, auroraVersions *runtime.AuroraVersion, deliverable nexus.Deliverable, baseImage runtime.DockerImage) (string, error)

Types

type DockerfileData added in v1.3.0

type DockerfileData struct {
	BaseImage  string
	Maintainer string
	Labels     map[string]string
	Env        map[string]string
}

type FileGenerator

type FileGenerator interface {
	Write(writer io.Writer) error
}

type Startscript

type Startscript struct {
	Classpath       []string
	JvmOptions      string
	MainClass       string
	ApplicationArgs string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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