@bakers-build/addon-runtime-docker 0.10.1-next.1 → 0.10.1-next.11
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/src/args.js +32 -0
- package/package.json +4 -4
package/dist/src/args.js
CHANGED
|
@@ -3,6 +3,37 @@ export const RUN_PATH = `/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin
|
|
|
3
3
|
export const PROXY_PORTS = { egress: 3128, api: 8081, tools: 8082 };
|
|
4
4
|
/** What the run sends as its API key in allowlist mode; the proxy swaps in the real one. */
|
|
5
5
|
export const API_KEY_PLACEHOLDER = 'bb-runtime-placeholder';
|
|
6
|
+
/**
|
|
7
|
+
* The pane's terminal and locale variables, passed by name so the docker client
|
|
8
|
+
* forwards only those set in its shell. Docker has no wildcard, hence the glibc
|
|
9
|
+
* `LC_*` categories. shortcut: kept apart from runtime-bwrap's regex, move into
|
|
10
|
+
* core if a third runtime needs it.
|
|
11
|
+
*/
|
|
12
|
+
const TERMINAL = [
|
|
13
|
+
'TERM',
|
|
14
|
+
'COLORTERM',
|
|
15
|
+
'TERM_PROGRAM',
|
|
16
|
+
'TERM_PROGRAM_VERSION',
|
|
17
|
+
'LANG',
|
|
18
|
+
'LANGUAGE',
|
|
19
|
+
'NO_COLOR',
|
|
20
|
+
'FORCE_COLOR',
|
|
21
|
+
...[
|
|
22
|
+
'ALL',
|
|
23
|
+
'CTYPE',
|
|
24
|
+
'NUMERIC',
|
|
25
|
+
'TIME',
|
|
26
|
+
'COLLATE',
|
|
27
|
+
'MONETARY',
|
|
28
|
+
'MESSAGES',
|
|
29
|
+
'PAPER',
|
|
30
|
+
'NAME',
|
|
31
|
+
'ADDRESS',
|
|
32
|
+
'TELEPHONE',
|
|
33
|
+
'MEASUREMENT',
|
|
34
|
+
'IDENTIFICATION',
|
|
35
|
+
].map((category) => `LC_${category}`),
|
|
36
|
+
];
|
|
6
37
|
/** Keys whose host value means nothing inside the container. */
|
|
7
38
|
const HOST_ONLY = (key) => key === 'PATH' ||
|
|
8
39
|
key === 'HOME' ||
|
|
@@ -36,6 +67,7 @@ export function dockerArgs(input, opts, where) {
|
|
|
36
67
|
!overridden.has(k) &&
|
|
37
68
|
// Allowlist mode keeps the model credential in the proxy only.
|
|
38
69
|
!(allowlist && credentials.includes(k)));
|
|
70
|
+
forwarded.push(...TERMINAL.filter((k) => !forwarded.includes(k)));
|
|
39
71
|
const ro = (path) => bind(path, path, ':ro');
|
|
40
72
|
const argv = [
|
|
41
73
|
opts.docker,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/addon-runtime-docker",
|
|
3
|
-
"version": "0.10.1-next.
|
|
3
|
+
"version": "0.10.1-next.11",
|
|
4
4
|
"description": "Start each agent run in its own Docker or Podman container.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"directory": "bakers-cli/addons/runtime-docker"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@bakers-build/conductor": "^0.10.1-next.
|
|
27
|
-
"@bakers-build/core": "^0.10.1-next.
|
|
26
|
+
"@bakers-build/conductor": "^0.10.1-next.11",
|
|
27
|
+
"@bakers-build/core": "^0.10.1-next.11"
|
|
28
28
|
},
|
|
29
29
|
"bakersBuild": {
|
|
30
|
-
"commit": "
|
|
30
|
+
"commit": "a17110983f32ae027848c103b31ddb07fbf21a8e",
|
|
31
31
|
"channel": "next"
|
|
32
32
|
}
|
|
33
33
|
}
|