@bakers-build/addon-docker-compose 0.6.1-next.4 → 0.6.1-next.6
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/README.md +1 -1
- package/dist/src/discovery.d.ts +3 -4
- package/dist/src/discovery.js +12 -13
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# @bakers-build/addon-docker-compose
|
|
2
2
|
|
|
3
|
-
Generic Docker Compose discovery: containers, bound ports, in-container sockets and supervisor status for a worktree
|
|
3
|
+
Generic Docker Compose discovery: containers, bound ports, in-container sockets and supervisor status for a worktree.
|
|
4
4
|
|
|
5
5
|
Part of the bakers.build CLI. Install the meta package `@bakers-build/bakers` to get the `bakers` CLI with all addons. Source: https://github.com/bakers-build/bakers-build (bakers-cli/).
|
package/dist/src/discovery.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface ComposeSocket {
|
|
|
30
30
|
/** The bind address `ss`/`/proc/net/tcp` reported — `127.0.0.11` is
|
|
31
31
|
* Docker's own embedded DNS resolver stub inside every container's
|
|
32
32
|
* network namespace, never an operator-addressable service; a consumer
|
|
33
|
-
* (`listeningSibling
|
|
33
|
+
* (`listeningSibling`) excludes it when picking a
|
|
34
34
|
* diagnostic "what IS listening" candidate for a dead claim. */
|
|
35
35
|
readonly address?: string;
|
|
36
36
|
readonly pid?: number;
|
|
@@ -118,9 +118,8 @@ export declare function parseSupervisorStatus(text: string): SupervisorEntry[];
|
|
|
118
118
|
* Discover this worktree's Docker Compose containers: `docker ps -a` (label
|
|
119
119
|
* filters supplied by the caller — `com.docker.compose.project.working_dir`
|
|
120
120
|
* is always included, since that is the label Compose itself sets; a
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* label means), `docker inspect`, and one bounded per-running-container
|
|
121
|
+
* caller passes `extraLabelFilters` to union its runtime's own worktree label,
|
|
122
|
+
* without this package knowing what that label means), `docker inspect`, and one bounded per-running-container
|
|
124
123
|
* `docker exec` (socket `ss -ltnp` + `supervisorctl status`, run concurrently
|
|
125
124
|
* across containers, pid-correlated).
|
|
126
125
|
*/
|
package/dist/src/discovery.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
// BB-676 spec v2 — generic Docker Compose discovery, no
|
|
1
|
+
// BB-676 spec v2 — generic Docker Compose discovery, no knowledge of any one
|
|
2
|
+
// container runtime.
|
|
2
3
|
//
|
|
3
|
-
// Split out of `@bakers-build/addon-ports` (operator decision 2026-10-15:
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
// consumer's job — see `@bakers-build/addon-ddev`.
|
|
4
|
+
// Split out of `@bakers-build/addon-ports` (operator decision 2026-10-15: the
|
|
5
|
+
// ports addon must not fire runtime commands itself) so firing `docker` is not
|
|
6
|
+
// that package's job. This package knows nothing about `HTTP(S)_EXPOSE`,
|
|
7
|
+
// `VIRTUAL_HOST` or any other runtime convention — it reports containers, their
|
|
8
|
+
// labels/env/bound ports, and the confirmed in-container sockets + supervisor
|
|
9
|
+
// daemons, correlated by pid. Interpreting what those mean (a router mapping,
|
|
10
|
+
// a Drupal site, …) is a consumer's job.
|
|
11
11
|
/** Exit 126 is POSIX "found but not executable" OR (many shells/`docker
|
|
12
12
|
* exec`) "command not found" — both reuse 126 instead of 127 in practice.
|
|
13
13
|
* Only a stderr phrase that clearly says "permission denied" counts as the
|
|
@@ -212,9 +212,8 @@ export function parseSupervisorStatus(text) {
|
|
|
212
212
|
* Discover this worktree's Docker Compose containers: `docker ps -a` (label
|
|
213
213
|
* filters supplied by the caller — `com.docker.compose.project.working_dir`
|
|
214
214
|
* is always included, since that is the label Compose itself sets; a
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
* label means), `docker inspect`, and one bounded per-running-container
|
|
215
|
+
* caller passes `extraLabelFilters` to union its runtime's own worktree label,
|
|
216
|
+
* without this package knowing what that label means), `docker inspect`, and one bounded per-running-container
|
|
218
217
|
* `docker exec` (socket `ss -ltnp` + `supervisorctl status`, run concurrently
|
|
219
218
|
* across containers, pid-correlated).
|
|
220
219
|
*/
|
|
@@ -409,7 +408,7 @@ export async function discoverCompose(worktree, deps, opts) {
|
|
|
409
408
|
// D/4: exit 127 means `supervisorctl` is not installed in this
|
|
410
409
|
// image at all (phpMyAdmin, OpenSearch, OpenSearch Dashboards,
|
|
411
410
|
// `db`, …) — an absent tool is not a probe failure, just "this
|
|
412
|
-
// container has no supervisor" (true of most non-
|
|
411
|
+
// container has no supervisor" (true of most non-web
|
|
413
412
|
// containers), and must never withhold an unrelated reap record.
|
|
414
413
|
// Exit 126 without a "permission denied" stderr signal is treated
|
|
415
414
|
// the same way — some engines report a missing binary as 126
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/addon-docker-compose",
|
|
3
|
-
"version": "0.6.1-next.
|
|
4
|
-
"description": "Generic Docker Compose discovery: containers, bound ports, in-container sockets and supervisor status for a worktree
|
|
3
|
+
"version": "0.6.1-next.6",
|
|
4
|
+
"description": "Generic Docker Compose discovery: containers, bound ports, in-container sockets and supervisor status for a worktree.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"exports": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"directory": "bakers-cli/addons/docker-compose"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@bakers-build/core": "^0.6.1-next.
|
|
22
|
+
"@bakers-build/core": "^0.6.1-next.6"
|
|
23
23
|
},
|
|
24
24
|
"bakersBuild": {
|
|
25
|
-
"commit": "
|
|
25
|
+
"commit": "12b97ff4aa2422d69dab286141f3234609f32351",
|
|
26
26
|
"channel": "next"
|
|
27
27
|
}
|
|
28
28
|
}
|