@rlyle1179/serverless-aws-batch 1.0.49 → 1.0.51

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 +2 -10
  2. package/package.json +1 -1
package/lib/docker.js CHANGED
@@ -78,26 +78,18 @@ function buildDockerImage() {
78
78
  // - Function Timeout and Function Memory are set by Env Variables on the Job Definition
79
79
  // - Access Key and Secret are unset to that we use the role on the container that AWS provides
80
80
  const dockerFileContents = `
81
- FROM justinram11/lambda:build-${this.serverless.service.provider.runtime} AS builder
81
+ FROM justinram11/lambda:build-nodejs12.x AS builder
82
82
  USER root
83
83
 
84
84
  ${additionalRunCommands}
85
85
  COPY ${this.serverless.service.service}.zip /tmp
86
86
  RUN cd /tmp && unzip -q ${this.serverless.service.service}.zip && rm ${this.serverless.service.service}.zip
87
87
 
88
- FROM justinram11/lambda:${this.serverless.service.provider.runtime}
88
+ FROM justinram11/lambda:nodejs12.x
89
89
  COPY --from=builder /tmp /var/task/${this.serverless.service.service}/
90
90
  RUN rm -rf /tmp/*
91
91
  WORKDIR /var/task/${this.serverless.service.service}/
92
92
  `;
93
- // custom ENTRYPOINT due to heap setting - entrypoint copied from original
94
- if (this.serverless.service.provider.runtime === 'nodejs8.10') {
95
- dockerFileContents.concat('ENTRYPOINT ["/var/lang/bin/node", "--expose-gc", "--max-semi-space-size=150", "--max-old-space-size=30000", "/var/runtime/node_modules/awslambda/index.js"]\n');
96
- } else if (this.serverless.service.provider.runtime === 'nodejs10.x') {
97
- dockerFileContents.concat('ENV NODE_OPTIONS="--max-old-space-size=30000"\n');
98
- } else {
99
- dockerFileContents.concat('ENV NODE_OPTIONS="--max-old-space-size=30000"\n');
100
- }
101
93
 
102
94
  const servicePath = this.serverless.config.servicePath || '';
103
95
  const packagePath = path.join(servicePath || '.', '.serverless');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rlyle1179/serverless-aws-batch",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "description": "Serverless Framework Plugin for interacting with AWS Batch",
5
5
  "main": "index.js",
6
6
  "scripts": {