mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-10 11:01:14 +00:00
Streamline php_modules and php_tools definitions
This commit is contained in:
@@ -64,9 +64,9 @@ def get_module_options(module_dirname: str) -> Dict[str, Any]:
|
||||
return load_yaml(os.path.join(PHP_MODULE_PATH, module_dirname, "options.yml"))
|
||||
|
||||
|
||||
def get_module_build(module_dirname: str) -> Dict[str, Any]:
|
||||
"""Returns yaml dict build configuration of a PHP module given by its absolute file path."""
|
||||
return load_yaml(os.path.join(PHP_MODULE_PATH, module_dirname, "build.yml"))
|
||||
def get_module_install(module_dirname: str) -> Dict[str, Any]:
|
||||
"""Returns yaml dict install configuration of a PHP module given by its absolute file path."""
|
||||
return load_yaml(os.path.join(PHP_MODULE_PATH, module_dirname, "install.yml"))
|
||||
|
||||
|
||||
def get_module_test(module_dirname: str) -> Dict[str, Any]:
|
||||
@@ -196,7 +196,7 @@ def write_group_vars(modules: List[str]) -> None:
|
||||
opts = get_module_options(module)
|
||||
fp.write(" " + module + ":\n")
|
||||
fp.write(" disabled: [" + ", ".join(str(x) for x in opts["exclude"]) + "]\n")
|
||||
fp.write(load_yaml_raw(os.path.join(PHP_MODULE_PATH, module, "build.yml"), 4))
|
||||
fp.write(load_yaml_raw(os.path.join(PHP_MODULE_PATH, module, "install.yml"), 4))
|
||||
|
||||
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -64,8 +64,8 @@ def get_tool_options(tool_dirname: str) -> Dict[str, Any]:
|
||||
return load_yaml(os.path.join(PHP_TOOL_PATH, tool_dirname, "options.yml"))
|
||||
|
||||
|
||||
def get_tool_build(tool_dirname: str) -> Dict[str, Any]:
|
||||
"""Returns yaml dict build configuration of a PHP tool given by its absolute file path."""
|
||||
def get_tool_install(tool_dirname: str) -> Dict[str, Any]:
|
||||
"""Returns yaml dict install configuration of a PHP tool given by its absolute file path."""
|
||||
return load_yaml(os.path.join(PHP_TOOL_PATH, tool_dirname, "install.yml"))
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
[PHP Mods: Overview](../../php_modules/README.md) |
|
||||
[PHP Mods: `options.yml`](PHP-EXT-options.yml.md) |
|
||||
PHP Mods: `build.yml` |
|
||||
[PHP Mods: `test.yml`](PHP-EXT-test.yml.md)
|
||||
PHP Mods: `install.yml`
|
||||
|
||||
---
|
||||
|
||||
@@ -9,7 +8,7 @@ PHP Mods: `build.yml` |
|
||||
|
||||
|
||||
|
||||
# Extension definition: `build.yml`
|
||||
# Extension definition: `install.yml`
|
||||
|
||||
|
||||
## Top level defines
|
||||
@@ -1,7 +1,6 @@
|
||||
[PHP Mods: Overview](../../php_modules/README.md) |
|
||||
PHP Mods: `options.yml` |
|
||||
[PHP Mods: `build.yml`](PHP-EXT-build.yml.md) |
|
||||
[PHP Mods: `test.yml`](PHP-EXT-test.yml.md)
|
||||
[PHP Mods: `install.yml`](PHP-EXT-install.yml.md)
|
||||
|
||||
---
|
||||
|
||||
@@ -36,7 +35,7 @@ Example:
|
||||
exclude: [5.2, 5.3]
|
||||
```
|
||||
|
||||
**Note:** If this extension is already present, do not exclude it in here, but rather use `already_avail` in `build.yml`.
|
||||
**Note:** If this extension is already present, do not exclude it in here, but rather use `already_avail` in `install.yml`.
|
||||
|
||||
|
||||
### `depends_build`
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
[PHP Mods: Overview](../../php_modules/README.md) |
|
||||
[PHP Mods: `options.yml`](PHP-EXT-options.yml.md) |
|
||||
[PHP Mods: `build.yml`](PHP-EXT-build.yml.md) |
|
||||
PHP Mods: `test.yml`
|
||||
|
||||
---
|
||||
|
||||
<h2><img name="Documentation" title="Documentation" width="20" src="https://github.com/devilbox/artwork/raw/master/submissions_logo/cytopia/01/png/logo_64_trans.png"> Contributor Documentation: PHP Modules</h2>
|
||||
|
||||
|
||||
|
||||
# Extension definition: `test.yml`
|
||||
|
||||
### Goal
|
||||
The goal of these tests will be to ensure that each compiled module works as expected:
|
||||
* Required system libraries are present
|
||||
* Module has been loaded in correct order
|
||||
* Module works properly
|
||||
|
||||
This will be accomplished by providing example PHP code, which makes calls to functions of the respective module. The tests will then check PHP error logs, stderr, unforseen exits and segfaults for potential errors.
|
||||
|
||||
Currently some basic tests already exist or a few modules **[here](../../tests/mods/modules)**.
|
||||
|
||||
|
||||
### Configuration
|
||||
|
||||
This is not yet implemented and thus no documentation exists.
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
@@ -1 +0,0 @@
|
||||
---
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user