@getmonoceros/workbench 1.33.4 → 1.33.5
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/dist/bin.js +11 -4
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -2319,8 +2319,14 @@ function expandCuratedService(name) {
|
|
|
2319
2319
|
// Bake the connection-env templates into the yml (suffix → template) so
|
|
2320
2320
|
// they travel with the service: a renamed/duplicated instance keeps them,
|
|
2321
2321
|
// and `serviceConnectionEnv` prefixes by the instance's current name.
|
|
2322
|
-
...def.connectionEnv ? { connectionEnv: { ...def.connectionEnv } } : {}
|
|
2323
|
-
restart
|
|
2322
|
+
...def.connectionEnv ? { connectionEnv: { ...def.connectionEnv } } : {}
|
|
2323
|
+
// No `restart:` default on purpose (issue #19). The workspace container
|
|
2324
|
+
// carries no restart policy, so on a Docker/host restart it stays down
|
|
2325
|
+
// until `monoceros start`; defaulting services to `unless-stopped` made
|
|
2326
|
+
// them auto-start ALONE, without the workbench they belong to. Leaving it
|
|
2327
|
+
// off keeps the whole compose group's restart behavior uniform - nothing
|
|
2328
|
+
// comes back on its own. `restart` stays a per-service opt-in in the yml
|
|
2329
|
+
// (schema.ts) for builders who deliberately want a policy.
|
|
2324
2330
|
};
|
|
2325
2331
|
}
|
|
2326
2332
|
function curatedServiceEnvDefaults(name) {
|
|
@@ -2493,7 +2499,8 @@ function renderCustomService(name, image) {
|
|
|
2493
2499
|
" - rel/host/path:/in/container:ro",
|
|
2494
2500
|
" healthcheck:",
|
|
2495
2501
|
" test: curl -f http://localhost:8080/health",
|
|
2496
|
-
" restart: unless-stopped"
|
|
2502
|
+
" restart: unless-stopped # optional; off by default so the whole",
|
|
2503
|
+
" # group stays down after a Docker restart"
|
|
2497
2504
|
].join("\n");
|
|
2498
2505
|
return { bodyLines, comment };
|
|
2499
2506
|
}
|
|
@@ -8638,7 +8645,7 @@ var CLI_VERSION;
|
|
|
8638
8645
|
var init_version = __esm({
|
|
8639
8646
|
"src/version.ts"() {
|
|
8640
8647
|
"use strict";
|
|
8641
|
-
CLI_VERSION = true ? "1.33.
|
|
8648
|
+
CLI_VERSION = true ? "1.33.5" : "dev";
|
|
8642
8649
|
}
|
|
8643
8650
|
});
|
|
8644
8651
|
|