fix(terminal): use real TTY exec and resize
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { mkdir } from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
import type { Readable } from 'node:stream';
|
||||
import Docker from 'dockerode';
|
||||
import { execa } from 'execa';
|
||||
|
||||
import { env } from '../env';
|
||||
@@ -10,6 +11,13 @@ type CommandResult = {
|
||||
output: string;
|
||||
};
|
||||
|
||||
let dockerClient: Docker | undefined;
|
||||
|
||||
export const getDockerClient = () => {
|
||||
dockerClient ??= new Docker();
|
||||
return dockerClient;
|
||||
};
|
||||
|
||||
const environmentArgs = (environment: Record<string, string>) =>
|
||||
Object.entries(environment).flatMap(([name, value]) => [
|
||||
'-e',
|
||||
|
||||
Reference in New Issue
Block a user