@scandipwa/magento-scripts 2.4.0-alpha.1 → 2.4.0-alpha.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.
Files changed (51) hide show
  1. package/lib/config/docker.js +164 -56
  2. package/lib/config/port-config.js +46 -10
  3. package/lib/config/services/elasticsearch/default-es-env.js +1 -1
  4. package/lib/config/services/mariadb/versions/mariadb-10.2.js +3 -1
  5. package/lib/config/services/mariadb/versions/mariadb-10.3.js +3 -1
  6. package/lib/config/services/mariadb/versions/mariadb-10.4.js +3 -1
  7. package/lib/config/services/mariadb/versions/mariadb-10.6.js +3 -1
  8. package/lib/config/services/mariadb/versions/mariadb-11.4.js +3 -1
  9. package/lib/config/services/mariadb/versions/mariadb-11.6.js +3 -1
  10. package/lib/config/services/opensearch/default-os-env.js +1 -1
  11. package/lib/config/services/php/extensions/xdebug.js +1 -0
  12. package/lib/config/templates/nginx.template.conf +2 -2
  13. package/lib/config/templates/php-fpm.template.conf +1 -1
  14. package/lib/config/templates/ssl-terminator.template.conf +1 -1
  15. package/lib/tasks/database/create-magento-database.js +2 -1
  16. package/lib/tasks/database/import-remote-db/ssh/index.js +1 -1
  17. package/lib/tasks/database/import-remote-db/ssh/readymage.js +1 -1
  18. package/lib/tasks/database/import-remote-db/ssh/regular-server.js +1 -1
  19. package/lib/tasks/docker/containers/container-api.d.ts +5 -0
  20. package/lib/tasks/docker/containers/container-api.js +3 -1
  21. package/lib/tasks/docker/containers/tasks.js +86 -21
  22. package/lib/tasks/docker/project-image-builder.js +55 -45
  23. package/lib/tasks/docker/system/system-api.d.ts +66 -0
  24. package/lib/tasks/docker/system/system-api.js +28 -1
  25. package/lib/tasks/execute.js +1 -1
  26. package/lib/tasks/file-system/create-nginx-config.js +22 -8
  27. package/lib/tasks/file-system/create-ssl-terminator-config.js +20 -7
  28. package/lib/tasks/magento/install-magento-project.js +40 -24
  29. package/lib/tasks/magento/setup-magento/check-file-permissions.php +32 -0
  30. package/lib/tasks/magento/setup-magento/index.js +2 -0
  31. package/lib/tasks/magento/setup-magento/make-magento-binaries-executable.js +44 -0
  32. package/lib/tasks/magento/setup-magento/setup-file-permissions.js +160 -0
  33. package/lib/tasks/php/php-container.js +20 -6
  34. package/lib/tasks/php/update-env-php.js +3 -9
  35. package/lib/tasks/requirements/cgroup-version.js +69 -0
  36. package/lib/tasks/requirements/elasticsearch-version.js +19 -3
  37. package/lib/tasks/requirements/index.js +3 -0
  38. package/lib/tasks/requirements/opensearch-version.js +1 -1
  39. package/lib/tasks/requirements/searchengine-version.js +1 -2
  40. package/lib/util/dockerfile-builder/build-instructions.js +5 -1
  41. package/lib/util/dockerfile-builder/types.d.ts +1 -1
  42. package/lib/util/execute-in-container.js +3 -1
  43. package/lib/util/get-installed-magento-version.js +60 -2
  44. package/lib/util/portscanner.js +3 -3
  45. package/lib/util/run-composer.js +1 -1
  46. package/lib/util/run-magento.js +2 -1
  47. package/lib/util/run-php.js +2 -1
  48. package/lib/util/set-config.js +4 -2
  49. package/package.json +16 -16
  50. package/typings/context.d.ts +4 -2
  51. package/typings/index.d.ts +10 -0
@@ -24,6 +24,7 @@ export interface ListrContext {
24
24
  phpVersion: string
25
25
  elasticSearchVersion: string
26
26
  openSearchVersion: string
27
+ cgroupVersion: 'v1' | 'v2'
27
28
  port?: number
28
29
  ports: {
29
30
  app: number
@@ -56,8 +57,8 @@ export interface ListrContext {
56
57
  isArm: boolean
57
58
  isWsl: boolean
58
59
  isArmMac: boolean
59
- platform?: NodeJS.Platform
60
- platformVersion?: string
60
+ platform: NodeJS.Platform
61
+ platformVersion: string
61
62
  /**
62
63
  * Magento Edition
63
64
  *
@@ -116,6 +117,7 @@ export interface ListrContext {
116
117
  name: string
117
118
  command: string
118
119
  connectCommand: string[]
120
+ dependsOn?: string[]
119
121
  }
120
122
  >
121
123
  }
@@ -30,6 +30,16 @@ export interface MariaDBConfiguration extends ServiceWithImage {
30
30
  * Allows to be boolean or custom value that will be set in the template
31
31
  */
32
32
  useOptimizerSwitch?: boolean | string
33
+
34
+ /**
35
+ * `mariadb` file name to be used in the shell
36
+ */
37
+ binFileName?: string
38
+
39
+ /**
40
+ * `mariadb-admin` file name to be used in the shell, for heathcheck
41
+ */
42
+ binAdminFileName?: string
33
43
  }
34
44
 
35
45
  export interface SSLTerminatorConfiguration extends ServiceWithImage {