mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
Debian's docker-cli carries Go 1.24.4, whose standard library advisories were most of the Quay and Artifact Hub scans of the image, and only the UCS migration used it, for docker exec. The migration's mongo and mongoexport wrappers now run releases/ucs-migration/docker-exec.mjs, which speaks the Docker Engine API over the mounted socket with the same stdout, stderr and exit status, and the image installs no Docker CLI. Thanks to xet7 !
11 lines
444 B
JavaScript
11 lines
444 B
JavaScript
'use strict';
|
|
const assert = require('node:assert/strict');
|
|
const { spawnSync } = require('node:child_process');
|
|
const path = require('node:path');
|
|
const result = spawnSync(process.execPath, ['--test', path.join(__dirname, 'ucsDockerExec.test.mjs')], {
|
|
encoding: 'utf8', env: process.env,
|
|
});
|
|
process.stdout.write(result.stdout);
|
|
process.stderr.write(result.stderr);
|
|
assert.equal(result.status, 0, 'UCS docker-exec regression tests failed');
|