Skip to content

Commit

Permalink
update docker manager
Browse files Browse the repository at this point in the history
  • Loading branch information
pofider committed Sep 3, 2018
1 parent 82c577e commit f3314b0
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 36 deletions.
4 changes: 3 additions & 1 deletion jsreport.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"templatingEngines": {
"strategy": "in-process",
"allowedModules": "lodash,handlebars",
"timeout": 10000
},
"chrome": {
Expand Down Expand Up @@ -72,7 +73,8 @@
"enabled": false
},
"scripts": {
"timeout": 30000
"timeout": 30000,
"allowedModules": "http,https,lodash,bluebird,async,axios,request"
},
"scheduling": {
"enabled": false
Expand Down
142 changes: 108 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
"client-sessions": "0.8.0",
"connect-ensure-login": "0.1.1",
"eslint-config-standard-react": "7.0.2",
"ip": "1.1.5",
"jsreport": "2.2.0",
"jsreport-core": "2.2.0",
"jsreport-ejs": "2.0.0",
"jsreport-electron-pdf": "3.0.0",
"jsreport-fop-pdf": "2.0.0",
Expand All @@ -36,7 +38,7 @@
"jsreport-studio": "2.1.1",
"jsreport-version-control": "1.0.6",
"jsreport-wkhtmltopdf": "2.0.3",
"jsreport-worker-docker-manager": "1.0.6",
"jsreport-worker-docker-manager": "1.0.7",
"jsreport-xlsx": "2.0.1",
"lodash.debounce": "4.0.8",
"nanoid": "1.2.2",
Expand Down
9 changes: 9 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
const winston = require('winston')
require('winston-loggly')

// just temporary hack until we release full jsreport
require('rimraf').sync('node_modules/jsreport/node_modules/jsreport-core')

if (!process.env.ip && !process.env.stack) {
console.log('Using local ip address and localdev stack')
process.env.ip = require('ip').address()
process.env.stack = 'localdev'
}

process.env.extensions_workerDockerManager_discriminatorPath = 'context.clientIp'

if (process.env.NODE_ENV === 'jsreport-development') {
Expand Down

0 comments on commit f3314b0

Please sign in to comment.