Documentation
¶
Index ¶
Constants ¶
const ( PhpHttpdConfig = "php-httpd-config" PhpNginxConfig = "php-nginx-config" Nginx = "nginx" Httpd = "httpd" Php = "php" PhpFpm = "php-fpm" Watchexec = "watchexec" )
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build will return a packit.BuildFunc that will be invoked during the build phase of the buildpack lifecycle.
It will create a layer dedicated to storing a process manager and YAML file of processes to run, since there are multiple process that could be run. The layer is available at and launch-time, and its contents are used in the image launch process.
func Detect ¶
func Detect(reloader Reloader) packit.DetectFunc
Detect will return a packit.DetectFunc that will be invoked during the detect phase of the buildpack lifecycle.
This buildpack has two requirement groups: One for HTTPD in which the following are required at launch time: - "php" - "php-fpm" - "httpd" - "httpd-config" Another for NGINX in which the following are required at launch time: - "php" - "php-fpm" - "nginx" - "nginx-config"
Additionally, this buildpack will require 'composer-packages' when a composer.json is found.
This buildpack will always detect.
Types ¶
type BuildPlanMetadata ¶
type BuildPlanMetadata struct {
// Launch flag requests the given requirement be made available during the
// launch phase of the buildpack lifecycle.
Launch bool `toml:"launch"`
// Build flag requests the given requirement be made available during the
// build phase of the buildpack lifecycle.
Build bool `toml:"build"`
}
BuildPlanMetadata is the buildpack specific data included in build plan requirements.
type ProcMgr ¶
ProcMgr manages all processes that the build phase may need to run by adding them to a procs.yml file for execution at launch time.