wip: not working yet...

This commit is contained in:
Justin Lin committed 2025-03-11 19:56:56 +08:00
1 parent b2a251576c
commit 0e37b13d99
3 files changed
+26 -12

No files matched your search

@@ -8,6 +8,7 @@ import { asyncHandler } from '../../middleware/error.js'
export const newCommand = asyncHandler(async (req: Request, res: Response) => {
const { command, pwd, output, error, params } = matchedData(req)
console.log(command, output, error)
const { sessionId } = req.user as any
const session = await Session.findById(sessionId)
+3
View File
@@ -33,6 +33,9 @@ export async function createContainer(
imageId: string
): Promise<Docker.Container> {
let binds: string[] = []
binds.push(
`${config.docker.hostProjectRoot}/quests/.includes/zshrc:/etc/zsh/zshrc`
)
if (await questHomeExists(questId)) {
logger.info('Mounting quest home', questId)
binds.push(