@bakers-build/addon-runtime-docker 0.21.0 → 0.21.1-next.2
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/backend.js +4 -3
- package/options.schema.json +1 -1
- package/package.json +5 -5
package/dist/src/backend.js
CHANGED
|
@@ -4,7 +4,7 @@ import { existsSync, mkdirSync, realpathSync, rmSync, writeFileSync, } from 'nod
|
|
|
4
4
|
import { homedir } from 'node:os';
|
|
5
5
|
import { dirname, isAbsolute, join, resolve, sep } from 'node:path';
|
|
6
6
|
import { promisify } from 'node:util';
|
|
7
|
-
import { shellQuote } from '@bakers-build/core';
|
|
7
|
+
import { DispatchBlocked, shellQuote, } from '@bakers-build/core';
|
|
8
8
|
import { API_KEY_PLACEHOLDER, dockerArgs, PROXY_PORTS, } from './args.js';
|
|
9
9
|
const EGRESS_NETWORK = 'bb-runtime-egress';
|
|
10
10
|
/** The first 12 hex chars of the sha256 of `text`. */
|
|
@@ -140,7 +140,8 @@ export function dockerRuntime(options, deps) {
|
|
|
140
140
|
if (source[k])
|
|
141
141
|
credentials[k] = source[k];
|
|
142
142
|
if (api && Object.keys(credentials).length === 0)
|
|
143
|
-
|
|
143
|
+
// Env files are read at start: only a restart, which drops every hold, heals this.
|
|
144
|
+
throw new DispatchBlocked(`runtime-docker: ${api.credentialHint}`, () => false);
|
|
144
145
|
return credentials;
|
|
145
146
|
};
|
|
146
147
|
const runtime = {
|
|
@@ -177,7 +178,7 @@ export function dockerRuntime(options, deps) {
|
|
|
177
178
|
await imagesReady.get(ready);
|
|
178
179
|
if (allowlist) {
|
|
179
180
|
if (!gateway || !toolsPort)
|
|
180
|
-
throw new Error('runtime-docker: allowlist mode needs the
|
|
181
|
+
throw new Error('runtime-docker: allowlist mode needs the runner tool server; it was not started');
|
|
181
182
|
const hash = shortHash(JSON.stringify([
|
|
182
183
|
gateway,
|
|
183
184
|
toolsPort,
|
package/options.schema.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"network": {
|
|
23
23
|
"enum": ["host", "allowlist"],
|
|
24
24
|
"default": "host",
|
|
25
|
-
"description": "host shares the host network; allowlist routes the run through the
|
|
25
|
+
"description": "host shares the host network; allowlist routes the run through the runner's proxy."
|
|
26
26
|
},
|
|
27
27
|
"allow": {
|
|
28
28
|
"type": "array",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/addon-runtime-docker",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.1-next.2",
|
|
4
4
|
"description": "Start each agent run in its own Docker or Podman container.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"directory": "bakers-cli/addons/runtime-docker"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@bakers-build/conductor": "^0.21.
|
|
28
|
-
"@bakers-build/core": "^0.21.
|
|
27
|
+
"@bakers-build/conductor": "^0.21.1-next.2",
|
|
28
|
+
"@bakers-build/core": "^0.21.1-next.2"
|
|
29
29
|
},
|
|
30
30
|
"bakersBuild": {
|
|
31
|
-
"commit": "
|
|
32
|
-
"channel": "
|
|
31
|
+
"commit": "a87e7555360eb6a9ec167dc172c66d8e98293e34",
|
|
32
|
+
"channel": "next"
|
|
33
33
|
}
|
|
34
34
|
}
|