@rlyle1179/serverless-aws-batch 1.1.12 → 1.1.14
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/batchtask.js +1 -1
- package/lib/docker.js +2 -1
- package/package.json +1 -1
package/lib/batchtask.js
CHANGED
|
@@ -91,7 +91,7 @@ function compileBatchTask(functionName) {
|
|
|
91
91
|
name: functionObject.name,
|
|
92
92
|
memorySize: 128,
|
|
93
93
|
timeout: 6,
|
|
94
|
-
runtime: 'nodejs16.x',
|
|
94
|
+
runtime: this.provider.serverless.runtime || 'nodejs16.x',
|
|
95
95
|
package: {
|
|
96
96
|
artifact: `${path.join(this.serverless.config.servicePath, '.serverless', functionName)}.zip`
|
|
97
97
|
},
|
package/lib/docker.js
CHANGED
|
@@ -88,6 +88,7 @@ function buildDockerImage() {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
let buildImage = _.get(this.serverless.service,"custom.awsBatch.buildImage", "368461407828.dkr.ecr.us-east-1.amazonaws.com/build-batch-image-base:latest" );
|
|
91
|
+
let batchImage = _.get(this.serverless.service,"custom.awsBatch.batchImage", "368461407828.dkr.ecr.us-east-1.amazonaws.com/batch-image-base:latest" );
|
|
91
92
|
|
|
92
93
|
// Override some of the default lambci environmental variables.
|
|
93
94
|
// - Function Timeout and Function Memory are set by Env Variables on the Job Definition
|
|
@@ -100,7 +101,7 @@ function buildDockerImage() {
|
|
|
100
101
|
RUN cd /tmp/task && unzip -q ${this.serverless.service.service}.zip && rm ${this.serverless.service.service}.zip
|
|
101
102
|
${addtionalBuildCommands}
|
|
102
103
|
|
|
103
|
-
FROM
|
|
104
|
+
FROM ${batchImage}
|
|
104
105
|
USER root
|
|
105
106
|
COPY --from=builder /tmp/task /var/task/
|
|
106
107
|
${additionalCommands}
|