Allow optional image name to be passed

This commit is contained in:
James Allen
2016-01-12 17:04:42 +00:00
parent 601a3e4805
commit 4497352a3a
6 changed files with 14 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ spawn = require("child_process").spawn
logger = require "logger-sharelatex"
module.exports = CommandRunner =
run: (project_id, command, directory, timeout, callback = (error) ->) ->
run: (project_id, command, directory, image, timeout, callback = (error) ->) ->
command = (arg.replace('$COMPILE_DIR', directory) for arg in command)
logger.log project_id: project_id, command: command, directory: directory, "running command"
logger.warn "timeouts and sandboxing are not enabled with CommandRunner"