prepare

package
v1.25.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: LGPL-3.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const ApplicationBuildFolder = DockerfileApplicationFolder + "/" + ApplicationFolder

The directory where the application is prepared

View Source
const ApplicationFolder = "application"
View Source
const (
	DeliveryMetadataPath = "metadata/openshift.json"
)
View Source
const DockerBasedir = "/u01"

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

View Source
const DockerfileApplicationFolder = "app"

Where in the build folder the application is put

Variables

This section is empty.

Functions

func Exists

func Exists(path string) (bool, error)

func ExtractDeliverable

func ExtractDeliverable(archivePath string, extractedDirPath string) error

func NewRadishDockerFile added in v1.11.0

func NewRadishDockerFile(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.BaseImage) (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 JavaDescriptor added in v1.11.0

type JavaDescriptor struct {
	Type
	Data JavaDescriptorData
}

type JavaDescriptorData added in v1.11.0

type JavaDescriptorData struct {
	Basedir               string   `json:"Basedir"`
	PathsToClassLibraries []string `json:"PathsToClassLibraries"`
	MainClass             string   `json:"MainClass"`
	ApplicationArgs       string   `json:"ApplicationArgs"`
	JavaOptions           string   `json:"JavaOptions"`
}

type Type added in v1.11.0

type Type struct {
	Type    string `json:"Type"`
	Version string `json:"Version"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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