@lando/php 0.10.1 → 0.10.2

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.
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":2031,"argv":["/opt/hostedtoolcache/node/18.18.2/x64/bin/node","/home/runner/work/php/php/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/php/php","time":1701231814306,"ppid":2020,"coverageFilename":"/home/runner/work/php/php/.nyc_output/41cf4733-5fd1-4901-8efe-1d8147fe6dfd.json","externalId":"","uuid":"41cf4733-5fd1-4901-8efe-1d8147fe6dfd","files":[]}
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":2020,"argv":["/opt/hostedtoolcache/node/18.18.2/x64/bin/node","/home/runner/work/php/php/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/php/php","time":1701231814117,"ppid":2019,"coverageFilename":"/home/runner/work/php/php/.nyc_output/ad2f5569-33d5-49eb-a1cf-96c429e575e8.json","externalId":"","uuid":"ad2f5569-33d5-49eb-a1cf-96c429e575e8","files":[]}
@@ -1 +1 @@
1
- {"processes":{"13cec594-963c-4e3a-ad7a-a8adee6104c3":{"parent":null,"children":[]},"33a95323-e2a9-46ad-b3d5-f5e5411e7140":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
1
+ {"processes":{"41cf4733-5fd1-4901-8efe-1d8147fe6dfd":{"parent":null,"children":[]},"ad2f5569-33d5-49eb-a1cf-96c429e575e8":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.10.2 - [November 28, 2023](https://github.com/lando/php/releases/tag/v0.10.2)
2
+ * Added option to override the image powering the service.
3
+ * Removed apparmor step from image building.
4
+
1
5
  ## v0.10.1 - [November 27, 2023](https://github.com/lando/php/releases/tag/v0.10.1)
2
6
  * Removed relative references to dependencies.
3
7
  * Added nginxServiceType option so other services can override the default `php-nginx` service with their own.
package/builders/php.js CHANGED
@@ -63,7 +63,7 @@ const parseCli = options => {
63
63
  */
64
64
  const parseNginx = options => {
65
65
  options.command = (process.platform !== 'win32') ? ['php-fpm'] : ['php-fpm -R'];
66
- options.image = 'fpm';
66
+ options.phpServer = 'fpm';
67
67
  options.remoteFiles.vhosts = '/opt/bitnami/nginx/conf/lando.conf';
68
68
  options.defaultFiles.vhosts = (options.ssl) ? 'default-ssl.conf.tpl' : 'default.conf.tpl';
69
69
  options.nginxSsl = options.ssl;
@@ -110,7 +110,7 @@ module.exports = {
110
110
  confSrc: path.resolve(__dirname, '..', 'config'),
111
111
  command: ['sh -c \'a2enmod rewrite && apache2-foreground\''],
112
112
  composer_version: '2.2.18',
113
- image: 'apache',
113
+ phpServer: 'apache',
114
114
  defaultFiles: {
115
115
  _php: 'php.ini',
116
116
  vhosts: 'default.conf',
@@ -155,7 +155,8 @@ module.exports = {
155
155
 
156
156
  // Build the php
157
157
  const php = {
158
- image: `devwithlando/php:${options.version}-${options.image}-${options.suffix}`,
158
+ image: _.get(options, 'image') ?
159
+ options.image : `devwithlando/php:${options.version}-${options.phpServer}-${options.suffix}`,
159
160
  environment: _.merge({}, options.environment, {
160
161
  PATH: options.path.join(':'),
161
162
  LANDO_WEBROOT: `/app/${options.webroot}`,
@@ -86,7 +86,7 @@
86
86
  <div class='footer quiet pad2 space-top1 center small'>
87
87
  Code coverage generated by
88
88
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
89
- at 2023-11-27T21:57:38.429Z
89
+ at 2023-11-29T04:23:34.503Z
90
90
  </div>
91
91
  <script src="prettify.js"></script>
92
92
  <script>
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": "0.10.1",
4
+ "version": "0.10.2",
5
5
  "author": "Mike Pirog @pirog",
6
6
  "license": "GPL-3.0",
7
7
  "repository": "lando/php",
@@ -1 +0,0 @@
1
- {"parent":null,"pid":2039,"argv":["/opt/hostedtoolcache/node/18.18.2/x64/bin/node","/home/runner/work/php/php/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/php/php","time":1701122258224,"ppid":2028,"coverageFilename":"/home/runner/work/php/php/.nyc_output/13cec594-963c-4e3a-ad7a-a8adee6104c3.json","externalId":"","uuid":"13cec594-963c-4e3a-ad7a-a8adee6104c3","files":[]}
@@ -1 +0,0 @@
1
- {"parent":null,"pid":2028,"argv":["/opt/hostedtoolcache/node/18.18.2/x64/bin/node","/home/runner/work/php/php/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/php/php","time":1701122258034,"ppid":2027,"coverageFilename":"/home/runner/work/php/php/.nyc_output/33a95323-e2a9-46ad-b3d5-f5e5411e7140.json","externalId":"","uuid":"33a95323-e2a9-46ad-b3d5-f5e5411e7140","files":[]}