@lando/php 0.10.0 → 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":{"3f3dab62-d0cb-4485-a4eb-6821012b5917":{"parent":null,"children":[]},"bcd2e306-a8a2-474b-b7e0-35972746fd96":{"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,11 @@
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
+
5
+ ## v0.10.1 - [November 27, 2023](https://github.com/lando/php/releases/tag/v0.10.1)
6
+ * Removed relative references to dependencies.
7
+ * Added nginxServiceType option so other services can override the default `php-nginx` service with their own.
8
+
1
9
  ## v0.10.0 - [November 21, 2023](https://github.com/lando/php/releases/tag/v0.10.0)
2
10
  * Removed MultiViews from Apache config. [#66](https://github.com/lando/php/issues/66)
3
11
  * Isolated PHP to work as a standalone service. [#78](https://github.com/lando/php/pull/78)
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const _ = require('lodash');
4
- const LandoNginx = require('./../node_modules/@lando/nginx/builders/nginx.js');
4
+ const LandoNginx = require('@lando/nginx/builders/nginx.js');
5
5
 
6
6
  // Builder
7
7
  module.exports = {
package/builders/php.js CHANGED
@@ -21,7 +21,7 @@ const nginxConfig = options => ({
21
21
  project: options.project,
22
22
  root: options.root,
23
23
  ssl: options.nginxSsl,
24
- type: 'php-nginx',
24
+ type: options.nginxServiceType,
25
25
  userConfRoot: options.userConfRoot,
26
26
  webroot: options.webroot,
27
27
  version: options.via.split(':')[1],
@@ -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',
@@ -132,6 +132,7 @@ module.exports = {
132
132
  via: 'apache',
133
133
  volumes: ['/usr/local/bin'],
134
134
  webroot: '.',
135
+ nginxServiceType: 'php-nginx',
135
136
  },
136
137
  parent: '_appserver',
137
138
  builder: (parent, config) => class LandoPhp extends parent {
@@ -154,7 +155,8 @@ module.exports = {
154
155
 
155
156
  // Build the php
156
157
  const php = {
157
- 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}`,
158
160
  environment: _.merge({}, options.environment, {
159
161
  PATH: options.path.join(':'),
160
162
  LANDO_WEBROOT: `/app/${options.webroot}`,
@@ -192,7 +194,7 @@ module.exports = {
192
194
  const nginxOpts = nginxConfig(options);
193
195
 
194
196
  // Merge in any user specifified
195
- const PhpNginx = factory.get('php-nginx');
197
+ const PhpNginx = factory.get(nginxOpts.type);
196
198
  const data = new PhpNginx(nginxOpts.name, nginxOpts);
197
199
  // If the user has overriden this service lets make sure we include that as well
198
200
  const userOverrides = _.get(options, `_app.config.services.${nginxOpts.name}.overrides`, {});
@@ -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-21T20:14:14.144Z
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.0",
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":1974,"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":1700597653751,"ppid":1973,"coverageFilename":"/home/runner/work/php/php/.nyc_output/3f3dab62-d0cb-4485-a4eb-6821012b5917.json","externalId":"","uuid":"3f3dab62-d0cb-4485-a4eb-6821012b5917","files":[]}
@@ -1 +0,0 @@
1
- {"parent":null,"pid":1985,"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":1700597653949,"ppid":1974,"coverageFilename":"/home/runner/work/php/php/.nyc_output/bcd2e306-a8a2-474b-b7e0-35972746fd96.json","externalId":"","uuid":"bcd2e306-a8a2-474b-b7e0-35972746fd96","files":[]}