prepare

package
v2.6.6-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const BlockingRunNodeJS string = `#!/bin/sh
echo "Use of node.js was not configured in openshift.json. Blocking run script."
while true; do sleep 100d; done;
`

We copy this over the script in wrench if we don't have a nodejs app

View Source
const ReadinessLivenessSH = `#!/bin/sh
{{if .Include}}
wget --spider localhost:{{.Port}} > /dev/null 2>&1
{{end}}
`

Variables

This section is empty.

Functions

func Prepper

func Prepper() process.Prepper

Types

type BuildConfiguration

type BuildConfiguration struct {
	BuildContext string
	Env          map[string]string
	Labels       map[string]string
	Cmd          []string
}

type ImageMetadata

type ImageMetadata struct {
	Main             string
	Maintainer       string
	Baseimage        string
	PackageDirectory string
	Static           string
	Path             string
	Labels           map[string]string
	Env              map[string]string
}

type NginxfileData

type NginxfileData struct {
	HasNodeJSApplication bool
	ConfigurableProxy    bool
	NginxOverrides       map[string]string
	Path                 string
	ExtraStaticHeaders   map[string]string
	SPA                  bool
	Content              string
	Exclude              []string
	Gzip                 nginxGzip
	Locations            nginxLocations
}

type Nodejs

type Nodejs struct {
	Main      string            `json:"main"`
	Overrides map[string]string `json:"overrides"`
}

Nodejs :

type OpenshiftConfig

type OpenshiftConfig struct {
	Web Web `json:"web"`
}

OpenshiftConfig :

func UnmarshallOpenshiftConfig

func UnmarshallOpenshiftConfig(buffer io.Reader) (OpenshiftConfig, error)

type PreparedImage

type PreparedImage struct {
	Path string
	// contains filtered or unexported fields
}

type Web

type Web struct {
	ConfigurableProxy bool           `json:"configurableProxy"`
	Nodejs            Nodejs         `json:"nodejs"`
	WebApp            WebApp         `json:"webapp"`
	Gzip              nginxGzip      `json:"gzip"`
	Exclude           []string       `json:"exclude"`
	Locations         nginxLocations `json:"locations"`
}

Web :

type WebApp

type WebApp struct {
	Content         string            `json:"content"`
	Path            string            `json:"path"`
	DisableTryfiles bool              `json:"disableTryfiles"`
	Headers         map[string]string `json:"headers"`
}

WebApp :

Jump to

Keyboard shortcuts

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