mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
wip: not working yet...
This commit is contained in:
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)
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user