require

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

buildpack-static-require

This buildpack complements the buildpack-static-confgen buildpack, see the README.md on why this can't be in a single buildpack. This simply requires nginx if an index.html can be found in the workspace or if the env var BP_STATIC_WEBROOT is configured. The build phase is a noop.

To test the build locally, checkout this repository and then build it with:

pack build static --path ./integration/testdata/default_app/ \
  --builder paketobuildpacks/builder-jammy-base \
  --buildpack ninech/buildpack-static-confgen \
  --buildpack paketo-buildpacks/web-servers \
  --buildpack .

Documentation

Index

Constants

View Source
const (
	WebRootEnv = "BP_STATIC_WEBROOT"
)

Variables

This section is empty.

Functions

func Build

func Build(logger scribe.Emitter) packit.BuildFunc

func Detect

func Detect(logger scribe.Emitter) packit.DetectFunc

func WebRoot

func WebRoot(workingDir string) (string, error)

Types

type BuildPlanMetadata

type BuildPlanMetadata struct {
	Version       string `toml:"version,omitempty"`
	VersionSource string `toml:"version-source,omitempty"`
	Launch        bool   `toml:"launch"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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