@lando/php 1.6.3 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -1
- package/builders/php.js +73 -14
- package/images/5.6-apache/Dockerfile +0 -4
- package/images/5.6-fpm/Dockerfile +0 -5
- package/images/7.0-apache/Dockerfile +0 -4
- package/images/7.0-fpm/Dockerfile +0 -4
- package/images/7.1-apache/Dockerfile +0 -4
- package/images/7.1-fpm/Dockerfile +0 -4
- package/images/7.2-apache/Dockerfile +0 -4
- package/images/7.2-fpm/Dockerfile +0 -4
- package/images/7.3-apache/Dockerfile +0 -3
- package/images/7.3-fpm/Dockerfile +0 -3
- package/images/7.4-apache/Dockerfile +45 -55
- package/images/7.4-fpm/Dockerfile +59 -69
- package/images/8.0-apache/Dockerfile +45 -56
- package/images/8.0-fpm/Dockerfile +45 -56
- package/images/8.1-apache/Dockerfile +12 -2
- package/images/8.1-fpm/Dockerfile +12 -2
- package/images/8.2-apache/Dockerfile +12 -2
- package/images/8.2-fpm/Dockerfile +12 -2
- package/images/8.3-apache/Dockerfile +24 -4
- package/images/8.3-fpm/Dockerfile +25 -4
- package/images/8.4-apache/Dockerfile +27 -4
- package/images/8.4-fpm/Dockerfile +27 -4
- package/package.json +5 -5
- package/scripts/install-composer.sh +4 -0
- package/utils/add-build-step.js +17 -3
- package/utils/get-install-commands.js +19 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lando/php",
|
|
3
3
|
"description": "A Lando plugin that provides a tight integration with PHP.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0",
|
|
5
5
|
"author": "Mike Pirog @pirog",
|
|
6
6
|
"license": "GPL-3.0",
|
|
7
7
|
"repository": "lando/php",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"semver"
|
|
67
67
|
],
|
|
68
68
|
"dist": {
|
|
69
|
-
"integrity": "sha512-
|
|
70
|
-
"shasum": "
|
|
71
|
-
"filename": "lando-php-1.
|
|
72
|
-
"unpackedSize":
|
|
69
|
+
"integrity": "sha512-SMAjegMZXUtiSQOHdsdbjnrIFRX9DkO6/7gWlEs5q+KRXXzjfHPhwMtddd5225jbGSnDlKQUWKBlHaDWHRDaAA==",
|
|
70
|
+
"shasum": "222014d582a6d1377d0da500571651149cb1e048",
|
|
71
|
+
"filename": "lando-php-1.7.0.tgz",
|
|
72
|
+
"unpackedSize": 3128242
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -16,6 +16,10 @@ elif [ "$VERSION" = '2-latest' ]; then
|
|
|
16
16
|
php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer --2
|
|
17
17
|
elif [ "$VERSION" = '2' ]; then
|
|
18
18
|
php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer --2
|
|
19
|
+
elif [ "$VERSION" = '2.2' ]; then
|
|
20
|
+
php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer --2.2
|
|
21
|
+
elif [ "$VERSION" = '2.2-latest' ]; then
|
|
22
|
+
php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer --2.2
|
|
19
23
|
elif [ "$VERSION" = 'preview' ]; then
|
|
20
24
|
php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer --preview
|
|
21
25
|
elif [ "$VERSION" = 'snapshot' ]; then
|
package/utils/add-build-step.js
CHANGED
|
@@ -3,9 +3,23 @@
|
|
|
3
3
|
// Modules
|
|
4
4
|
const _ = require('lodash');
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
* Helper to
|
|
8
|
-
*
|
|
6
|
+
/**
|
|
7
|
+
* Helper function to add build steps to a service's configuration
|
|
8
|
+
*
|
|
9
|
+
* @param {string|string[]} steps - The build step(s) to add
|
|
10
|
+
* @param {Object} app - The Lando app object
|
|
11
|
+
* @param {string} name - The name of the service
|
|
12
|
+
* @param {string} [step='build_internal'] - The build step type to modify
|
|
13
|
+
* @param {boolean} [front=false] - Whether to add steps to front of array
|
|
14
|
+
* @return {void} - Modifies app config object directly
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* // Add a build step to the end
|
|
18
|
+
* addBuildStep('npm install', app, 'web');
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* // Add multiple build steps to the front
|
|
22
|
+
* addBuildStep(['composer install', 'npm install'], app, 'web', 'build_internal', true);
|
|
9
23
|
*/
|
|
10
24
|
module.exports = (steps, app, name, step = 'build_internal', front = false) => {
|
|
11
25
|
const current = _.get(app, `config.services.${name}.${step}`, []);
|
|
@@ -3,9 +3,25 @@
|
|
|
3
3
|
// Modules
|
|
4
4
|
const _ = require('lodash');
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
* Helper to
|
|
8
|
-
*
|
|
6
|
+
/**
|
|
7
|
+
* Helper function to generate installation commands for dependencies
|
|
8
|
+
*
|
|
9
|
+
* @param {Object} deps - Dependencies object with package names as keys and versions as values
|
|
10
|
+
* @param {Function} pkger - Function that generates package installation command
|
|
11
|
+
* @param {string[]} [prefix=[]] - Command prefix to prepend to each installation command
|
|
12
|
+
* @return {string[]} Array of formatted installation commands
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* // Generate npm install commands
|
|
16
|
+
* const deps = { 'lodash': '^4.0.0', 'express': '4.17.1' };
|
|
17
|
+
* const npmInstall = (pkg, version) => ['npm', 'install', `${pkg}@${version}`];
|
|
18
|
+
* getInstallCommands(deps, npmInstall);
|
|
19
|
+
* // Returns: ['npm install lodash@^4.0.0', 'npm install express@4.17.1']
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* // Generate commands with prefix
|
|
23
|
+
* getInstallCommands(deps, npmInstall, ['sudo', '-E']);
|
|
24
|
+
* // Returns: ['sudo -E npm install lodash@^4.0.0', 'sudo -E npm install express@4.17.1']
|
|
9
25
|
*/
|
|
10
26
|
module.exports = (deps, pkger, prefix = []) => _(deps)
|
|
11
27
|
.map((version, pkg) => _.flatten([prefix, pkger(pkg, version)]))
|