Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use mLupine/docker-lambda docker image #12348

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 3 additions & 4 deletions lib/plugins/aws/invoke-local/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,7 @@ class AwsInvokeLocal {
dockerProgress.notice('Downloading base Docker image');
return spawnExt('docker', [
'pull',
'--disable-content-trust=false',
`lambci/lambda:${runtime}`,
`mlupin/docker-lambda:${runtime}`,
]);
}

Expand Down Expand Up @@ -392,7 +391,7 @@ class AwsInvokeLocal {
const runtime = this.getRuntime();
const imageName = this.getDockerImageName();

let dockerFileContent = `FROM lambci/lambda:${runtime}`;
let dockerFileContent = `FROM mlupin/docker-lambda:${runtime}`;
for (const layerPath of layerPaths) {
dockerFileContent += `\nADD --chown=sbx_user1051:495 ${
os.platform() === 'win32' ? layerPath.replace(/\\/g, '/') : layerPath
Expand Down Expand Up @@ -513,7 +512,7 @@ class AwsInvokeLocal {
mainProgress.notice('Invoking function locally', { isMainEvent: true });
await this.checkDockerDaemonStatus();
const results = await Promise.all([
this.checkDockerImage(`lambci/lambda:${runtime}`).then((exists) => {
this.checkDockerImage(`mlupin/docker-lambda:${runtime}`).then((exists) => {
return exists ? {} : this.pullDockerImage();
}),
this.getLayerPaths().then((layerPaths) => this.buildDockerImage(layerPaths)),
Expand Down