@rlyle1179/serverless-aws-batch 1.0.43 → 1.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/docker.js +3 -2
- package/package.json +1 -1
package/lib/docker.js
CHANGED
|
@@ -6,7 +6,7 @@ const path = require('path');
|
|
|
6
6
|
const util = require('util');
|
|
7
7
|
const { getDockerLoginToECRCommand } = require('./awscli');
|
|
8
8
|
|
|
9
|
-
const DOCKER_TAG = Date.now()
|
|
9
|
+
const DOCKER_TAG = `${Date.now()}`;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @returns {string} "<ECR Repo Name>:latest"
|
|
@@ -33,6 +33,7 @@ function dockerCommand(options, cwd = null, stdio = null) {
|
|
|
33
33
|
spawnOptions.stdio = stdio;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
console.log("dockerCommand:", options, spawnOptions);
|
|
36
37
|
const ps = spawnSync(cmd, options, spawnOptions);
|
|
37
38
|
if (ps.error) {
|
|
38
39
|
if (ps.error.code === 'ENOENT') {
|
|
@@ -43,7 +44,7 @@ function dockerCommand(options, cwd = null, stdio = null) {
|
|
|
43
44
|
console.error("docker output:", ps.output);
|
|
44
45
|
console.error("docker stdout:", ps.stdout);
|
|
45
46
|
console.error("docker stderr:", ps.stderr)
|
|
46
|
-
|
|
47
|
+
throw new Error(ps.stderr);
|
|
47
48
|
}
|
|
48
49
|
return ps;
|
|
49
50
|
}
|