added docker runner into core codebase

supports both local command runner and docker runner

added docker files for tex live

also fixed tests so they exit correctly & removed debug lines
This commit is contained in:
Henry Oswald
2018-03-05 11:02:31 +00:00
parent 3bdd50a231
commit b202af3cf2
16 changed files with 1108 additions and 59 deletions

View File

@@ -21,7 +21,6 @@ describe "Simple LaTeX file", ->
it "should return the PDF", ->
pdf = Client.getOutputFile(@body, "pdf")
console.log @body
pdf.type.should.equal "pdf"
it "should return the log", ->

View File

@@ -23,7 +23,6 @@ describe "Timed out compile", ->
Client.compile @project_id, @request, (@error, @res, @body) => done()
it "should return a timeout error", ->
console.log @body.compile, "!!!1111"
@body.compile.error.should.equal "container timed out"
it "should return a timedout status", ->

View File

@@ -11,7 +11,6 @@ module.exports = Client =
Math.random().toString(16).slice(2)
compile: (project_id, data, callback = (error, res, body) ->) ->
console.log("#{@host}/project/#{project_id}/compile")
request.post {
url: "#{@host}/project/#{project_id}/compile"
json: