@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.
- package/lib/config/docker.js +164 -56
- package/lib/config/port-config.js +46 -10
- package/lib/config/services/elasticsearch/default-es-env.js +1 -1
- package/lib/config/services/mariadb/versions/mariadb-10.2.js +3 -1
- package/lib/config/services/mariadb/versions/mariadb-10.3.js +3 -1
- package/lib/config/services/mariadb/versions/mariadb-10.4.js +3 -1
- package/lib/config/services/mariadb/versions/mariadb-10.6.js +3 -1
- package/lib/config/services/mariadb/versions/mariadb-11.4.js +3 -1
- package/lib/config/services/mariadb/versions/mariadb-11.6.js +3 -1
- package/lib/config/services/opensearch/default-os-env.js +1 -1
- package/lib/config/services/php/extensions/xdebug.js +1 -0
- package/lib/config/templates/nginx.template.conf +2 -2
- package/lib/config/templates/php-fpm.template.conf +1 -1
- package/lib/config/templates/ssl-terminator.template.conf +1 -1
- package/lib/tasks/database/create-magento-database.js +2 -1
- package/lib/tasks/database/import-remote-db/ssh/index.js +1 -1
- package/lib/tasks/database/import-remote-db/ssh/readymage.js +1 -1
- package/lib/tasks/database/import-remote-db/ssh/regular-server.js +1 -1
- package/lib/tasks/docker/containers/container-api.d.ts +5 -0
- package/lib/tasks/docker/containers/container-api.js +3 -1
- package/lib/tasks/docker/containers/tasks.js +86 -21
- package/lib/tasks/docker/project-image-builder.js +55 -45
- package/lib/tasks/docker/system/system-api.d.ts +66 -0
- package/lib/tasks/docker/system/system-api.js +28 -1
- package/lib/tasks/execute.js +1 -1
- package/lib/tasks/file-system/create-nginx-config.js +22 -8
- package/lib/tasks/file-system/create-ssl-terminator-config.js +20 -7
- package/lib/tasks/magento/install-magento-project.js +40 -24
- package/lib/tasks/magento/setup-magento/check-file-permissions.php +32 -0
- package/lib/tasks/magento/setup-magento/index.js +2 -0
- package/lib/tasks/magento/setup-magento/make-magento-binaries-executable.js +44 -0
- package/lib/tasks/magento/setup-magento/setup-file-permissions.js +160 -0
- package/lib/tasks/php/php-container.js +20 -6
- package/lib/tasks/php/update-env-php.js +3 -9
- package/lib/tasks/requirements/cgroup-version.js +69 -0
- package/lib/tasks/requirements/elasticsearch-version.js +19 -3
- package/lib/tasks/requirements/index.js +3 -0
- package/lib/tasks/requirements/opensearch-version.js +1 -1
- package/lib/tasks/requirements/searchengine-version.js +1 -2
- package/lib/util/dockerfile-builder/build-instructions.js +5 -1
- package/lib/util/dockerfile-builder/types.d.ts +1 -1
- package/lib/util/execute-in-container.js +3 -1
- package/lib/util/get-installed-magento-version.js +60 -2
- package/lib/util/portscanner.js +3 -3
- package/lib/util/run-composer.js +1 -1
- package/lib/util/run-magento.js +2 -1
- package/lib/util/run-php.js +2 -1
- package/lib/util/set-config.js +4 -2
- package/package.json +16 -16
- package/typings/context.d.ts +4 -2
- package/typings/index.d.ts +10 -0
package/typings/context.d.ts
CHANGED
|
@@ -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
|
|
60
|
-
platformVersion
|
|
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
|
}
|
package/typings/index.d.ts
CHANGED
|
@@ -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 {
|