Commit 29efdc97 authored by priit's avatar priit

Dockeri alge

parent 9e8ef6d6
......@@ -19,7 +19,7 @@ RUN mkdir -p /src && mkdir -p /config && mkdir -p /wrapper/files && mkdir -p /wr
cd /src && \
git clone 'https://github.com/BitWeb/keeleliin-wrapper-service.git' . && \
npm install && \
echo "NPM is installed 6"
echo "NPM is installed 7"
#Expose port
EXPOSE 3000
......
......@@ -155,7 +155,8 @@ function ArchiveExtractor() {
var filePath = files[i];
var fileName = files[i].substring(filePath.indexOf(session.id) + session.id.length + 1);
session.addOutputFile(uniqid, {
type: 'output',
key: 'output',
type: 'text',
filePath: filePath,
fileName: fileName,
contentType: mime.lookup(filePath) // getting the original file mime type
......
......@@ -29,8 +29,11 @@ function InputOutputLocalCommand(){
session.setErrors(response.errors);
}
session.addOutputFile('output', {
type: 'output',
var outputType = config.wrapper.outputTypes.pop();
session.addOutputFile('id_x', {
key : outputType.key,
type: outputType.type,
fileName: config.wrapper.id + '_output.' + FileUtil.getExtension( model.outputPaths.output ),
filePath: model.outputPaths.output,
contentType: mime.lookup(model.outputPaths.output)
......
......@@ -31,8 +31,11 @@ function SimpleLocalCommand(){
session.setErrors(response.errors);
}
session.addOutputFile('output', {
type: 'output',
var outputType = config.wrapper.outputTypes.pop();
session.addOutputFile('id_x', {
key : outputType.key,
type: outputType.type,
fileName: config.wrapper.id + '_output.' + FileUtil.getExtension( response.stdOutPath ),
filePath: response.stdOutPath,
contentType: mime.lookup(response.stdOutPath)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment