prepare

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2017 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

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

The directory where the application is prepared

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) util.WriterFunc

func Prepare

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

Types

type Dockerfile

type Dockerfile 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