@infosupport/huddle-cli 0.0.0-experiment-147.92.1 → 0.0.0-experiment-147.94.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.
package/dist/index.js CHANGED
@@ -170,7 +170,8 @@ Start options:
170
170
  --workspace-root <path> Container path the IDE opens as project root when using
171
171
  --mount (default: common parent of the mount targets)
172
172
  --name <name> Container name (default: devcontainer-<foldername>)
173
- --image <image> Use a specific image
173
+ --image <image> Use a specific image. Any Debian/Ubuntu/Alpine image works:
174
+ Huddle builds it once with its own layer on top
174
175
  --empty Empty container without a workspace
175
176
 
176
177
  Migrate options:
package/dist/init.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.HOST_SOCKET_DIR = exports.INTERNAL_NET = exports.CONTAINER = void 0;
6
+ exports.SSH_RELAY_PORTS = exports.HOST_SOCKET_DIR = exports.INTERNAL_NET = exports.CONTAINER = void 0;
7
7
  exports.runInit = runInit;
8
8
  const child_process_1 = require("child_process");
9
9
  const crypto_1 = __importDefault(require("crypto"));
@@ -31,6 +31,12 @@ 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
+ /**
35
+ * Ports of the per-devcontainer SSH relays (JetBrains Gateway over SSH), bound to
36
+ * the host's loopback only. Kept in sync with SSH_RELAY_PORT_MIN/MAX in
37
+ * gateway/src/ssh-access.ts.
38
+ */
39
+ exports.SSH_RELAY_PORTS = '2200-2219';
34
40
  // Run a binary with an argv array — NO shell. Values that originate from config
35
41
  // (team-folder paths, which are writable via `huddle firewall folder set` and the
36
42
  // authenticated settings API) must never be interpolated into a shell string, or
@@ -171,6 +177,7 @@ async function runInit(opts, images) {
171
177
  dockerArgs.push('-e', `HUDDLE_RUNTIME=${runtime.name}`);
172
178
  dockerArgs.push('-e', `HUDDLE_OPERATOR_TOKEN=${operatorToken}`);
173
179
  dockerArgs.push('-p', `${HOST_PORT}:3000`);
180
+ dockerArgs.push('-p', `127.0.0.1:${exports.SSH_RELAY_PORTS}:${exports.SSH_RELAY_PORTS}`);
174
181
  dockerArgs.push('-v', `${VOLUME}:/data`);
175
182
  dockerArgs.push('-v', `${runtime.socketPath}:/var/run/docker.sock`);
176
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-147.92.1",
3
+ "version": "0.0.0-experiment-147.94.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.",