@rlyle1179/serverless-aws-batch 1.1.11 → 1.1.13

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.
Files changed (2) hide show
  1. package/lib/docker.js +5 -2
  2. package/package.json +1 -1
package/lib/docker.js CHANGED
@@ -87,18 +87,21 @@ function buildDockerImage() {
87
87
  )
88
88
  }
89
89
 
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" );
92
+
90
93
  // Override some of the default lambci environmental variables.
91
94
  // - Function Timeout and Function Memory are set by Env Variables on the Job Definition
92
95
  // - Access Key and Secret are unset to that we use the role on the container that AWS provides
93
96
  const dockerFileContents = `
94
- FROM 368461407828.dkr.ecr.us-east-1.amazonaws.com/build-batch-image-base:latest AS builder
97
+ FROM ${buildImage} AS builder
95
98
  USER root
96
99
  RUN mkdir -p /tmp/task/
97
100
  COPY ${this.serverless.service.service}.zip /tmp/task
98
101
  RUN cd /tmp/task && unzip -q ${this.serverless.service.service}.zip && rm ${this.serverless.service.service}.zip
99
102
  ${addtionalBuildCommands}
100
103
 
101
- FROM 368461407828.dkr.ecr.us-east-1.amazonaws.com/batch-image-base:latest
104
+ FROM ${batchImage}
102
105
  USER root
103
106
  COPY --from=builder /tmp/task /var/task/
104
107
  ${additionalCommands}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rlyle1179/serverless-aws-batch",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "description": "Serverless Framework Plugin for interacting with AWS Batch",
5
5
  "main": "index.js",
6
6
  "scripts": {