Continue:
I created a dockerfile to customize the environment (install bwip) and keep it in a private repository.
When I use dockerrun pointing to my repository, jsreports does not write the files to the folder. Could this be the problem?
My Dockerfile
# Use the official jsreport image from Docker Hub
FROM jsreport/jsreport:4.2.0-full
# Install bwip-js
RUN npm install bwip-js
# Set environment variables
ENV extensions_authentication_admin_username=admin
ENV licenseKey=xxxxxxxxxxxxxxxxxxxxxxx
ENV extensions_authentication_admin_password=xxxxxxxxxxxxxx
ENV extensions_authentication_cookieSession_secret=yyylong
ENV extensions.npm.allowedModules=['bwip-js']
COPY jsreport.config.json /app/jsreport.config.json
# Expose the port
EXPOSE 5488
My jsreport.config
{
"httpPort": 5488,
"logger": {
"console": {
"transport": "console",
"level": "debug"
},
"file": {
"transport": "file",
"level": "info",
"filename": "logs/reporter.log"
},
"error": {
"transport": "file",
"level": "error",
"filename": "logs/error.log"
}
},
"trustUserCode": false,
"reportTimeout": 60000,
"workers": {
"numberOfWorkers": 2
},
"extensions": {
"allowLocalFilesAccess": true,
"npm": {
"allowedModules": ["bwip-js"]
}
} ,
"license": {
"development": true
}
}