prepare

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2017 License: LGPL-3.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DeliveryMetadataPath   = "metadata/openshift.json"
	DefaultLivenessScript  = "liveness_std.sh"
	DefaultReadinessScript = "readiness_std.sh"
)
View Source
const ApplicationDir = "app"

The directory where the application is prepared

View Source
const DockerBasedir = "/u01"

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

Variables

This section is empty.

Functions

func Classpath

func Classpath(applicationDir string, libPath string) ([]string, error)

applicationDir is the temporary directory where we have the application code libpath is the path to the jar files

func Exists

func Exists(path string) (bool, error)

func ExtractDeliverable

func ExtractDeliverable(archivePath string, extractedDirPath string) error

func Prepare

func Prepare(buildinfo global.BuildInfo, deliverable global.Deliverable) (string, error)

func PrepareApplication

func PrepareApplication(applicationPath string, applicationBase string, meta *config.DeliverableMetadata) error

func WriteFile

func WriteFile(path string, generator FileGenerator) error

Types

type Dockerfile

type Dockerfile struct {
	BaseRepository string
	BaseImageTag   string
	Maintainer     string
	Labels         map[string]string
	Env            map[string]string
}

func NewDockerfile

func NewDockerfile(meta *config.DeliverableMetadata, buildinfo global.BuildInfo) (*Dockerfile, error)

func (*Dockerfile) Write

func (dockerfile *Dockerfile) Write(writer io.Writer) error

type FileGenerator

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

type Startscript

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

func NewStartscript

func NewStartscript(classpath []string, meta config.DeliverableMetadata) *Startscript

func (Startscript) Write

func (startscript Startscript) Write(writer io.Writer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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