@scandipwa/magento-scripts 2.4.6 → 2.4.7-alpha.1
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
CHANGED
|
@@ -114,11 +114,11 @@ module.exports = async (ctx, overridenConfiguration, baseConfig) => {
|
|
|
114
114
|
const getContainers = (ports = {}) => {
|
|
115
115
|
const composerAuthEnv = process.env.COMPOSER_AUTH
|
|
116
116
|
? {
|
|
117
|
-
COMPOSER_AUTH: JSON.stringify(
|
|
117
|
+
COMPOSER_AUTH: `'${JSON.stringify(
|
|
118
118
|
JSON.parse(process.env.COMPOSER_AUTH),
|
|
119
119
|
null,
|
|
120
120
|
0
|
|
121
|
-
)
|
|
121
|
+
)}'`
|
|
122
122
|
}
|
|
123
123
|
: {}
|
|
124
124
|
|
|
@@ -125,7 +125,11 @@ const execCommand = (options) => {
|
|
|
125
125
|
: Object.entries(env)
|
|
126
126
|
.map(
|
|
127
127
|
([key, value]) =>
|
|
128
|
-
`--env
|
|
128
|
+
`--env=${key}=${
|
|
129
|
+
typeof value === 'string'
|
|
130
|
+
? value.replaceAll(' ', '\\ ')
|
|
131
|
+
: value
|
|
132
|
+
}`
|
|
129
133
|
)
|
|
130
134
|
.join(' ')
|
|
131
135
|
const ttyArg = tty ? '--tty' : ''
|
|
@@ -62,7 +62,7 @@ const updateEnvPHP = () => ({
|
|
|
62
62
|
REDIS_PORT: ctx.ports.redis,
|
|
63
63
|
ADMIN_URI: ctx.config.overridenConfiguration.magento.adminuri,
|
|
64
64
|
HOST_MACHINE: hostMachine,
|
|
65
|
-
PORTS: JSON.stringify(ctx.ports)
|
|
65
|
+
PORTS: `'${JSON.stringify(ctx.ports)}'`
|
|
66
66
|
},
|
|
67
67
|
command: 'php ./update-env.php',
|
|
68
68
|
mountVolumes: [
|
|
@@ -72,6 +72,7 @@ const updateEnvPHP = () => ({
|
|
|
72
72
|
`${envPhpPath}:${ctx.config.baseConfig.containerMagentoDir}/env.php`
|
|
73
73
|
],
|
|
74
74
|
image: php.image,
|
|
75
|
+
platform: php.platform,
|
|
75
76
|
detach: false,
|
|
76
77
|
rm: true
|
|
77
78
|
})
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Scripts and configuration used by CMA.",
|
|
4
4
|
"homepage": "https://docs.create-magento-app.com/",
|
|
5
5
|
"repository": "github:scandipwa/create-magento-app",
|
|
6
|
-
"version": "2.4.
|
|
6
|
+
"version": "2.4.7-alpha.1",
|
|
7
7
|
"main": "./index.js",
|
|
8
8
|
"types": "./typings/index.d.ts",
|
|
9
9
|
"license": "OSL-3.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"@types/node": "^20.14.11",
|
|
60
60
|
"@types/yargs": "^17.0.32"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "dbcbd214fa9772ecc00fdfc386b2472b23601574"
|
|
63
63
|
}
|