Skip to content

Commit

Permalink
Add unsupported runtime handling for docker-runner
Browse files Browse the repository at this point in the history
  • Loading branch information
frozenbonito committed Feb 10, 2021
1 parent 1085508 commit 7fdd795
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lambda/handler-runner/HandlerRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ export default class HandlerRunner {
debugLog(`Loading handler... (${handlerPath})`)

if (useDocker) {
// https://github.com/lambci/docker-lambda/issues/329
if (runtime === 'nodejs14.x') {
logWarning(
'"nodejs14.x" runtime is not supported with docker. See https://github.com/lambci/docker-lambda/issues/329',
)
throw new Error('Unsupported runtime')
}

const dockerOptions = {
readOnly: this.#options.dockerReadOnly,
layersDir: this.#options.layersDir,
Expand Down

0 comments on commit 7fdd795

Please sign in to comment.