prepare

package
v1.27.8 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: LGPL-3.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const BLOCKING_RUN_NODEJS 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 NGINX_CONFIG_TEMPLATE string = `` /* 1122-byte string literal not displayed */
View Source
const READINESS_LIVENESS_SH = `#!/bin/sh
{{if .Include}}
wget --spider localhost:{{.Port}} > /dev/null 2>&1
{{end}}
`
View Source
const WRENCH_DOCKER_FILE string = `` /* 471-byte string literal not displayed */
View Source
const WRENCH_RADISH_DOCKER_FILE string = `` /* 463-byte string literal not displayed */

Variables

This section is empty.

Functions

func Prepper

func Prepper() process.Prepper

Types

type DockerfileData added in v1.24.2

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

type NginxfileData added in v1.24.2

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 added in v1.24.2

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

Nodejs :

type OpenshiftConfig added in v1.24.2

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

OpenshiftConfig :

func UnmarshallOpenshiftConfig added in v1.24.2

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

type PreparedImage

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

type Web added in v1.24.2

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 added in v1.24.2

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