@automattic/vip 2.13.1 → 2.16.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/README.md CHANGED
@@ -23,545 +23,3 @@ For help with contributing to this project, including instructions for local dev
23
23
  ## Analytics
24
24
 
25
25
  By default, we record information about the usage of this tool using an in-house analytics sytem. If you would prefer to opt-out of this data collection, you can do so via the `DO_NOT_TRACK` environment variable. You may either export it in your shell configuration or specify it on the command line (e.g. `DO_NOT_TRACK=1 vip app list`).
26
-
27
- ## Changelog
28
-
29
- ### 2.13.1 (20 Jun 2022)
30
-
31
- - #1052 [dev-env] Update/lando compose version
32
- - #1045 README: Fix Typo `VIP CLI` => `VIP-CLI`
33
- - #1048 Switch to GitHub Actions
34
-
35
- ### 2.13.0 (16 Jun 2022)
36
-
37
- - #1046 Add Cache Purge Command
38
- - #1050 [dev-env] Change docs link
39
- - #1047 [dev-env] Bump lando package
40
- - #1044 [dev-env] Fix healthchecks No. 2
41
- - #1043 [dev-env] add docker-compose v2 support
42
- - #1042 [dev-env] Fix search popup during wizard
43
- - #1038 [dev-env] Adds domain validation during sql import
44
- - #1040 [dev-env] track dev-env start time in seconds
45
-
46
- ### 2.12.0 (19 May 2022)
47
-
48
- - #1035 and #1032 Improved publishing checks to publish on npm
49
- - #1037 [dev-env] only record the php version numbers update/clean_php_version
50
- - #999 Add Feature to Support HTTPS/HTTP/NO_PROXY Settings
51
- - #1036 Move DO_NOT_TRACK handling to Analytics lib
52
- - #1033 [dev-env] Bump lando in order to support node 18
53
-
54
- #### Special thanks
55
- frank-cerny for the contribution on #999
56
-
57
- ### 2.11.2 (12 May 2022)
58
-
59
- - Hotfix to use correct production config.json in the NPM published package caused by a different NPM version in the build process.
60
-
61
- ### 2.11.1 (12 May 2022)
62
-
63
- - Hotfix to use correct production config.json in the NPM published package
64
-
65
- ### 2.11.0 (11 May 2022)
66
-
67
- - #1022 [dev-env] Validate docker installed
68
- - #1026 [dev-env] adds tracking to stop subcommand
69
- - #1028 Re-calculate the fileMeta if file gets changed by the searchAndReplace
70
- - #1029 Adds Pendo analytics client
71
- - #1030 [dev-env] Fix failure tracking
72
-
73
- ### 2.10.0 (4 May 2022)
74
-
75
- - #1021 [dev-env] Add login info and documentation link to `dev-env info`
76
- - #1023 [dev-env] Skip the trunk from the prompt about the latest available WordPress versions
77
- - #1019 [dev-env] Unifies lando and other dev-env debug logs
78
- - #1018 [dev-env] enable lando debug on `--debug`
79
- - #1017 [dev-env] Adding tracking for create and destroy sub commands
80
- - #1016 [dev-env] Adding tracking for start sub command
81
- - #1020 [dev-env] More tracking
82
-
83
- ### 2.9.5 (26 April 2022)
84
-
85
- - #1005 [dev-env] updateWordPress image improvements
86
- - #1006 Remove renovate.json
87
- - #1007 Set up CodeQL Scanning
88
- - #1008 WP-CLI: Reattach Reconnect-Related Events After a Successful Reconnection
89
- - #1009 Add ability to choose a PHP image to use
90
- - #1010 [dev-env] Add Enterprise Search, XDebug, phpMyAdmin options to the config wizard.
91
-
92
- ### 2.9.4 (07 April 2022)
93
-
94
- - #996 Clean up lint warnings
95
- - #1001 Fix reconnect event listeners
96
- - #1000 Bump socket.io-client from 4.0.1 to 4.4.1
97
-
98
- ### 2.9.3 (29 March 2022)
99
-
100
- - #995 Add debug call to dev-envs handleCLIException
101
- - #992 Add --debug flag to all commands
102
- - #993 [dev-env] Fix in caching version list.
103
- - #994 Fix typo in error message
104
- - #990 [dev-env] Add check for wp folder map add/php_healthcheck
105
- - #991 Adds optional channing since `progress` can be null as per GraphQL schema
106
- - #989 Fixes unit test error `bsdthread_register error`
107
- - #987 Add support for M1 Macs in the search-replace tests
108
-
109
- ### 2.9.2 (9 March 2022)
110
-
111
- - #980 [dev-env] Fix/tag formatting on stapled images
112
- - #986 Clean the build folder prior to rebuilding it
113
- - #985 Adding webP to the list of accepted extensions for files
114
- - #972 Run tests in Windows Env
115
-
116
- https://github.com/Automattic/vip/releases/tag/v2.9.2
117
-
118
- ### 2.9.1 (2 March 2022)
119
-
120
- - #982 Remove unused dependencies - Fixes Error: Cannot find module 'core-js'
121
- - #978 [dev-env] Added phpmyadmin proxy value
122
-
123
- https://github.com/Automattic/vip/releases/tag/v2.9.1
124
-
125
- ### 2.9.0 (1 March 2022)
126
-
127
- - #966 [dev-env] Dynamic WordPress Image List
128
- - #975 [dev-env] prompt On Unselected Env
129
- - #974 [dev-env] Corrections of text for -h menu in dev-env create
130
- - #973 [dev-env] update Nginx image
131
- - #971 [dev-env] Use custom add user command
132
- - #964 [dev-env] Validate sql on import
133
- - #970 [dev-env] Do not use /tmp as a userConfRoot
134
- - #977 Fix flow errors
135
- - #976 Fix/duplicate shortcut parameter
136
- - #968 Update minimum Node version
137
-
138
- https://github.com/Automattic/vip/releases/tag/v2.9.0
139
-
140
- ### 2.8.2 (27 January 2021)
141
-
142
- - #961 Fixes md5 calculation failing when search-replace is used
143
- - #959 Fixes md5 calculation for SQL Imports on VIPd
144
-
145
- https://github.com/Automattic/vip/releases/tag/v2.8.2
146
-
147
- ### 2.8.0 (25 January 2021)
148
-
149
- - #952 FORNO-1047: Fix SQL Import for compressed files
150
- - #955 Add Error prefix for "Failed to fetch logs" msg
151
- - #946 Add support for the site logs tailing feature
152
- - #953 [dev-env] Updated list of available wordpress images for dev-env
153
- - #933 Update dependency debug to v4.3.3
154
-
155
- https://github.com/Automattic/vip/releases/tag/v2.8.0
156
-
157
- ### 2.7.1 (10 January 2021)
158
-
159
- - #950 Switch to npm-shrinkwrap
160
- - #947 [dev-env] List all dev env alias
161
- - #944 Add `vip whoami` command
162
- - #942 Envvar: Show message when there is an attempt to change the New Relic key.
163
-
164
- https://github.com/Automattic/vip/releases/tag/v2.7.1
165
-
166
- ### 2.7.0 (07 December 2021)
167
-
168
- - #941 [dev-env] Bump lando CLI dependency
169
- - #938 Hide roll back message after SQL Import failure for launched sites
170
- - #936 Sets jest maxWorkers to 4
171
-
172
- https://github.com/Automattic/vip/releases/tag/v2.7.0
173
-
174
- ### 2.6.0 (23 November 2021)
175
-
176
- - #921 [dev-env] Introuces update to change existing environment
177
- - #928 [dev-env] Switch lando to use our fork
178
- - #927 [dev-env] Handles user already exists during sql import
179
- - #925 [dev-env] Fix the issue with dev-env update
180
- - #924 FORNO-985 Increase SQL Import limit for unlaunched sites to 100GB
181
- - #923 FORNO-943 Fixes a bug which prevents displaying SQL Import error messages
182
- - #922 Update eslint-config-wpvip commit hash to c6605d1
183
- - #873 Pin dependencies
184
-
185
- ### 2.5.0 (9 November 2021)
186
-
187
- - #919 [dev-env] Expose lando core logs
188
- - #916 [dev-env] Save instance data state
189
- - #914 [dev-env] update help wording for dev env
190
- - #915 Add warning message when an envvar is set/deleted
191
-
192
- ### 2.4.0 (5 November 2021)
193
-
194
- - #913 [dev-env] No login required for dev-env
195
- - #911 Adds more release instructions
196
-
197
- ### 2.3.1 (2 November 2021)
198
-
199
- - Fixes an issue with the 2.3.0 where the intended changes didn't get published correctly.
200
-
201
- ### 2.3.0 (2 November 2021)
202
-
203
- - #908 [dev-env] Custom user permissions setup
204
- - #897 [dev-env] Primary domain prompt for primary domain redirect
205
- - #902 [dev-env] Delete file permissions
206
- - #900 Clarify CONTRIBUTING guidelines
207
- - #905 Update contribution steps
208
-
209
- ### 2.2.0 (27 October 2021)
210
-
211
- New: Environment variables command
212
-
213
- - #896 Open config envvar command for all customers
214
- - #876 Update envvar list command to only show names
215
- - #879 Add config envvar get and get-all commands
216
- - #875 Temporarily gate access to new config command to VIP staff
217
- - #858 Environment variable CLI commands (list, set, delete)
218
-
219
- Fixes:
220
-
221
- - #901 Don't mark import as failed until restore has completed
222
- - #899 Proxy fix + healthchecks
223
- - #894 support windows db import
224
- - #889 Proxy config change
225
- - #888 mount wordpress code
226
- - #872 Auto flush cache after import and add vipgo user
227
- - #869 Media redirect to production site.
228
- - #885 Make search data persistent between restarts
229
- - #844 Expose DB and expose extra services in info table
230
- - #865 spawn WP-CLI as root to allow for FS operations
231
- - #895 Fix rmdir deprecation warning
232
- - #870 Add the VIP-CLI release process and release schedule
233
-
234
- Dependencies updates:
235
-
236
- - #778 Update dependency ini to v2
237
- - #786 Update dependency keytar to v7
238
- - #884 Update dependency cli-columns to v4
239
- - #887 Update dependency lando to v3.4.3
240
- - #874 Update dependency lando to v3.4.0
241
- - #750 Bump hosted-git-info from 2.8.8 to 2.8.9
242
- - #877 Bump tmpl from 1.0.4 to 1.0.5
243
-
244
- https://github.com/Automattic/vip/releases/tag/v2.2.0
245
-
246
- ### 2.1.0 (16 September 2021)
247
-
248
- - #857 Remove select DB checks
249
- - #864 Adding WordPress versions to dev-env
250
- - #868 persist database data in between container restarts
251
- - #862 Fix lint warnings
252
- - #867 Update dependency lando to v3.3.2
253
- - #863 Add links to CONTRIBUTING and SECURITY
254
- - #855 Add some helpful hints for new command scaffolding
255
- - #856 Adding media import command on dev environment
256
- - #849 Adding SQL import to dev environment
257
- - #854 Updating command descriptions and arguments on dev-env
258
- - #850 Use official memcached image on dev-env
259
- - #853 Enable ssl forwarding on dev-env
260
- - #851 Conditionally disabling statsd on mu-plugins
261
- - #852 Fixing Prettier format annotation typo
262
- - #843 Removing custom wp-config-defaults
263
- - #848 Not using a prefix to all dev environments
264
- - #847 Update dependency lando to v3.3.0
265
- - #840 Use official Elasticsearch image on dev-env
266
- - #845 Fix MariaDB healthcheck
267
- - #846 dev-env: Update error message for directory prompt
268
- - #842 Removing PHP parameter from dev environment
269
- - #839 Use official MariaDB image and enable version selection on dev-env
270
-
271
- https://github.com/Automattic/vip/releases/tag/v2.1.0
272
-
273
- ### 2.0.14 (26 August 2021)
274
-
275
- - Update dependency graphql to v15.5.1 #796
276
- - Update dependency graphql-tag to v2.12.5 #799
277
- - Update dependency debug to v4.3.2 #806
278
- - Remove fake data dev-env commands #830
279
- - Disable statsd by default #831
280
- - Support ES version option #832
281
- - Removing mu-plugins test command #835
282
- - Making PHPMyAdmin optional on dev-env #836
283
- - Patching Docker for Windows in dev-env #837
284
- - enable/disable xdebug #838
285
-
286
- https://github.com/Automattic/vip/releases/tag/v2.0.14
287
-
288
- ### 2.0.13 (19 August 2021)
289
-
290
- - Allow user to run multisite import even if wpSites.nodes doesn't exist. #815
291
- - Bumping version number to 2.0.12 #827
292
- - Path resolving fixes #829
293
- - Send header each time #826
294
- - Sets up a volume for media files #825
295
- - Update dependency chalk to v4.1.2 #813
296
- - Update dependency lando to v3.1.4 #797
297
- - Upgrading statsd container to 0.9.0 #828
298
-
299
- https://github.com/Automattic/vip/releases/tag/v2.0.13
300
-
301
- ### 2.0.12 (13 August 2021)
302
-
303
- - Using new VIP Docker images for dev-env #818
304
- - Bump path-parse from 1.0.6 to 1.0.7 #819
305
- - Increasing dev-env PMA upload limit to 4G #822
306
- - PIE-2890 Fixes issue where user is unable to login after logout #823
307
-
308
- https://github.com/Automattic/vip/releases/tag/v2.0.12
309
-
310
- ### 2.0.11 (5 August 2021)
311
-
312
- - Handle parameter validation in a consistent way #795
313
- - Fix error blocking data sync on CLI sites #810
314
- - Update DB Engine check to reduce false positives #811
315
- - Retrieve the status and steps regardless of the site type. #812
316
- - Dev-Env: Handle relative file paths #802
317
- - Dev-Env: Make dev-env start more resilient #804
318
- - Dev-Env: Validate Path to a component #803
319
- - Dev-Env: Handle multisite = false correctly #809
320
- - Dev-Env: Adds a check for an orphaned proxy container #814
321
- - FORNO-759: Add logged in user details to all Tracks events #801
322
- - FORNO-779: Throttle request to Parker when fetching media import status #808
323
-
324
- https://github.com/Automattic/vip/releases/tag/2.0.11
325
-
326
- ### 2.0.10 (21 June 2021)
327
-
328
- - Adds Media Import Abort subcommand
329
- - Disables enterprise search by default
330
- - Handles numbered slugs correctly
331
- - Unifies print table on start command with other commands
332
- - Drops the isVip requirement for dev-env
333
- - Fixes intermittent fatal error caused due to analytics tracking
334
- - Misc dependency updates
335
-
336
- https://github.com/Automattic/vip/releases/tag/v2.0.10
337
-
338
- ### 2.0.9 (3 June 2021)
339
-
340
- - Enable SQL import for all site types
341
- - Bug fix for analytics errors causing some commands to fail
342
- - Add the full changelog to the readme
343
- - Improved error output by adding debug info and consistent output/error codes
344
- - Misc dependency updates
345
-
346
- https://github.com/Automattic/vip/releases/tag/v2.0.9
347
-
348
- ### 2.0.8 (27 May 2021)
349
-
350
- - [Beta] Media Import: Enable media imports for production WordPress applications
351
- - SQL Import: Enable SQL Import for launched sites
352
- - SQL Import: Enable SQL Import for multisite networks
353
- - SQL Import: Additional input file validation
354
-
355
- https://github.com/Automattic/vip/releases/tag/v2.0.8
356
-
357
- ### 2.0.7 (6 May 2021)
358
-
359
- - SQL Import: Add additional multisite validations
360
- - Update socket.io-client to 4.0.1
361
- - Misc. dependency updates
362
-
363
- https://github.com/Automattic/vip/releases/tag/v2.0.7
364
-
365
- ### 2.0.6 (15 Apr 2021)
366
-
367
- - SQL Import: Add additional checks for site type
368
-
369
- https://github.com/Automattic/vip/releases/tag/v2.0.6
370
-
371
- ### 2.0.5 (8 Mar 2021)
372
-
373
- - Fix a bug when comparing env data to selected environment #697
374
-
375
- https://github.com/Automattic/vip/releases/tag/v2.0.5
376
-
377
- ### 2.0.4 (3 Mar 2021)
378
-
379
- - Bump socket.io-client from 2.3.0 to 2.4.0 (Fixes WP-CLI in node 15+) #679
380
- - Additional SQL import file static validations #669
381
-
382
- https://github.com/Automattic/vip/releases/tag/v2.0.4
383
-
384
- ### 2.0.3 (19 Feb 2021)
385
-
386
- - Improved SQL import validation around the use of TRIGGER
387
-
388
- https://github.com/Automattic/vip/releases/tag/v2.0.3
389
-
390
- ### 2.0.2 (15 Feb 2021)
391
-
392
- - Improved handling of debug output during search & replace
393
- - Updated the vip-search-replace package to ^1.0.13
394
-
395
- https://github.com/Automattic/vip/releases/tag/v2.0.2
396
-
397
- ### 2.0.1 (11 Feb 2021)
398
-
399
- - SQL Import: Improved reporting of server-side failures
400
- - SQL Import: Add ability to skip local validation
401
- - Updated the vip-search-replace package to v1.0.12
402
- - SQL Import: Fix and test for multi-site tables that have more than one digit
403
-
404
- https://github.com/Automattic/vip/releases/tag/v2.0.1
405
-
406
- ### 2.0.0 (2 Feb 2021)
407
-
408
- - Drops support for Node 8
409
- - Added Security Policy
410
- - Added SQL file import feature for new sites
411
- - Added SQL search and replace feature
412
-
413
- https://github.com/Automattic/vip/releases/tag/v2.0.0
414
-
415
- ### 1.12.1 (8 Sep 2020)
416
-
417
- - Updated list of accepted special characters for media files for imports
418
-
419
- https://github.com/Automattic/vip/releases/tag/v1.12.1
420
-
421
- ### 1.12.0 (21 Aug 2020)
422
-
423
- - Added multisite support for media files validation
424
- - Added Tracks for SQL and media file validation events
425
-
426
- https://github.com/Automattic/vip/releases/tag/v1.12.0
427
-
428
- ### 1.11.2 (17 Aug 2020)
429
-
430
- - Added support for multiple nested folders for the media file validation command
431
-
432
- https://github.com/Automattic/vip/releases/tag/v1.11.2
433
-
434
- ### 1.11.1 (17 Aug 2020)
435
-
436
- - Added fix to process the import validation subcommands
437
-
438
- https://github.com/Automattic/vip/releases/tag/v1.11.1
439
-
440
- ### 1.11.0 (17 Aug 2020)
441
-
442
- - Added `vip import validate sql` and `vip import validate files` commands to run static validation checks for SQL and media files for imports
443
-
444
- https://github.com/Automattic/vip/releases/tag/v1.11.0
445
-
446
- ### 1.10.0 (12 Jun 2020)
447
-
448
- - Added support for specifying a SOCKS proxy through the environment variable VIP_PROXY
449
-
450
- https://github.com/Automattic/vip/releases/tag/v1.10.0
451
-
452
- ### 1.9.0 (30 Mar 2020)
453
-
454
- - Added support for [opting out of usage tracking](https://github.com/Automattic/vip/tree/e54d9ee0ce2dd4725ca8718b3aba06db24306ad7#analytics) via `DO_NOT_TRACK` environment variable #547
455
- - Fix interactive commands not working correctly #478
456
- - Show usage information when an unsupported command is entered #527
457
- - Dependency & dev dependency upgrades
458
-
459
- https://github.com/Automattic/vip/releases/tag/v1.9.0
460
-
461
- ### 1.8.0 (25 Sep 2019)
462
-
463
- - Fixes around cancelling commands via Ctrl-C
464
- - Gracefully handle remote command cancellation
465
- - Enhance Rollbar logging for additional use cases
466
-
467
- https://github.com/Automattic/vip/releases/tag/v1.8.0
468
-
469
- ### 1.7.0 (15 Aug 15 2019)
470
-
471
- - Resume long-running WP-CLI commands in case of network interruptions
472
-
473
- https://github.com/Automattic/vip/releases/tag/v1.7.0
474
-
475
- ### 1.6.2 (25 Jul 2019)
476
-
477
- - Corrected some install issues with the 1.6.0/1.6.1 releases.
478
-
479
- https://github.com/Automattic/vip/releases/tag/v1.6.2
480
-
481
- ### 1.6.1 (25 Jul 2019)
482
-
483
- - Intermittent release to test some issues with v1.6.0
484
-
485
- https://github.com/Automattic/vip/releases/tag/v1.6.1
486
-
487
- ### 1.6.0 (25 Jul 2019)
488
-
489
- - We added ability to cancel running commands.
490
- - We fixed an issue with trailing characters such as line breaks affecting use of command output by scripts.
491
- - Various dependancy updates.
492
-
493
- https://github.com/Automattic/vip/releases/tag/v1.6.0
494
-
495
- ### 1.5.0 (15 Jul 2019)
496
-
497
- - Added `--yes` flag for WP-CLI commands to skip confirmation on production environments.
498
- - We fixed the character limit errors raised when running long WP-CLI commands.
499
- - We've added Rollbar to allow us to monitor and address errors
500
- - We updated third party dependencies to newer, more secure versions.
501
-
502
- https://github.com/Automattic/vip/releases/tag/v1.5.0
503
-
504
- ### 1.4.1 (29 Apr 2019)
505
-
506
- - No functional changes, 1.4.0 was already taken on NPM :)
507
-
508
- https://github.com/Automattic/vip/releases/tag/1.4.1
509
-
510
- ### 1.4.0 (29 Apr 2019)
511
-
512
- - Added "environment alias" support (`vip @my-site.env sync`)
513
- - Added support for WP-CLI commands
514
- - Misc. dependency updates
515
-
516
- https://github.com/Automattic/vip/releases/tag/1.4.0
517
-
518
- ### 1.3.0 (1 Feb 2019)
519
-
520
- - We now display information header for every `vip app --app` execution [(#223)](https://github.com/Automattic/vip/pull/223).
521
- - We fixed the logout bug asking the user to login before being able to logout [(#222)](https://github.com/Automattic/vip/pull/222) and we also display a message when a user logout [(#221)](https://github.com/Automattic/vip/pull/221).
522
- - We replaced `inquirer` with `enquirer` [(#229)](https://github.com/Automattic/vip/pull/229).
523
- - We fixed a bug where we didn't check if we can sync to an environment before accessing some information about it [(#230)](https://github.com/Automattic/vip/pull/230).
524
- - We fixed an `EPIPE` bug when hitting `q` in `app list` command [(#225)](https://github.com/Automattic/vip/pull/225).
525
- - We updated third party dependencies to newer, more secure versions.
526
-
527
- https://github.com/Automattic/vip/releases/tag/v1.3.0
528
-
529
- ### 1.2.1 (5 Dec 2018)
530
-
531
- - The `1.2.0` version was containing a bug and we published a patch to fix it. Please use this version instead.
532
-
533
- https://github.com/Automattic/vip/releases/tag/v1.2.1
534
-
535
- ### 1.2.0 (5 Dec 2018)
536
-
537
- - We now display a preview of the `sync` feature with the backup time and the search/replace taking place in your database.
538
- - We now display your mapped domain instead of the placeholder `go-vip.co` domain in `vip app` and `vip app list`.
539
- - We now display a better message when an app does not have any non-production environments.
540
- - We fixed a bug where the help menu was not showing until you're logged in.
541
- - We updated third party dependencies to newer, more secure versions.
542
-
543
- https://github.com/Automattic/vip/releases/tag/v1.2.0
544
-
545
- ### 1.1.1 (1 Nov 2018)
546
-
547
- - Updates dependencies to fix a bug introduced by sub-dependencies.
548
-
549
- https://github.com/Automattic/vip/releases/tag/v1.1.1
550
-
551
- ### 1.1.0 (12 Jul 2018)
552
-
553
- - We now correctly report errors when `vip sync` fails. Previously, this would incorrectly report that a sync was run previously.
554
- - We fixed permissions issues for some users with `admin` access for repos. They were unable to properly view and access applications.
555
- - We now display more applications in `vip app list` (up to 100!) and have made it easier to browse through a large list thanks to (`$PAGER`|`less`) support. Previously you would only see the first 10 applications in your account.
556
-
557
- https://github.com/Automattic/vip/releases/tag/v1.1.0
558
-
559
- ### 1.0.0 (2 Jul 2018)
560
-
561
- The first release!
562
-
563
- - `vip app list`: view a list of all your applications.
564
- - `vip app`: view details about one of your applications.
565
- - `vip sync`: trigger [a data sync](https://vip.wordpress.com/2018/03/28/data-sync-on-vip-go/) to synchronize data from your production environment to non-production environments.
566
-
567
- https://github.com/Automattic/vip/releases/tag/v1.0.0
@@ -68,8 +68,6 @@ services:
68
68
  command: docker-entrypoint.sh mysqld
69
69
  ports:
70
70
  - ":3306"
71
- healthcheck:
72
- test: 'mysql -uroot --silent --execute "SHOW DATABASES;"'
73
71
  environment:
74
72
  MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 'true'
75
73
  volumes:
@@ -92,7 +90,7 @@ services:
92
90
  environment:
93
91
  UPLOAD_LIMIT: 4G
94
92
  <% } %>
95
- <% if ( enterpriseSearchEnabled ) { %>
93
+ <% if ( elasticsearchEnabled ) { %>
96
94
  vip-search:
97
95
  type: compose
98
96
  services:
@@ -106,8 +104,6 @@ services:
106
104
  discovery.type: 'single-node'
107
105
  ports:
108
106
  - ":9200"
109
- healthcheck:
110
- test: "curl --noproxy '*' -XGET localhost:9200"
111
107
  volumes:
112
108
  - search_data:/usr/share/elasticsearch/data
113
109
  volumes:
@@ -151,7 +147,7 @@ services:
151
147
  mu-plugins: {}
152
148
  <% } %>
153
149
 
154
- <% if ( clientCode.mode == 'image' ) { %>
150
+ <% if ( appCode.mode == 'image' ) { %>
155
151
  client-code:
156
152
  type: compose
157
153
  services:
@@ -209,7 +205,7 @@ tooling:
209
205
  <% } else { %>
210
206
  - <%= muPlugins.dir %>:/wp/wp-content/mu-plugins
211
207
  <% } %>
212
- <% if ( clientCode.mode == 'image' ) { %>
208
+ <% if ( appCode.mode == 'image' ) { %>
213
209
  - type: volume
214
210
  source: clientcode_clientmuPlugins
215
211
  target: /wp/wp-content/client-mu-plugins
@@ -247,12 +243,12 @@ tooling:
247
243
  volume:
248
244
  nocopy: true
249
245
  <% } else { %>
250
- - <%= clientCode.dir %>/client-mu-plugins:/wp/wp-content/client-mu-plugins
251
- - <%= clientCode.dir %>/images:/wp/wp-content/images
252
- - <%= clientCode.dir %>/languages:/wp/wp-content/languages
253
- - <%= clientCode.dir %>/plugins:/wp/wp-content/plugins
254
- - <%= clientCode.dir %>/private:/wp/wp-content/private
255
- - <%= clientCode.dir %>/themes:/wp/wp-content/themes
256
- - <%= clientCode.dir %>/vip-config:/wp/wp-content/vip-config
246
+ - <%= appCode.dir %>/client-mu-plugins:/wp/wp-content/client-mu-plugins
247
+ - <%= appCode.dir %>/images:/wp/wp-content/images
248
+ - <%= appCode.dir %>/languages:/wp/wp-content/languages
249
+ - <%= appCode.dir %>/plugins:/wp/wp-content/plugins
250
+ - <%= appCode.dir %>/private:/wp/wp-content/private
251
+ - <%= appCode.dir %>/themes:/wp/wp-content/themes
252
+ - <%= appCode.dir %>/vip-config:/wp/wp-content/vip-config
257
253
  <% } %>
258
254
  <% } %>
@@ -0,0 +1,90 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ *
5
+ * @format
6
+ */
7
+
8
+ /**
9
+ * External dependencies
10
+ */
11
+
12
+ /**
13
+ * Internal dependencies
14
+ */
15
+ "use strict";
16
+
17
+ var _tracker = require("../lib/tracker");
18
+
19
+ var _command = _interopRequireDefault(require("../lib/cli/command"));
20
+
21
+ var _format = require("../lib/cli/format");
22
+
23
+ var _software = require("../lib/config/software");
24
+
25
+ var _userError = _interopRequireDefault(require("../lib/cli/userError"));
26
+
27
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28
+
29
+ // Command examples
30
+ const examples = [{
31
+ usage: 'vip config software get wordpress --format json',
32
+ description: 'Read current software settings for WordPress in JSON format'
33
+ }, {
34
+ usage: 'vip config software get',
35
+ description: 'Read current software settings for all components'
36
+ }];
37
+ (0, _command.default)({
38
+ appContext: true,
39
+ appQuery: _software.appQuery,
40
+ appQueryFragments: _software.appQueryFragments,
41
+ envContext: true,
42
+ wildcardCommand: true,
43
+ format: true,
44
+ usage: 'vip config software get <wordpress|php|nodejs|muplugins>'
45
+ }).examples(examples).argv(process.argv, async (arg, opt) => {
46
+ var _opt$env;
47
+
48
+ const trackingInfo = {
49
+ environment_id: (_opt$env = opt.env) === null || _opt$env === void 0 ? void 0 : _opt$env.id,
50
+ args: JSON.stringify(arg)
51
+ };
52
+ await (0, _tracker.trackEvent)('config_software_get_execute', trackingInfo);
53
+ const {
54
+ softwareSettings
55
+ } = opt.env;
56
+
57
+ if (softwareSettings === null) {
58
+ throw new _userError.default('Software settings are not supported for this environment.');
59
+ }
60
+
61
+ let chosenSettings = [];
62
+
63
+ if (arg.length > 0) {
64
+ const component = arg[0];
65
+
66
+ if (!softwareSettings[component]) {
67
+ throw new _userError.default(`Software settings for ${component} are not supported for this environment.`);
68
+ }
69
+
70
+ chosenSettings = [softwareSettings[component]];
71
+ } else {
72
+ chosenSettings = [softwareSettings.wordpress, softwareSettings.php, softwareSettings.muplugins, softwareSettings.nodejs];
73
+ }
74
+
75
+ const preFormatted = chosenSettings.filter(softwareSetting => !!softwareSetting).map(softwareSetting => {
76
+ let version = softwareSetting.current.version;
77
+
78
+ if (softwareSetting.slug === 'wordpress' && !softwareSetting.pinned) {
79
+ version += ' (managed updates)';
80
+ }
81
+
82
+ return {
83
+ name: softwareSetting.name,
84
+ slug: softwareSetting.slug,
85
+ version
86
+ };
87
+ });
88
+ console.log((0, _format.formatData)(preFormatted, opt.format));
89
+ await (0, _tracker.trackEvent)('config_software_get_success', trackingInfo);
90
+ });