Skip to content

Commit

Permalink
Support multiple architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminBergerM committed Feb 3, 2024
1 parent 5a7f49c commit 7390daa
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/lambda/handler-runner/docker-runner/DockerContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,7 @@ export default class DockerContainer {
#baseImage(runtime, architecture) {
const runtimeImageTag = new Runtime().getImageNameTag(runtime, architecture)
// # Gets the ECR image format like `python:3.7` or `nodejs:16-x86_64`
// const runtimeOnlyNumber = re.split("[:-]", runtimeImageTag)[1]
// const runtimeOnlyNumber = runtimeImageTag.split(/[:-]/)[1]
// const tagPrefix = `${runtimeOnlyNumber}-`
const baseImage = `public.ecr.aws/lambda/${runtimeImageTag}`
// # If the image name had a digest, removing the @ so that a valid image name can be constructed
// # to use for the local invoke image name.
const imageRepo = baseImage.split(":")[0].replace("@", "")
// const rapidImage = `${imageRepo}:${tagPrefix}rapid-${architecture}`
return imageRepo
return `public.ecr.aws/lambda/${runtimeImageTag}`
}

async start(codeDir) {
Expand Down

0 comments on commit 7390daa

Please sign in to comment.