@infosupport/huddle-cli 0.0.0-experiment-160.99.1 → 0.0.0-experiment-160.101.1

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.
Files changed (2) hide show
  1. package/dist/init.js +4 -0
  2. package/package.json +1 -1
package/dist/init.js CHANGED
@@ -31,6 +31,9 @@ exports.INTERNAL_NET = 'devcontainer-net';
31
31
  */
32
32
  exports.HOST_SOCKET_DIR = '/tmp/dc-sockets';
33
33
  const HOST_PORT = process.env.HUDDLE_PORT ?? '3000';
34
+ // Host port of the gateway's sbx egress proxy (docs/host-pipe.md). Published on
35
+ // loopback only: the sbx daemon runs on this machine, nothing else needs it.
36
+ const SBX_PROXY_HOST_PORT = process.env.HUDDLE_SBX_PROXY_PORT ?? '32768';
34
37
  // Run a binary with an argv array — NO shell. Values that originate from config
35
38
  // (team-folder paths, which are writable via `huddle firewall folder set` and the
36
39
  // authenticated settings API) must never be interpolated into a shell string, or
@@ -174,6 +177,7 @@ async function runInit(opts, images) {
174
177
  dockerArgs.push('-e', `HUDDLE_RUNTIME=${runtime.name}`);
175
178
  dockerArgs.push('-e', `HUDDLE_OPERATOR_TOKEN=${operatorToken}`);
176
179
  dockerArgs.push('-p', `${HOST_PORT}:3000`);
180
+ dockerArgs.push('-p', `127.0.0.1:${SBX_PROXY_HOST_PORT}:3128`, '-e', `HUDDLE_SBX_PROXY_HOST_PORT=${SBX_PROXY_HOST_PORT}`);
177
181
  dockerArgs.push('-v', `${VOLUME}:/data`);
178
182
  dockerArgs.push('-v', `${runtime.socketPath}:/var/run/docker.sock`);
179
183
  dockerArgs.push('-v', `${hostTmpSockets}:/tmp/dc-sockets`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infosupport/huddle-cli",
3
- "version": "0.0.0-experiment-160.99.1",
3
+ "version": "0.0.0-experiment-160.101.1",
4
4
  "description": "Huddle CLI — start devcontainers and manage firewall rules",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "author": "Info Support B.V.",