Skip to content

Commit 177e620

Browse files
committed
pull images instead of installing
1 parent d4fa8cb commit 177e620

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

buildspec/linuxIntegrationTests.yml

+19-10
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,27 @@ phases:
5151
# Ensure that "docker" group has permissions to the socket.
5252
# - chown codebuild-user /var/run/docker.sock
5353
- chmod 666 /var/run/docker.sock
54-
- # Install and Verify Node.js 20
55-
- |
56-
curl -sL https://rpm.nodesource.com/setup_20.x | sudo bash -
57-
sudo yum install -y nodejs
58-
node -v
59-
npm -v
54+
# Pull Docker Images for SAM tests
6055

56+
# Nodejs
57+
- |
58+
docker pull public.ecr.aws/docker/library/node:18
59+
docker pull public.ecr.aws/docker/library/node:20
60+
docker pull public.ecr.aws/docker/library/node:22
61+
# Java
62+
- |
63+
docker pull public.ecr.aws/amazoncorretto/openjdk8:al2
64+
docker pull public.ecr.aws/amazoncorretto/openjdk11
65+
docker pull public.ecr.aws/amazoncorretto/openjdk17
66+
# Python
67+
- |
68+
docker pull public.ecr.aws/lambda/python:3.10
69+
docker pull public.ecr.aws/lambda/python:3.11
70+
docker pull public.ecr.aws/lambda/python:3.12
71+
docker pull public.ecr.aws/lambda/python:3.13
72+
# Dotnet
6173
- |
62-
curl -sL https://rpm.nodesource.com/setup_22.x | sudo bash -
63-
sudo yum install -y nodejs
64-
node -v
65-
npm -v
74+
docker pull public.ecr.aws/lambda/dotnet6
6675
6776
pre_build:
6877
commands:

packages/core/src/testInteg/sam.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const scenarios: TestScenario[] = [
137137
// images
138138
generateScenario('nodejs', '18.x', { baseImage: 'amazon/nodejs18.x-base' }, true),
139139
generateScenario('nodejs', '20.x', { baseImage: 'amazon/nodejs20.x-base' }, true),
140-
generateScenario('nodejs', '22.x', { baseImage: 'amazon/nodejs18.x-base', vscodeMinimum: '1.78.0' }, true),
140+
generateScenario('nodejs', '22.x', { baseImage: 'amazon/nodejs22.x-base', vscodeMinimum: '1.78.0' }, true),
141141
generateScenario('python', '3.10', { baseImage: 'amazon/python3.10-base' }, true),
142142
generateScenario('python', '3.11', { baseImage: 'amazon/python3.11-base', vscodeMinimum: '1.78.0' }, true),
143143
generateScenario('python', '3.12', { baseImage: 'amazon/python3.12-base', vscodeMinimum: '1.78.0' }, true),

0 commit comments

Comments
 (0)