Documentation ¶
Index ¶
- Constants
- func Classpath(applicationDir string, libPath string) ([]string, error)
- func Exists(path string) (bool, error)
- func ExtractDeliverable(archivePath string, extractedDirPath string) error
- func Prepare(buildinfo global.BuildInfo, deliverable global.Deliverable) (string, error)
- func PrepareApplication(applicationPath string, applicationBase string, ...) error
- func WriteFile(path string, generator FileGenerator) error
- type Dockerfile
- type FileGenerator
- type Startscript
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 ¶
applicationDir is the temporary directory where we have the application code libpath is the path to the jar files
func ExtractDeliverable ¶
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)
type FileGenerator ¶
type Startscript ¶
type Startscript struct { Classpath []string JvmOptions string MainClass string ApplicationArgs string }
func NewStartscript ¶
func NewStartscript(classpath []string, meta config.DeliverableMetadata) *Startscript
Source Files ¶
Click to show internal directories.
Click to hide internal directories.