@rlyle1179/serverless-aws-batch 1.0.67 → 1.0.69
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 +3 -2
- package/lib/docker.js +0 -3
- package/package.json +1 -1
package/lib/batchtask.js
CHANGED
|
@@ -77,7 +77,7 @@ function compileBatchTask(functionName) {
|
|
|
77
77
|
name: functionObject.name,
|
|
78
78
|
memorySize: 128,
|
|
79
79
|
timeout: 6,
|
|
80
|
-
runtime: '
|
|
80
|
+
runtime: 'nodejs16.x',
|
|
81
81
|
package: {
|
|
82
82
|
artifact: `${path.join(this.serverless.config.servicePath, '.serverless', functionName)}.zip`
|
|
83
83
|
},
|
|
@@ -124,7 +124,8 @@ function updateContainerProperties(newFunction, functionObject, functionName) {
|
|
|
124
124
|
throw new this.serverless.classes.Error(`Could not find handler for batch task ${functionObject.name}`);
|
|
125
125
|
}
|
|
126
126
|
newFunction.Properties.ContainerProperties.Command = [
|
|
127
|
-
`${
|
|
127
|
+
`${functionObject.handler}`,
|
|
128
|
+
//`${this.serverless.service.service}/${functionObject.handler}`,
|
|
128
129
|
//"Ref::event"
|
|
129
130
|
]
|
|
130
131
|
}
|
package/lib/docker.js
CHANGED
|
@@ -88,9 +88,6 @@ function buildDockerImage() {
|
|
|
88
88
|
FROM amazon/aws-lambda-nodejs:16
|
|
89
89
|
COPY --from=builder /tmp /var/task/${this.serverless.service.service}/
|
|
90
90
|
RUN rm -rf /tmp/*
|
|
91
|
-
ENV NODE_PATH=/opt/nodejs/node16/node_modules:/opt/nodejs/node_modules:/var/runtime/node_modules
|
|
92
|
-
RUN node -v
|
|
93
|
-
WORKDIR /var/task/${this.serverless.service.service}/
|
|
94
91
|
`;
|
|
95
92
|
|
|
96
93
|
const servicePath = this.serverless.config.servicePath || '';
|