prepare for npmdocker
This commit is contained in:
parent
4e3446cb2f
commit
0c7cd35448
@ -3,4 +3,4 @@ RUN mkdir app-node
|
|||||||
COPY ./ /app-node/
|
COPY ./ /app-node/
|
||||||
WORKDIR /app-node
|
WORKDIR /app-node
|
||||||
ENV CI true
|
ENV CI true
|
||||||
CMD ["npmci","install","stable"]
|
CMD ["npmts"]
|
6
dist/dockersock.classes.dockersock.js
vendored
6
dist/dockersock.classes.dockersock.js
vendored
File diff suppressed because one or more lines are too long
@ -148,14 +148,14 @@ export class Dockersock {
|
|||||||
},
|
},
|
||||||
body:jsonArg
|
body:jsonArg
|
||||||
};
|
};
|
||||||
console.log(options);
|
//console.log(options);
|
||||||
plugins.request(options,(err, res, body) => {
|
plugins.request(options,(err, res, body) => {
|
||||||
if (!err && res.statusCode == 200) {
|
if (!err && res.statusCode == 200) {
|
||||||
var responseObj = JSON.parse(body);
|
var responseObj = JSON.parse(body);
|
||||||
done.resolve(responseObj);
|
done.resolve(responseObj);
|
||||||
} else {
|
} else {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
//console.log(res);
|
console.log(res);
|
||||||
done.reject(err);
|
done.reject(err);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user