@curaious/uno 0.1.15 → 0.1.17
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/bin/cli.js +15 -1
- package/deployments/docker-compose.yaml +2 -0
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -70,6 +70,20 @@ function runDockerCompose(args, options = {}) {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
// Set RUNTIME_ENABLED based on profiles
|
|
74
|
+
if (options.profiles) {
|
|
75
|
+
const runtimeEnabled = [];
|
|
76
|
+
if (options.profiles.includes('temporal') || options.profiles.includes('all')) {
|
|
77
|
+
runtimeEnabled.push('temporal');
|
|
78
|
+
}
|
|
79
|
+
if (options.profiles.includes('restate') || options.profiles.includes('all')) {
|
|
80
|
+
runtimeEnabled.push('restate');
|
|
81
|
+
}
|
|
82
|
+
if (runtimeEnabled.length > 0) {
|
|
83
|
+
env.UNO_RUNTIME_ENABLED = runtimeEnabled.join(',');
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
73
87
|
const proc = spawn('docker', composeArgs, {
|
|
74
88
|
stdio: 'inherit',
|
|
75
89
|
cwd: DEPLOYMENTS_DIR,
|
|
@@ -180,7 +194,7 @@ async function main() {
|
|
|
180
194
|
dockerArgs.push(...composeArgs);
|
|
181
195
|
}
|
|
182
196
|
|
|
183
|
-
runDockerCompose(dockerArgs);
|
|
197
|
+
runDockerCompose(dockerArgs, { profiles: profiles });
|
|
184
198
|
}
|
|
185
199
|
|
|
186
200
|
main().catch((err) => {
|